23using QuantLib::Handle;
24using QuantLib::Natural;
27using QuantLib::YieldTermStructure;
35 const QuantLib::Date& referenceDate,
const QuantLib::Handle<PriceTermStructure>& basePriceTs,
36 const QuantLib::Handle<QuantLib::Quote>& fxSpot,
37 const QuantLib::Handle<QuantLib::YieldTermStructure>& baseCurrencyYts,
38 const QuantLib::Handle<QuantLib::YieldTermStructure>& yts,
const QuantLib::Currency& currency)
39 :
PriceTermStructure(referenceDate, basePriceTs->calendar(), basePriceTs->dayCounter()), basePriceTs_(basePriceTs),
40 fxSpot_(fxSpot), baseCurrencyYts_(baseCurrencyYts), yts_(yts), currency_(currency) {
45 Natural settlementDays,
const QuantLib::Handle<PriceTermStructure>& basePriceTs,
46 const QuantLib::Handle<QuantLib::Quote>& fxSpot,
47 const QuantLib::Handle<QuantLib::YieldTermStructure>& baseCurrencyYts,
48 const QuantLib::Handle<QuantLib::YieldTermStructure>& yts,
const QuantLib::Currency& currency)
49 :
PriceTermStructure(settlementDays, basePriceTs->calendar(), basePriceTs->dayCounter()), basePriceTs_(basePriceTs),
50 fxSpot_(fxSpot), baseCurrencyYts_(baseCurrencyYts), yts_(yts), currency_(currency) {
69 yts_->discount(t,
true);
CrossCurrencyPriceTermStructure(const QuantLib::Date &referenceDate, const QuantLib::Handle< PriceTermStructure > &basePriceTs, const QuantLib::Handle< QuantLib::Quote > &fxSpot, const QuantLib::Handle< QuantLib::YieldTermStructure > &baseCurrencyYts, const QuantLib::Handle< QuantLib::YieldTermStructure > &yts, const QuantLib::Currency ¤cy)
QuantLib::Time minTime() const override
The minimum time for which the curve can return values.
void registration()
Register with underlying market data.
QuantLib::Handle< QuantLib::YieldTermStructure > baseCurrencyYts_
QuantLib::Date maxDate() const override
std::vector< QuantLib::Date > pillarDates() const override
The pillar dates for the PriceTermStructure.
QuantLib::Handle< QuantLib::YieldTermStructure > yts_
QuantLib::Handle< PriceTermStructure > basePriceTs_
QuantLib::Time maxTime() const override
QuantLib::Real priceImpl(QuantLib::Time t) const override
Price calculation.
QuantLib::Handle< QuantLib::Quote > fxSpot_
Price term structure in a given currency derived from a price term structure in another currency.
CompiledFormula min(CompiledFormula x, const CompiledFormula &y)