#include <ored/portfolio/commodityspreadoption.hpp>
Classes | |
class | OptionStripData |
Public Member Functions | |
CommoditySpreadOptionData () | |
CommoditySpreadOptionData (const std::vector< ore::data::LegData > &legData, const ore::data::OptionData &optionData, QuantLib::Real strike) | |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (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... | |
Serialisation | |
std::vector< ore::data::LegData > | legData_ |
ore::data::OptionData | optionData_ |
QuantLib::Real | strike_ |
boost::optional< OptionStripData > | optionStrip_ |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
const std::vector< ore::data::LegData > & | legData () const |
const ore::data::OptionData & | optionData () const |
QuantLib::Real | strike () const |
boost::optional< OptionStripData > | optionStrip () |
QuantLib::ext::shared_ptr< ore::data::LegData > | createLegData () const |
Definition at line 26 of file commodityspreadoption.hpp.
Definition at line 47 of file commodityspreadoption.hpp.
CommoditySpreadOptionData | ( | const std::vector< ore::data::LegData > & | legData, |
const ore::data::OptionData & | optionData, | ||
QuantLib::Real | strike | ||
) |
Definition at line 48 of file commodityspreadoption.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 339 of file commodityspreadoption.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 366 of file commodityspreadoption.cpp.
const std::vector< ore::data::LegData > & legData | ( | ) | const |
Definition at line 57 of file commodityspreadoption.hpp.
const ore::data::OptionData & optionData | ( | ) | const |
Definition at line 58 of file commodityspreadoption.hpp.
QuantLib::Real strike | ( | ) | const |
Definition at line 59 of file commodityspreadoption.hpp.
boost::optional< OptionStripData > optionStrip | ( | ) |
Definition at line 60 of file commodityspreadoption.hpp.
|
private |
Definition at line 63 of file commodityspreadoption.hpp.
|
private |
Definition at line 65 of file commodityspreadoption.hpp.
|
private |
Definition at line 66 of file commodityspreadoption.hpp.
|
private |
Definition at line 67 of file commodityspreadoption.hpp.
|
private |
Definition at line 69 of file commodityspreadoption.hpp.