Base class for indices - lets see if we can keep this, they might diverge too much... More...
#include <ored/portfolio/referencedata.hpp>
Public Member Functions | |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
const map< string, double > | underlyings () const |
void | setUnderlyings (const std::map< string, double > &data) |
void | addUnderlying (const string &name, double weight) |
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... | |
Protected Member Functions | |
IndexReferenceDatum () | |
IndexReferenceDatum (const string &type, const string &id) | |
IndexReferenceDatum (const string &type, const string &id, const QuantLib::Date &validFrom) | |
Private Attributes | |
std::map< std::string, double > | data_ |
Base class for indices - lets see if we can keep this, they might diverge too much...
Definition at line 226 of file referencedata.hpp.
|
protected |
Definition at line 228 of file referencedata.hpp.
|
protected |
Definition at line 229 of file referencedata.hpp.
|
protected |
Definition at line 230 of file referencedata.hpp.
|
overridevirtual |
Reimplemented from ReferenceDatum.
Definition at line 255 of file referencedata.cpp.
|
overridevirtual |
Reimplemented from ReferenceDatum.
Definition at line 272 of file referencedata.cpp.
const map< string, double > underlyings | ( | ) | const |
Definition at line 238 of file referencedata.hpp.
void setUnderlyings | ( | const std::map< string, double > & | data | ) |
Definition at line 240 of file referencedata.hpp.
void addUnderlying | ( | const string & | name, |
double | weight | ||
) |
|
private |
Definition at line 245 of file referencedata.hpp.