23#include <ql/cashflows/cashflowvectors.hpp>
24#include <ql/time/daycounters/thirty360.hpp>
32 const Handle<YieldTermStructure>& yts)
33 :
vol_(vol), yts_(yts) {
37 yts_ = Handle<YieldTermStructure>(
38 QuantLib::ext::shared_ptr<YieldTermStructure>(
new FlatForward(0, NullCalendar(), 0.05, Actual365Fixed())));
45 const Handle<YieldTermStructure>& yts,
const bool useLastFixing)
51 const Handle<YieldTermStructure>& yts,
const bool useLastFixing)
58 const Handle<YieldTermStructure>& yts)
59 : CPICouponPricer(vol, yts) {
60 if (nominalTermStructure_.empty())
61 nominalTermStructure_ = Handle<YieldTermStructure>(
62 QuantLib::ext::shared_ptr<YieldTermStructure>(
new FlatForward(0, NullCalendar(), 0.05, Actual365Fixed())));
66 const Handle<YieldTermStructure>& yts,
const bool useLastFixing)
72 const Handle<YieldTermStructure>& yts,
const bool useLastFixing)
QuantLib::ext::shared_ptr< SimpleQuote > vol_
BachelierCPICashFlowPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >(), const bool useLastFixing=false)
BachelierCPICouponPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >(), const bool useLastFixing=false)
BlackCPICashFlowPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >(), const bool useLastFixing=false)
BlackCPICouponPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >(), const bool useLastFixing=false)
CappedFlooredCPICouponPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >())
Handle< YieldTermStructure > yieldCurve()
QuantLib::ext::shared_ptr< PricingEngine > engine_
Handle< QuantLib::CPIVolatilitySurface > volatility()
Base class for CPI CashFLow and Coupon pricers.
Handle< YieldTermStructure > yts_
Handle< YieldTermStructure > yieldCurve()
Handle< QuantLib::CPIVolatilitySurface > vol_
InflationCashFlowPricer(const Handle< QuantLib::CPIVolatilitySurface > &vol=Handle< QuantLib::CPIVolatilitySurface >(), const Handle< YieldTermStructure > &yts=Handle< YieldTermStructure >())
QuantLib::ext::shared_ptr< PricingEngine > engine_
Handle< QuantLib::CPIVolatilitySurface > volatility()
Inspectors.
CPI cap/floor engine using the Bachelier pricing formula and interpreting the volatility data as norm...
CPI cap/floor engine using the Black pricing formula and interpreting the volatility data as lognorma...
CPI cash flow and coupon pricers that handle caps/floors using a CpiCapFloorEngine.