23#ifndef quantext_cashflow_table_hpp
24#define quantext_cashflow_table_hpp
28#include <ql/qldefines.hpp>
29#include <ql/time/date.hpp>
86 QuantLib::Size
size()
const;
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
Class representing the contents of a cashflow table.
std::vector< CashflowRow > rows_
void add(const CashflowRow &cashflowRow)
Add a row to the cashflow table.
CashflowTable()
Default constructor to create empty 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.
CashflowRow & operator[](QuantLib::Size i)