QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
CPILeg Class Reference

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)
CPILegwithNotionals (Real notional)
CPILegwithNotionals (const std::vector< Real > &notionals)
CPILegwithFixedRates (Real fixedRate)
CPILegwithFixedRates (const std::vector< Real > &fixedRates)
CPILegwithPaymentDayCounter (const DayCounter &)
CPILegwithPaymentAdjustment (BusinessDayConvention)
CPILegwithPaymentCalendar (const Calendar &)
CPILegwithObservationInterpolation (CPI::InterpolationType)
CPILegwithSubtractInflationNominal (bool)
CPILegwithCaps (Rate cap)
CPILegwithCaps (const std::vector< Rate > &caps)
CPILegwithFloors (Rate floor)
CPILegwithFloors (const std::vector< Rate > &floors)
CPILegwithExCouponPeriod (const Period &, const Calendar &, BusinessDayConvention, bool endOfMonth=false)
CPILegwithBaseDate (const Date &baseDate)
 operator Leg () const

Detailed Description

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.