Credit index reference data, contains a set of index constituents. More...
#include <ored/portfolio/referencedata.hpp>
Inheritance diagram for CreditIndexReferenceDatum:
Collaboration diagram for CreditIndexReferenceDatum:Public Member Functions | |
| CreditIndexReferenceDatum () | |
| CreditIndexReferenceDatum (const std::string &name) | |
| CreditIndexReferenceDatum (const string &id, const QuantLib::Date &validFrom) | |
| void | fromXML (XMLNode *node) override |
| XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
| void | add (const CreditIndexConstituent &c) |
| Add a constituent. The constituent is not added if already present. More... | |
| const std::set< CreditIndexConstituent > & | constituents () const |
| Get all of the underlying constituents. More... | |
| const std::string & | indexFamily () const |
| void | setIndexFamily (const std::string &indexFamily) |
Public Member Functions inherited from ReferenceDatum | |
| ReferenceDatum () | |
| Default Constructor. More... | |
| ReferenceDatum (const std::string &type, const std::string &id) | |
| Base class constructor. More... | |
| ReferenceDatum (const std::string &type, const std::string &id, const QuantLib::Date &validFrom) | |
| Base class constructor. More... | |
| void | setType (const string &type) |
| setters More... | |
| void | setId (const string &id) |
| void | setValidFrom (const QuantLib::Date &validFrom) |
| const std::string & | type () const |
| getters More... | |
| const std::string & | id () const |
| const QuantLib::Date & | validFrom () const |
| void | fromXML (XMLNode *node) override |
| XMLNode * | toXML (ore::data::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... | |
Static Public Attributes | |
| static constexpr const char * | TYPE = "CreditIndex" |
Private Attributes | |
| std::set< CreditIndexConstituent > | constituents_ |
| std::string | indexFamily_ |
Credit index reference data, contains a set of index constituents.
Definition at line 184 of file referencedata.hpp.
Definition at line 201 of file referencedata.cpp.
| CreditIndexReferenceDatum | ( | const std::string & | name | ) |
Definition at line 203 of file referencedata.cpp.
| CreditIndexReferenceDatum | ( | const string & | id, |
| const QuantLib::Date & | validFrom | ||
| ) |
Definition at line 205 of file referencedata.cpp.
|
overridevirtual |
Reimplemented from ReferenceDatum.
Definition at line 208 of file referencedata.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from ReferenceDatum.
Definition at line 227 of file referencedata.cpp.
Here is the call graph for this function:| void add | ( | const CreditIndexConstituent & | c | ) |
Add a constituent. The constituent is not added if already present.
Definition at line 242 of file referencedata.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const set< CreditIndexConstituent > & constituents | ( | ) | const |
| const std::string & indexFamily | ( | ) | const |
| void setIndexFamily | ( | const std::string & | indexFamily | ) |
Definition at line 205 of file referencedata.hpp.
Here is the call graph for this function:
|
staticconstexpr |
Definition at line 186 of file referencedata.hpp.
|
private |
Definition at line 208 of file referencedata.hpp.
|
private |
Definition at line 209 of file referencedata.hpp.