19#include <ql/cashflows/cashflows.hpp>
25 boost::optional<bool> includeSettlementDateFlows, Date settlementDate, Date npvDate)
26 : discountCurve_(discountCurve), includeSettlementDateFlows_(includeSettlementDateFlows),
27 settlementDate_(settlementDate), npvDate_(npvDate) {
32 QL_REQUIRE(!
discountCurve_.empty(),
"discounting term structure handle is empty");
35 results_.errorEstimate = Null<Real>();
41 settlementDate = refDate;
43 QL_REQUIRE(settlementDate >= refDate,
"settlement date (" << settlementDate
45 "discount curve reference date ("
51 valuationDate = refDate;
55 "discount curve reference date ("
59 bool includeRefDateFlows =
67 Date startDate =
arguments_.index->valueDate(
arguments_.index->fixingCalendar().adjust(refDate));
const Instrument::results * results_
Handle< YieldTermStructure > discountCurve_
boost::optional< bool > includeSettlementDateFlows_
void calculate() const override
DepositEngine(const Handle< YieldTermStructure > &discountCurve=Handle< YieldTermStructure >(), boost::optional< bool > includeSettlementDateFlows=boost::none, Date settlementDate=Date(), Date npvDate=Date())
Swap::arguments * arguments_