Class to hold Underlyings. More...
#include <ored/portfolio/underlying.hpp>
Public Member Functions | |
Underlying () | |
Default Constructor. More... | |
Underlying (const std::string &type, const std::string &name, const QuantLib::Real weight=QuantLib::Null< QuantLib::Real >()) | |
Constructor with type, name, weight. More... | |
Serialisation | |
virtual void | fromXML (ore::data::XMLNode *node) override |
virtual ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Setters | |
void | setType (const string &type) |
void | setName (const string &name) |
void | setWeight (const QuantLib::Real weight) |
void | setNodeName (const string &nodeName) |
void | setBasicUnderlyingNodeName (const string &basicUnderlyingNodeName) |
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 | type_ |
std::string | name_ |
Real | weight_ = QuantLib::Null<QuantLib::Real>() |
std::string | nodeName_ |
std::string | basicUnderlyingNodeName_ |
bool | isBasic_ = false |
const std::string & | type () const |
virtual const std::string & | name () const |
Real | weight () const |
Class to hold Underlyings.
Definition at line 37 of file underlying.hpp.
Underlying | ( | ) |
Default Constructor.
Definition at line 40 of file underlying.hpp.
Underlying | ( | const std::string & | type, |
const std::string & | name, | ||
const QuantLib::Real | weight = QuantLib::Null<QuantLib::Real>() |
||
) |
Constructor with type, name, weight.
Definition at line 27 of file underlying.cpp.
|
overridevirtual |
Implements XMLSerializable.
Reimplemented in BasicUnderlying, EquityUnderlying, CommodityUnderlying, FXUnderlying, InterestRateUnderlying, InflationUnderlying, CreditUnderlying, and BondUnderlying.
Definition at line 33 of file underlying.cpp.
|
overridevirtual |
Implements XMLSerializable.
Reimplemented in BasicUnderlying, EquityUnderlying, CommodityUnderlying, FXUnderlying, InterestRateUnderlying, InflationUnderlying, CreditUnderlying, and BondUnderlying.
Definition at line 42 of file underlying.cpp.
void setType | ( | const string & | type | ) |
Definition at line 53 of file underlying.hpp.
void setName | ( | const string & | name | ) |
void setWeight | ( | const QuantLib::Real | weight | ) |
void setNodeName | ( | const string & | nodeName | ) |
Definition at line 56 of file underlying.hpp.
void setBasicUnderlyingNodeName | ( | const string & | basicUnderlyingNodeName | ) |
Definition at line 57 of file underlying.hpp.
const std::string & type | ( | ) | const |
|
virtual |
Reimplemented in EquityUnderlying, and BondUnderlying.
Definition at line 64 of file underlying.hpp.
Real weight | ( | ) | const |
|
protected |
Definition at line 69 of file underlying.hpp.
|
protected |
Definition at line 69 of file underlying.hpp.
|
protected |
Definition at line 70 of file underlying.hpp.
|
protected |
Definition at line 71 of file underlying.hpp.
|
protected |
Definition at line 71 of file underlying.hpp.
|
protected |
Definition at line 72 of file underlying.hpp.