#include <ored/portfolio/underlying.hpp>
Definition at line 192 of file underlying.hpp.
◆ InflationUnderlying() [1/2]
Default Constructor.
Definition at line 195 of file underlying.hpp.
Underlying()
Default Constructor.
void setType(const string &type)
◆ InflationUnderlying() [2/2]
InflationUnderlying |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const QuantLib::Real |
weight, |
|
|
const QuantLib::CPI::InterpolationType & |
interpolation = QuantLib::CPI::InterpolationType::Flat |
|
) |
| |
Constructor with identifier information.
Definition at line 198 of file underlying.hpp.
QuantLib::CPI::InterpolationType interpolation_
const QuantLib::CPI::InterpolationType & interpolation() const
const std::string & type() const
virtual const std::string & name() const
◆ interpolation()
const QuantLib::CPI::InterpolationType & interpolation |
( |
| ) |
const |
◆ fromXML()
Reimplemented from Underlying.
Definition at line 237 of file underlying.cpp.
237 {
243
245 if (interpolationString != "")
247 else
250 } else {
251 QL_FAIL("Need either a Name or Underlying node for InflationUnderlying.");
252 }
254}
std::string basicUnderlyingNodeName_
virtual void fromXML(ore::data::XMLNode *node) override
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.
QuantLib::CPI::InterpolationType parseObservationInterpolation(const std::string &s)
Convert string to observation interpolation.
◆ toXML()
Reimplemented from Underlying.
Definition at line 256 of file underlying.cpp.
256 {
260 } else {
263 }
264 return node;
265}
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
◆ interpolation_
QuantLib::CPI::InterpolationType interpolation_ |
|
private |