18 :
IborIndex(familyName, tenor, settlementDays, currency, fixingCalendar,
19 convention, endOfMonth, dayCounter, h),
20 valueCalendar_(valueCalendar), maturityCalendar_(maturityCalendar) {}
31 "Fixing date " <<
fixingDate <<
" is not valid");
44 return ext::make_shared<CustomIborIndex>(
Date adjust(const Date &, BusinessDayConvention convention=Following) const
Date advance(const Date &, Integer n, TimeUnit unit, BusinessDayConvention convention=Following, bool endOfMonth=false) const
CustomIborIndex(const std::string &familyName, const Period &tenor, Natural settlementDays, const Currency ¤cy, const Calendar &fixingCalendar, const Calendar &valueCalendar, const Calendar &maturityCalendar, BusinessDayConvention convention, bool endOfMonth, const DayCounter &dayCounter, const Handle< YieldTermStructure > &h={})
Date valueDate(const Date &fixingDate) const override
Calendar maturityCalendar_
Date maturityDate(const Date &valueDate) const override
ext::shared_ptr< IborIndex > clone(const Handle< YieldTermStructure > &h) const override
returns a copy of itself linked to a different forwarding curve
Date fixingDate(const Date &valueDate) const override
Shared handle to an observable.
base class for Inter-Bank-Offered-Rate indexes (e.g. Libor, etc.)
BusinessDayConvention convention_
Calendar fixingCalendar() const override
returns the calendar defining valid fixing dates
bool isValidFixingDate(const Date &fixingDate) const override
returns TRUE if the fixing date is a valid one
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer
QL_INTEGER Integer
integer number