#include <ored/portfolio/creditdefaultswapdata.hpp>
Public Member Functions | |
CdsReferenceInformation () | |
Default constructor. More... | |
CdsReferenceInformation (const std::string &referenceEntityId, CdsTier tier, const QuantLib::Currency ¤cy, boost::optional< CdsDocClause > docClause=boost::none) | |
Detailed constructor. More... | |
XMLSerializable interface | |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
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... | |
Inspectors | |
std::string | referenceEntityId_ |
CdsTier | tier_ |
QuantLib::Currency | currency_ |
boost::optional< CdsDocClause > | docClause_ |
std::string | id_ |
const std::string & | referenceEntityId () const |
CdsTier | tier () const |
const QuantLib::Currency & | currency () const |
bool | hasDocClause () const |
CdsDocClause | docClause () const |
const std::string & | id () const |
void | populateId () |
Populate the id_ member. More... | |
Serializable reference information
Definition at line 76 of file creditdefaultswapdata.hpp.
Default constructor.
Definition at line 407 of file creditdefaultswapdata.cpp.
CdsReferenceInformation | ( | const std::string & | referenceEntityId, |
CdsTier | tier, | ||
const QuantLib::Currency & | currency, | ||
boost::optional< CdsDocClause > | docClause = boost::none |
||
) |
Detailed constructor.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 415 of file creditdefaultswapdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 426 of file creditdefaultswapdata.cpp.
const std::string & referenceEntityId | ( | ) | const |
Definition at line 93 of file creditdefaultswapdata.hpp.
CdsTier tier | ( | ) | const |
Definition at line 94 of file creditdefaultswapdata.hpp.
const QuantLib::Currency & currency | ( | ) | const |
Definition at line 95 of file creditdefaultswapdata.hpp.
bool hasDocClause | ( | ) | const |
Definition at line 447 of file creditdefaultswapdata.cpp.
CdsDocClause docClause | ( | ) | const |
Definition at line 442 of file creditdefaultswapdata.cpp.
const std::string & id | ( | ) | const |
Give back the ID for the CdsReferenceInformation object. The id is the concatenation of the string representation of the object's members using the | character as a delimiter.
Definition at line 103 of file creditdefaultswapdata.hpp.
|
private |
Populate the id_
member.
Definition at line 436 of file creditdefaultswapdata.cpp.
|
private |
Definition at line 106 of file creditdefaultswapdata.hpp.
|
private |
Definition at line 107 of file creditdefaultswapdata.hpp.
|
private |
Definition at line 108 of file creditdefaultswapdata.hpp.
|
private |
Definition at line 109 of file creditdefaultswapdata.hpp.
|
private |
Definition at line 110 of file creditdefaultswapdata.hpp.