29QL_DEPRECATED_DISABLE_WARNING
32 : ZeroInflationModelTermStructure(model, index, false) {}
35ZeroInflationModelTermStructure::ZeroInflationModelTermStructure(
const QuantLib::ext::shared_ptr<CrossAssetModel>& model,
36 Size index,
bool indexIsInterpolated)
37 : ZeroInflationTermStructure(
40 model_(model), index_(index), indexIsInterpolated_(indexIsInterpolated),
45QL_DEPRECATED_ENABLE_WARNING
47void ZeroInflationModelTermStructure::update() {
51Date ZeroInflationModelTermStructure::maxDate()
const {
53 return Date::maxDate();
56Time ZeroInflationModelTermStructure::maxTime()
const {
61const Date& ZeroInflationModelTermStructure::referenceDate()
const {
62 return referenceDate_;
65Date ZeroInflationModelTermStructure::baseDate()
const {
66 QL_DEPRECATED_DISABLE_WARNING
67 if (indexIsInterpolated_) {
68 return referenceDate_ - observationLag_;
70 return inflationPeriod(referenceDate_ - observationLag_, frequency()).first;
72 QL_DEPRECATED_ENABLE_WARNING
75void ZeroInflationModelTermStructure::referenceDate(
const Date& d) {
77 relativeTime_ = dayCounter().yearFraction(
inflationTermStructure(model_, index_)->referenceDate(), referenceDate_);
81void ZeroInflationModelTermStructure::state(
const Array& s) {
87void ZeroInflationModelTermStructure::move(
const Date& d,
const Array& s) {
ZeroInflationModelTermStructure(const QuantLib::ext::shared_ptr< CrossAssetModel > &model, QuantLib::Size index)
Handle< ZeroInflationTermStructure > inflationTermStructure(const QuantLib::ext::shared_ptr< CrossAssetModel > &model, Size index)
zero inflation term structure implied by a cross asset model