Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
CommodityIndexReferenceDatum Class Reference

EquityIndex Reference data, contains the names and weights of an equity index. More...

#include <ored/portfolio/referencedata.hpp>

+ Inheritance diagram for CommodityIndexReferenceDatum:
+ Collaboration diagram for CommodityIndexReferenceDatum:

Public Member Functions

 CommodityIndexReferenceDatum ()
 
 CommodityIndexReferenceDatum (const string &name)
 
 CommodityIndexReferenceDatum (const string &name, const QuantLib::Date &validFrom)
 
- Public Member Functions inherited from IndexReferenceDatum
void fromXML (XMLNode *node) override
 
XMLNodetoXML (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
 
XMLNodetoXML (ore::data::XMLDocument &doc) const override
 
- Public Member Functions inherited from XMLSerializable
virtual ~XMLSerializable ()
 
virtual void fromXML (XMLNode *node)=0
 
virtual XMLNodetoXML (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...
 

Static Public Attributes

static constexpr const char * TYPE = "Commodity"
 

Additional Inherited Members

- Protected Member Functions inherited from IndexReferenceDatum
 IndexReferenceDatum ()
 
 IndexReferenceDatum (const string &type, const string &id)
 
 IndexReferenceDatum (const string &type, const string &id, const QuantLib::Date &validFrom)
 

Detailed Description

EquityIndex Reference data, contains the names and weights of an equity index.

Definition at line 261 of file referencedata.hpp.

Constructor & Destructor Documentation

◆ CommodityIndexReferenceDatum() [1/3]

Definition at line 265 of file referencedata.hpp.

265{}

◆ CommodityIndexReferenceDatum() [2/3]

CommodityIndexReferenceDatum ( const string &  name)

Definition at line 266 of file referencedata.hpp.

◆ CommodityIndexReferenceDatum() [3/3]

CommodityIndexReferenceDatum ( const string &  name,
const QuantLib::Date &  validFrom 
)

Definition at line 267 of file referencedata.hpp.

const QuantLib::Date & validFrom() const

Member Data Documentation

◆ TYPE

constexpr const char* TYPE = "Commodity"
staticconstexpr

Definition at line 263 of file referencedata.hpp.