30 const ext::optional<bool>& includeSettlementDateFlows)
38 "discounting term structure handle is empty");
54 if (!includeRefDateFlows
bool includeSettlementDateFlows_
const YieldTermStructure & discountCurve_
Cash-flow analysis functions.
static Real npv(const Leg &leg, const YieldTermStructure &discountCurve, bool includeSettlementDateFlows, Date settlementDate=Date(), Date npvDate=Date())
NPV of the cash flows.
Handle< YieldTermStructure > discountCurve_
ext::optional< bool > includeSettlementDateFlows_
void calculate() const override
DiscountingBondEngine(Handle< YieldTermStructure > discountCurve=Handle< YieldTermStructure >(), const ext::optional< bool > &includeSettlementDateFlows=ext::nullopt)
Bond::arguments arguments_
Shared handle to an observable.
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
bool & includeReferenceDateEvents()
static Settings & instance()
access to the unique instance
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Maps optional to either the boost or std implementation.