Serializable Equity Position Data. More...
#include <ored/portfolio/equityposition.hpp>
Public Member Functions | |
EquityPositionData () | |
EquityPositionData (const Real quantity, const std::vector< EquityUnderlying > &underlyings) | |
Real | quantity () const |
const std::vector< EquityUnderlying > & | underlyings () const |
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... | |
Private Attributes | |
Real | quantity_ = QuantLib::Null<Real>() |
std::vector< EquityUnderlying > | underlyings_ |
Serializable Equity Position Data.
Definition at line 34 of file equityposition.hpp.
Definition at line 36 of file equityposition.hpp.
EquityPositionData | ( | const Real | quantity, |
const std::vector< EquityUnderlying > & | underlyings | ||
) |
Definition at line 37 of file equityposition.hpp.
Real quantity | ( | ) | const |
const std::vector< EquityUnderlying > & underlyings | ( | ) | const |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 28 of file equityposition.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 39 of file equityposition.cpp.
|
private |
Definition at line 47 of file equityposition.hpp.
|
private |
Definition at line 48 of file equityposition.hpp.