Serializable Cashflow Leg Data. More...
#include <ored/portfolio/legdata.hpp>
Public Member Functions | |
CashflowData () | |
Default constructor. More... | |
CashflowData (const vector< double > &amounts, const vector< string > &dates) | |
Constructor. More... | |
Inspectors | |
const vector< double > & | amounts () const |
const vector< string > & | dates () const |
Public Member Functions inherited from LegAdditionalData | |
LegAdditionalData (const string &legType, const string &legNodeName) | |
LegAdditionalData (const string &legType) | |
const string & | legType () const |
const string & | legNodeName () const |
const std::set< std::string > & | indices () const |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Serialisation | |
vector< double > | amounts_ |
vector< string > | dates_ |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
Additional Inherited Members | |
Protected Attributes inherited from LegAdditionalData | |
std::set< std::string > | indices_ |
Serializable Cashflow Leg Data.
Definition at line 89 of file legdata.hpp.
CashflowData | ( | ) |
Default constructor.
Definition at line 92 of file legdata.hpp.
CashflowData | ( | const vector< double > & | amounts, |
const vector< string > & | dates | ||
) |
const vector< double > & amounts | ( | ) | const |
Definition at line 99 of file legdata.hpp.
const vector< string > & dates | ( | ) | const |
Definition at line 100 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 94 of file legdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 107 of file legdata.cpp.
|
private |
Definition at line 109 of file legdata.hpp.
|
private |
Definition at line 110 of file legdata.hpp.