24#ifndef quantext_inflation_index_wrapper_hpp
25#define quantext_inflation_index_wrapper_hpp
27#include <ql/cashflows/cpicoupon.hpp>
28#include <ql/cashflows/inflationcouponpricer.hpp>
29#include <ql/indexes/inflationindex.hpp>
45 const CPI::InterpolationType interpolation);
47 Rate
fixing(
const Date& fixingDate,
bool forecastTodaysFixing =
false)
const override;
51 const QuantLib::ext::shared_ptr<ZeroInflationIndex>
source_;
70 const Handle<YoYInflationTermStructure>& ts = Handle<YoYInflationTermStructure>());
72 Rate
fixing(
const Date& fixingDate,
bool forecastTodaysFixing =
false)
const override;
77 const QuantLib::ext::shared_ptr<ZeroInflationIndex>
zeroIndex_;
Wrapper that creates a yoy from a zc index.
const QuantLib::ext::shared_ptr< ZeroInflationIndex > zeroIndex_
Rate forecastFixing(const Date &fixingDate) const
Rate fixing(const Date &fixingDate, bool forecastTodaysFixing=false) const override
const QuantLib::ext::shared_ptr< ZeroInflationIndex > zeroIndex() const
Wrapper that changes the interpolation of an underlying ZC inflation index.
Rate forecastFixing(const Date &fixingDate) const
const QuantLib::ext::shared_ptr< ZeroInflationIndex > source_
QL_DEPRECATED const CPI::InterpolationType interpolation_
Rate fixing(const Date &fixingDate, bool forecastTodaysFixing=false) const override