|
QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
|
Helper class building a sequence of capped/floored CPI coupons. More...
#include <ql/cashflows/cpicoupon.hpp>
Public Member Functions | |
| CPILeg (Schedule schedule, ext::shared_ptr< ZeroInflationIndex > index, Real baseCPI, const Period &observationLag) | |
| CPILeg & | withNotionals (Real notional) |
| CPILeg & | withNotionals (const std::vector< Real > ¬ionals) |
| CPILeg & | withFixedRates (Real fixedRate) |
| CPILeg & | withFixedRates (const std::vector< Real > &fixedRates) |
| CPILeg & | withPaymentDayCounter (const DayCounter &) |
| CPILeg & | withPaymentAdjustment (BusinessDayConvention) |
| CPILeg & | withPaymentCalendar (const Calendar &) |
| CPILeg & | withObservationInterpolation (CPI::InterpolationType) |
| CPILeg & | withSubtractInflationNominal (bool) |
| CPILeg & | withCaps (Rate cap) |
| CPILeg & | withCaps (const std::vector< Rate > &caps) |
| CPILeg & | withFloors (Rate floor) |
| CPILeg & | withFloors (const std::vector< Rate > &floors) |
| CPILeg & | withExCouponPeriod (const Period &, const Calendar &, BusinessDayConvention, bool endOfMonth=false) |
| CPILeg & | withBaseDate (const Date &baseDate) |
| operator Leg () const | |
Helper class building a sequence of capped/floored CPI coupons.
Also allowing for the inflated notional at the end... especially if there is only one date in the schedule. If the fixed rate is zero you get a FixedRateCoupon, otherwise you get a ZeroInflationCoupon.