35 : familyName_(
std::move(familyName)), tenor_(tenor), fixingDays_(fixingDays),
36 currency_(
std::move(currency)), dayCounter_(
std::move(dayCounter)),
37 fixingCalendar_(
std::move(fixingCalendar)) {
42 std::ostringstream out;
64 bool forecastTodaysFixing)
const {
67 "Fixing date " <<
fixingDate <<
" is not valid");
std::string name() const
Returns the name of the day counter.
virtual Rate forecastFixing(const Date &fixingDate) const =0
It can be overridden to implement particular conventions.
Rate fixing(const Date &fixingDate, bool forecastTodaysFixing=false) const override
returns the fixing at the given date
virtual Rate pastFixing(const Date &fixingDate) const
InterestRateIndex(std::string familyName, const Period &tenor, Natural settlementDays, Currency currency, Calendar fixingCalendar, DayCounter dayCounter)
std::string name() const override
Returns the name of the index.
bool isValidFixingDate(const Date &fixingDate) const override
returns TRUE if the fixing date is a valid one
Date fixingDate(const Date &valueDate) const
template class providing a null value for a given type.
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
DateProxy & evaluationDate()
the date at which pricing is to be performed.
static Settings & instance()
access to the unique instance
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
detail::short_period_holder short_period(const Period &p)
output periods in short format (e.g. "2w")
unsigned QL_INTEGER Natural
positive integer
base class for interest rate indexes
global repository for run-time library settings