27#include <ql/math/interpolation.hpp>
28#include <ql/patterns/lazyobject.hpp>
37 const std::vector<QuantLib::Real>& times,
38 const std::vector<QuantLib::Handle<QuantLib::Quote>>& priceSpreads);
40 QuantLib::Date
maxDate()
const override;
43 QuantLib::Calendar
calendar()
const override;
46 QuantLib::Time
minTime()
const override;
47 const QuantLib::Currency&
currency()
const override;
48 std::vector<QuantLib::Date>
pillarDates()
const override;
52 QuantLib::Real
priceImpl(QuantLib::Time)
const override;
55 mutable std::vector<QuantLib::Real>
times_;
58 mutable std::vector<QuantLib::Real>
data_;
Spreaded Price term structure.
QuantLib::ext::shared_ptr< QuantLib::Interpolation > interpolation_
QuantLib::Time minTime() const override
The minimum time for which the curve can return values.
void performCalculations() const override
QuantLib::Calendar calendar() const override
const QuantLib::Currency & currency() const override
The currency in which prices are expressed.
std::vector< QuantLib::Handle< QuantLib::Quote > > priceSpreads_
const QuantLib::Date & referenceDate() const override
QuantLib::Natural settlementDays() const override
QuantLib::Date maxDate() const override
std::vector< QuantLib::Real > times_
QuantLib::Handle< PriceTermStructure > referenceCurve_
std::vector< QuantLib::Date > pillarDates() const override
The pillar dates for the PriceTermStructure.
QuantLib::Real priceImpl(QuantLib::Time) const override
Price calculation.
std::vector< QuantLib::Real > data_
Term structure of prices.