Serializable Fixed Leg Data. More...
#include <ored/portfolio/legdata.hpp>
Public Member Functions | |
ZeroCouponFixedLegData () | |
Default constructor. More... | |
ZeroCouponFixedLegData (const vector< double > &rates, const vector< string > &rateDates=vector< string >(), const string &compounding="Compounded", const bool subtractNotional=true) | |
Constructor. More... | |
Inspectors | |
const vector< double > & | rates () const |
const vector< string > & | rateDates () const |
const string & | compounding () const |
const bool & | subtractNotional () 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 > | rates_ |
vector< string > | rateDates_ |
string | compounding_ |
bool | subtractNotional_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Additional Inherited Members | |
Protected Attributes inherited from LegAdditionalData | |
std::set< std::string > | indices_ |
Serializable Fixed Leg Data.
Definition at line 145 of file legdata.hpp.
Default constructor.
Definition at line 148 of file legdata.hpp.
ZeroCouponFixedLegData | ( | const vector< double > & | rates, |
const vector< string > & | rateDates = vector<string>() , |
||
const string & | compounding = "Compounded" , |
||
const bool | subtractNotional = true |
||
) |
Constructor.
Definition at line 150 of file legdata.hpp.
const vector< double > & rates | ( | ) | const |
Definition at line 157 of file legdata.hpp.
const vector< string > & rateDates | ( | ) | const |
Definition at line 158 of file legdata.hpp.
const string & compounding | ( | ) | const |
Definition at line 159 of file legdata.hpp.
const bool & subtractNotional | ( | ) | const |
Definition at line 160 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 125 of file legdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 143 of file legdata.cpp.
|
private |
Definition at line 169 of file legdata.hpp.
|
private |
Definition at line 170 of file legdata.hpp.
|
private |
Definition at line 171 of file legdata.hpp.
|
private |
Definition at line 172 of file legdata.hpp.