Price term structure. More...
#include <qle/termstructures/pricetermstructure.hpp>
Public Member Functions | |
Constructors | |
PriceTermStructure (const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (const QuantLib::Date &referenceDate, const QuantLib::Calendar &cal=QuantLib::Calendar(), const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (QuantLib::Natural settlementDays, const QuantLib::Calendar &cal, const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
Prices | |
QuantLib::Real | price (QuantLib::Time t, bool extrapolate=false) const |
QuantLib::Real | price (const QuantLib::Date &d, bool extrapolate=false) const |
Observer interface | |
void | update () override |
virtual QuantLib::Time | minTime () const |
The minimum time for which the curve can return values. More... | |
virtual const QuantLib::Currency & | currency () const =0 |
The currency in which prices are expressed. More... | |
virtual std::vector< QuantLib::Date > | pillarDates () const =0 |
The pillar dates for the PriceTermStructure. More... | |
Protected Member Functions | |
Calculations | |
This method must be implemented in derived classes to perform the actual calculations. | |
virtual QuantLib::Real | priceImpl (QuantLib::Time) const =0 |
Price calculation. More... | |
void | checkRange (QuantLib::Time t, bool extrapolate) const |
Extra time range check for minimum time, then calls TermStructure::checkRange. More... | |
Price term structure.
This abstract class defines the interface of concrete price term structures which will be derived from this one.
Definition at line 39 of file pricetermstructure.hpp.
PriceTermStructure | ( | const QuantLib::DayCounter & | dc = QuantLib::DayCounter() | ) |
Definition at line 25 of file pricetermstructure.cpp.
PriceTermStructure | ( | const QuantLib::Date & | referenceDate, |
const QuantLib::Calendar & | cal = QuantLib::Calendar() , |
||
const QuantLib::DayCounter & | dc = QuantLib::DayCounter() |
||
) |
PriceTermStructure | ( | QuantLib::Natural | settlementDays, |
const QuantLib::Calendar & | cal, | ||
const QuantLib::DayCounter & | dc = QuantLib::DayCounter() |
||
) |
QuantLib::Real price | ( | QuantLib::Time | t, |
bool | extrapolate = false |
||
) | const |
QuantLib::Real price | ( | const QuantLib::Date & | d, |
bool | extrapolate = false |
||
) | const |
|
override |
Definition at line 42 of file pricetermstructure.cpp.
|
virtual |
The minimum time for which the curve can return values.
Reimplemented in CommodityAverageBasisPriceCurve< Interpolator >, CommodityBasisPriceCurve< Interpolator >, CommodityBasisPriceCurveWrapper, CrossCurrencyPriceTermStructure, PiecewisePriceCurve< Interpolator, Bootstrap >, InterpolatedPriceCurve< Interpolator >, and SpreadedPriceTermStructure.
Definition at line 44 of file pricetermstructure.cpp.
|
pure virtual |
The currency in which prices are expressed.
Implemented in ModelImpliedPriceTermStructure, CommodityAverageBasisPriceCurve< Interpolator >, CommodityBasisPriceCurve< Interpolator >, CommodityBasisPriceCurveWrapper, CrossCurrencyPriceTermStructure, InterpolatedPriceCurve< Interpolator >, and SpreadedPriceTermStructure.
|
pure virtual |
The pillar dates for the PriceTermStructure.
Implemented in ModelImpliedPriceTermStructure, CommodityAverageBasisPriceCurve< Interpolator >, CommodityBasisPriceCurve< Interpolator >, CommodityBasisPriceCurveWrapper, CrossCurrencyPriceTermStructure, PiecewisePriceCurve< Interpolator, Bootstrap >, InterpolatedPriceCurve< Interpolator >, and SpreadedPriceTermStructure.
|
protectedpure virtual |
Price calculation.
Implemented in CommodityAverageBasisPriceCurve< Interpolator >, CommodityBasisPriceCurve< Interpolator >, CommodityBasisPriceCurveWrapper, CrossCurrencyPriceTermStructure, PiecewisePriceCurve< Interpolator, Bootstrap >, InterpolatedPriceCurve< Interpolator >, and SpreadedPriceTermStructure.
|
protected |
Extra time range check for minimum time, then calls TermStructure::checkRange.
Definition at line 49 of file pricetermstructure.cpp.