29#include <ql/math/comparison.hpp>
49 const bool purelyTimeBased =
false);
57 const QuantLib::Currency&
currency()
const override {
return model_->currency(); }
58 std::vector<QuantLib::Date>
pillarDates()
const override {
return std::vector<QuantLib::Date>(); }
62 void state(
const Array& s);
63 void move(
const Date& d,
const Array& s);
64 void move(
const Time t,
const Array& s);
66 virtual void update()
override;
71 const QuantLib::ext::shared_ptr<CommodityModel>
model_;
83 return Date::maxDate();
93 "time based term structure");
99 "time based term structure");
107 "time based term structure");
136 QL_REQUIRE(t >= 0.0,
"negative time (" << t <<
") given");
COM Implied Price Term Structure.
void state(const Array &s)
const QuantLib::ext::shared_ptr< CommodityModel > model_
void move(const Date &d, const Array &s)
virtual void update() override
const QuantLib::Currency & currency() const override
Price term structure interface.
const Date & referenceDate() const override
Real priceImpl(Time t) const override
Date maxDate() const override
virtual void referenceTime(const Time t)
std::vector< QuantLib::Date > pillarDates() const override
The pillar dates for the PriceTermStructure.
const bool purelyTimeBased_
Time maxTime() const override
Commodity model base class.
Term structure of prices.