53 if (
from_ != Null<Real>())
55 if (
to_ != Null<Real>())
72std::string output(
const Real d) {
73 if (d == Null<Real>())
76 return std::to_string(d);
81 return out <<
"[" << output(t.
from()) <<
", " << output(t.
to()) <<
"] x " << output(t.
leverage()) <<
" @ "
85std::ostream&
operator<<(std::ostream& out,
const std::vector<RangeBound>& t) {
88 for (Size i = 0; i < t.size(); ++i)
89 s << t[i] << (i < t.size() - 1 ?
", " :
"");
91 return out << s.str();
Serializable obejct holding range bound data.
virtual void fromXML(ore::data::XMLNode *node) override
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
Real strikeAdjustment() const
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void checkNode(XMLNode *n, const string &expectedName)
static XMLNode * getChildNode(XMLNode *n, const string &name="")
static string getNodeValue(XMLNode *node)
Get a node's value.
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
Real parseReal(const string &s)
Convert text to Real.
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
bool operator==(const Dividend &d1, const Dividend &d)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.