#include <ored/portfolio/underlying.hpp>
Definition at line 228 of file underlying.hpp.
◆ BondUnderlying() [1/3]
Default constructor.
Definition at line 231 of file underlying.hpp.
Underlying()
Default Constructor.
void setType(const string &type)
◆ BondUnderlying() [2/3]
Constructor with full bond name (e.g. ISIN:DE00001142867)
Definition at line 234 of file underlying.hpp.
const std::string & name() const override
◆ BondUnderlying() [3/3]
BondUnderlying |
( |
const std::string & |
identifier, |
|
|
const std::string & |
identifierType, |
|
|
const QuantLib::Real |
weight |
|
) |
| |
Constructor with identifer infomation (e.g. identifier = DE00001142867, identifierType = ISIN)
Definition at line 237 of file underlying.hpp.
const std::string & identifierType() const
std::string identifierType_
◆ name()
const std::string & name |
( |
| ) |
const |
|
overridevirtual |
◆ identifierType()
const std::string & identifierType |
( |
| ) |
const |
◆ bidAskAdjustment()
double bidAskAdjustment |
( |
| ) |
const |
◆ setBondName()
set name of bond
Definition at line 267 of file underlying.cpp.
267 {
271 else
273 }
274}
◆ fromXML()
Reimplemented from Underlying.
Definition at line 276 of file underlying.cpp.
276 {
282 QL_REQUIRE(
type_ ==
"Bond",
"Underlying must be of type 'Bond'.");
286 } else {
288 }
291}
void setBondName()
set name of bond
std::string basicUnderlyingNodeName_
virtual void fromXML(ore::data::XMLNode *node) override
static Real getChildValueAsDouble(XMLNode *node, const string &name, bool mandatory=false, double defaultValue=0.0)
static string getNodeName(XMLNode *n)
Get and set a node's name.
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static string getNodeValue(XMLNode *node)
Get a node's value.
◆ toXML()
Reimplemented from Underlying.
Definition at line 293 of file underlying.cpp.
293 {
297 } else {
301 }
302 return node;
303}
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
rapidxml::xml_node< char > XMLNode
◆ bondName_
◆ identifierType_
std::string identifierType_ |
|
private |
◆ bidAskAdjustment_
double bidAskAdjustment_ = 0.0 |
|
private |