#include <ored/portfolio/underlying.hpp>
Public Member Functions | |
CommodityUnderlying () | |
Default Constructor. More... | |
CommodityUnderlying (const std::string &name, const QuantLib::Real weight, const std::string &priceType, const QuantLib::Size futureMonthOffset, const QuantLib::Size deliveryRollDays, const std::string &deliveryRollCalendar) | |
Constructor with identifier information. More... | |
const std::string & | priceType () const |
QuantLib::Size | futureMonthOffset () const |
QuantLib::Size | deliveryRollDays () const |
const std::string & | deliveryRollCalendar () const |
const std::string & | futureContractMonth () const |
const std::string & | futureExpiryDate () const |
Public Member Functions inherited from Underlying | |
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... | |
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) |
const std::string & | type () const |
virtual const std::string & | name () const |
Real | weight () 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::string | priceType_ |
QuantLib::Size | futureMonthOffset_ = QuantLib::Null<QuantLib::Size>() |
QuantLib::Size | deliveryRollDays_ = QuantLib::Null<QuantLib::Size>() |
std::string | deliveryRollCalendar_ |
std::string | futureContractMonth_ |
std::string | futureExpiryDate_ |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
Additional Inherited Members | |
Protected Attributes inherited from Underlying | |
std::string | type_ |
std::string | name_ |
Real | weight_ = QuantLib::Null<QuantLib::Real>() |
std::string | nodeName_ |
std::string | basicUnderlyingNodeName_ |
bool | isBasic_ = false |
Definition at line 127 of file underlying.hpp.
Default Constructor.
Definition at line 130 of file underlying.hpp.
CommodityUnderlying | ( | const std::string & | name, |
const QuantLib::Real | weight, | ||
const std::string & | priceType, | ||
const QuantLib::Size | futureMonthOffset, | ||
const QuantLib::Size | deliveryRollDays, | ||
const std::string & | deliveryRollCalendar | ||
) |
Constructor with identifier information.
Definition at line 133 of file underlying.hpp.
const std::string & priceType | ( | ) | const |
Definition at line 139 of file underlying.hpp.
QuantLib::Size futureMonthOffset | ( | ) | const |
Definition at line 140 of file underlying.hpp.
QuantLib::Size deliveryRollDays | ( | ) | const |
Definition at line 141 of file underlying.hpp.
const std::string & deliveryRollCalendar | ( | ) | const |
Definition at line 142 of file underlying.hpp.
const std::string & futureContractMonth | ( | ) | const |
Definition at line 143 of file underlying.hpp.
const std::string & futureExpiryDate | ( | ) | const |
Definition at line 144 of file underlying.hpp.
|
overridevirtual |
Reimplemented from Underlying.
Definition at line 118 of file underlying.cpp.
|
overridevirtual |
Reimplemented from Underlying.
Definition at line 146 of file underlying.cpp.
|
private |
Definition at line 152 of file underlying.hpp.
|
private |
Definition at line 153 of file underlying.hpp.
|
private |
Definition at line 154 of file underlying.hpp.
|
private |
Definition at line 155 of file underlying.hpp.
|
private |
Definition at line 156 of file underlying.hpp.
|
private |
Definition at line 157 of file underlying.hpp.