27 : startDate_(Null<Date>()), endDate_(Null<Date>()), startNotional_(Null<Real>()), endNotional_(Null<Real>()),
28 couponAmount_(Null<Real>()), allInRate_(Null<Rate>()), rate_(Null<Rate>()),
spread_(Null<Spread>()),
29 discount_(Null<DiscountFactor>()) {}
Cashflow table to store cashflow calculation results.
Class representing the row of a cashflow table.
QuantLib::Real startNotional() const
CashflowRow & withStartDate(const QuantLib::Date &startDate)
const QuantLib::Date & endDate() const
QuantLib::Real couponAmount_
QuantLib::Spread spread() const
const QuantLib::Date & startDate() const
QuantLib::DiscountFactor discount() const
CashflowRow & withCouponAmount(QuantLib::Real couponAmount)
QuantLib::Real couponAmount() const
CashflowRow & withDiscount(QuantLib::DiscountFactor discount)
QuantLib::DiscountFactor discount_
CashflowRow & withAllInRate(QuantLib::Rate allInRate)
CashflowRow()
Default constructor sets all variables to Null value.
CashflowRow & withSpread(QuantLib::Spread spread)
CashflowRow & withEndDate(const QuantLib::Date &endDate)
CashflowRow & withEndNotional(QuantLib::Real endNotional)
QuantLib::Real endNotional() const
QuantLib::Real startNotional_
QuantLib::Real endNotional_
QuantLib::Rate allInRate_
CashflowRow & withStartNotional(QuantLib::Real startNotional)
CashflowRow & withRate(QuantLib::Rate rate)
QuantLib::Date startDate_
QuantLib::Rate rate() const
QuantLib::Rate allInRate() const
std::vector< CashflowRow > rows_
void add(const CashflowRow &cashflowRow)
Add a row to the cashflow table.
QuantLib::Size size() const
Return the number of rows in the cashflow table.
const CashflowRow & operator[](QuantLib::Size i) const
Retrieve row i from the cashflow table.