23#ifndef quantext_cashflows_hpp
24#define quantext_cashflows_hpp
26#include <ql/cashflow.hpp>
27#include <ql/termstructures/yieldtermstructure.hpp>
49 static Real
spreadNpv(
const Leg& leg,
const YieldTermStructure& discountCurve,
bool includeSettlementDateFlows,
50 Date settlementDate = Date(), Date npvDate = Date());
54 static Real
sumCashflows(
const Leg& leg,
const Date& startDate,
const Date& endDate);
59 static std::vector<Rate>
couponRates(
const Leg& leg);
cashflow-analysis functions in addition to those in QuantLib
static Real spreadNpv(const Leg &leg, const YieldTermStructure &discountCurve, bool includeSettlementDateFlows, Date settlementDate=Date(), Date npvDate=Date())
NPV due to any spreads on a leg.
static Real sumCashflows(const Leg &leg, const Date &startDate, const Date &endDate)
Return the sum of the cashflows on leg after startDate and before or on endDate.
static std::vector< Rate > couponDcfRates(const Leg &leg)
static std::vector< Rate > couponRates(const Leg &leg)
CashFlows(const CashFlows &)