23#ifndef quantext_discount_ratio_modified_curve_hpp
24#define quantext_discount_ratio_modified_curve_hpp
26#include <ql/termstructures/yieldtermstructure.hpp>
62 const QuantLib::Handle<QuantLib::YieldTermStructure>& numCurve,
63 const QuantLib::Handle<QuantLib::YieldTermStructure>& denCurve);
78 QuantLib::DayCounter
dayCounter()
const override;
80 QuantLib::Calendar
calendar()
const override;
86 QuantLib::Date
maxDate()
const override {
return QuantLib::Date::maxDate(); }
98 QuantLib::DiscountFactor
discountImpl(QuantLib::Time t)
const override;
const QuantLib::Handle< QuantLib::YieldTermStructure > & numeratorCurve() const
Return the numerator curve.
QuantLib::Calendar calendar() const override
Returns the calendar from the base curve.
const QuantLib::Handle< QuantLib::YieldTermStructure > & baseCurve() const
Return the base curve.
void check() const
Check that none of the underlying term structures are empty.
QuantLib::Handle< YieldTermStructure > numCurve_
const QuantLib::Date & referenceDate() const override
Returns the reference date from the base curve.
QuantLib::Natural settlementDays() const override
Returns the settlement days from the base curve.
QuantLib::DayCounter dayCounter() const override
Returns the day counter from the base curve.
QuantLib::Date maxDate() const override
All range checks happen in the underlying curves.
const QuantLib::Handle< QuantLib::YieldTermStructure > & denominatorCurve() const
Return the denominator curve.
QuantLib::Handle< YieldTermStructure > baseCurve_
QuantLib::DiscountFactor discountImpl(QuantLib::Time t) const override
Perform the discount factor calculation using the three yield curves.
QuantLib::Handle< YieldTermStructure > denCurve_