Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CashflowTable Class Reference

Class representing the contents of a cashflow table. More...

#include <qle/cashflows/cashflowtable.hpp>

+ Collaboration diagram for CashflowTable:

Public Member Functions

 CashflowTable ()
 Default constructor to create empty table. More...
 
void add (const CashflowRow &cashflowRow)
 Add a row to the cashflow table. More...
 
QuantLib::Size size () const
 Return the number of rows in the cashflow table. More...
 
const CashflowRowoperator[] (QuantLib::Size i) const
 Retrieve row i from the cashflow table. More...
 
CashflowRowoperator[] (QuantLib::Size i)
 

Private Attributes

std::vector< CashflowRowrows_
 

Detailed Description

Class representing the contents of a cashflow table.

Definition at line 79 of file cashflowtable.hpp.

Constructor & Destructor Documentation

◆ CashflowTable()

Default constructor to create empty table.

Definition at line 82 of file cashflowtable.hpp.

82{}

Member Function Documentation

◆ add()

void add ( const CashflowRow cashflowRow)

Add a row to the cashflow table.

Definition at line 76 of file cashflowtable.cpp.

76{ rows_.push_back(cashflowRow); }
std::vector< CashflowRow > rows_

◆ size()

Size size ( ) const

Return the number of rows in the cashflow table.

Definition at line 78 of file cashflowtable.cpp.

78{ return rows_.size(); }

◆ operator[]() [1/2]

const CashflowRow & operator[] ( QuantLib::Size  i) const

Retrieve row i from the cashflow table.

◆ operator[]() [2/2]

CashflowRow & operator[] ( QuantLib::Size  i)

Member Data Documentation

◆ rows_

std::vector<CashflowRow> rows_
private

Definition at line 92 of file cashflowtable.hpp.