Logo
Reference manual - version ored_version
BondUnderlying Class Reference
Inheritance diagram for BondUnderlying:

Public Member Functions

 BondUnderlying ()
 Default constructor.
 BondUnderlying (const std::string &name)
 Constructor with full bond name (e.g. ISIN:DE00001142867).
 BondUnderlying (const std::string &identifier, const std::string &identifierType, const QuantLib::Real weight)
 Constructor with identifer infomation (e.g. identifier = DE00001142867, identifierType = ISIN).
const std::string & name () const override
const std::string & identifierType () const
double bidAskAdjustment () const
void setBondName ()
 set name of bond
Public Member Functions inherited from Underlying
 Underlying ()
 Default Constructor.
 Underlying (const std::string &type, const std::string &name, const QuantLib::Real weight=QuantLib::Null< QuantLib::Real >())
 Constructor with type, name, weight.
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
Real weight () const
Public Member Functions inherited from XMLSerializable
void fromFile (const std::string &filename)
void toFile (const std::string &filename) const
void fromXMLString (const std::string &xml)
 Parse from XML string.
std::string toXMLString () const
 Parse from XML string.
std::string toXMLStringUnformatted () const

Serialisation

void fromXML (XMLNode *node) override
XMLNode * toXML (XMLDocument &doc) const override

Additional Inherited Members

std::string type_
std::string name_
Real weight_ = QuantLib::Null<QuantLib::Real>()
std::string nodeName_
std::string basicUnderlyingNodeName_
bool isBasic_ = false

Member Function Documentation

◆ name()

const std::string & name ( ) const
overridevirtual

Reimplemented from Underlying.

◆ fromXML()

void fromXML ( XMLNode * node)
overridevirtual

Reimplemented from Underlying.

◆ toXML()

XMLNode * toXML ( XMLDocument & doc) const
overridevirtual

Reimplemented from Underlying.