28 : TermStructure(referenceDate, cal, dc) {}
39 return price(timeFromReference(d), extrapolate);
51 "time (" << t <<
") is before min curve time (" <<
minTime() <<
")");
54 TermStructure::checkRange(t, extrapolate);
62 QL_REQUIRE(
isValid(),
"Invalid DerivedPriceQuote");
DerivedPriceQuote(const QuantLib::Handle< PriceTermStructure > &priceTs)
QuantLib::Real value() const override
QuantLib::Handle< PriceTermStructure > priceTs_
bool isValid() const override
virtual QuantLib::Time minTime() const
The minimum time for which the curve can return values.
PriceTermStructure(const QuantLib::DayCounter &dc=QuantLib::DayCounter())
void checkRange(QuantLib::Time t, bool extrapolate) const
Extra time range check for minimum time, then calls TermStructure::checkRange.
virtual QuantLib::Real priceImpl(QuantLib::Time) const =0
Price calculation.
QuantLib::Real price(QuantLib::Time t, bool extrapolate=false) const
Filter close_enough(const RandomVariable &x, const RandomVariable &y)
Term structure of prices.