CashFlowVector.hpp
Go to the documentation of this file.
CashFlowVector(std::vector< SmartPointer< CashFlow > > &cfs_)
Constructor.
Definition: CashFlowVector.hpp:27
File contains template of deep-coping smart pointer.
File contains definition of cash flow class.
friend std::ostream & operator<<(std::ostream &, CashFlowVector &)
Overloads stream operator.
Definition: CashFlowVector.cpp:43
Definition: cadHoliday.cpp:3
double prize(const SmartPointer< ir::Curve > &disc) const
calculate discounted value of all CFs
Definition: CashFlowVector.cpp:15
double valuation(const SmartPointer< ir::Curve > &disc) const
values the CF
Definition: CashFlowVector.cpp:60
SmartPointer< CashFlow > operator[](int) const
returns i-th CF
Definition: CashFlowVector.cpp:54
std::vector< Date > getDates() const
returns dates of cfs
Definition: CashFlowVector.cpp:70
void addCashFlow(SmartPointer< CashFlow > cf)
appends CF to vector
Definition: CashFlowVector.cpp:9
void updateCashFlows(double quote, const InterestRate &rate)
updates all CFs with given quote
Definition: CashFlowVector.cpp:25
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: CashFlowVector.hpp:53
std::vector< SmartPointer< CashFlow > > cfs
Vector of cashflows.
Definition: CashFlowVector.hpp:47