#include <ored/portfolio/basketdata.hpp>
Public Member Functions | |
BasketData () | |
Default constructor. More... | |
BasketData (const std::vector< BasketConstituent > &constituents) | |
Constructor taking explicit set of basket constituents. More... | |
Inspectors | |
const std::vector< BasketConstituent > & | constituents () 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 | |
std::vector< BasketConstituent > | constituents_ |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Serializable credit basket data
Definition at line 128 of file basketdata.hpp.
BasketData | ( | ) |
BasketData | ( | const std::vector< BasketConstituent > & | constituents | ) |
Constructor taking explicit set of basket
constituents.
Definition at line 261 of file basketdata.cpp.
const vector< BasketConstituent > & constituents | ( | ) | const |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 265 of file basketdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 277 of file basketdata.cpp.
|
private |
Definition at line 148 of file basketdata.hpp.