Serializable YoY Leg Data. More...
#include <ored/portfolio/legdata.hpp>
Public Member Functions | |
YoYLegData () | |
Default constructor. More... | |
YoYLegData (string index, string observationLag, Size fixingDays, const vector< double > &gearings=std::vector< double >(), const vector< string > &gearingDates=std::vector< string >(), const vector< double > &spreads=std::vector< double >(), const vector< string > &spreadDates=std::vector< string >(), const vector< double > &caps=vector< double >(), const vector< string > &capDates=vector< string >(), const vector< double > &floors=vector< double >(), const vector< string > &floorDates=vector< string >(), bool nakedOption=false, bool addInflationNotional=false, bool irregularYoY=false) | |
Constructor. More... | |
Inspectors | |
const string | index () const |
const string | observationLag () const |
Size | fixingDays () const |
const std::vector< double > & | gearings () const |
const std::vector< string > & | gearingDates () const |
const std::vector< double > & | spreads () const |
const std::vector< string > & | spreadDates () const |
const vector< double > & | caps () const |
const vector< string > & | capDates () const |
const vector< double > & | floors () const |
const vector< string > & | floorDates () const |
bool | nakedOption () const |
bool | addInflationNotional () const |
bool | irregularYoY () const |
Public Member Functions inherited from LegAdditionalData | |
LegAdditionalData (const string &legType, const string &legNodeName) | |
LegAdditionalData (const string &legType) | |
const string & | legType () const |
const string & | legNodeName () const |
const std::set< std::string > & | indices () const |
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 | |
string | index_ |
string | observationLag_ |
Size | fixingDays_ |
vector< double > | gearings_ |
vector< string > | gearingDates_ |
vector< double > | spreads_ |
vector< string > | spreadDates_ |
vector< double > | caps_ |
vector< string > | capDates_ |
vector< double > | floors_ |
vector< string > | floorDates_ |
bool | nakedOption_ |
bool | addInflationNotional_ |
bool | irregularYoY_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Additional Inherited Members | |
Protected Attributes inherited from LegAdditionalData | |
std::set< std::string > | indices_ |
Serializable YoY Leg Data.
Definition at line 349 of file legdata.hpp.
YoYLegData | ( | ) |
Default constructor.
Definition at line 352 of file legdata.hpp.
YoYLegData | ( | string | index, |
string | observationLag, | ||
Size | fixingDays, | ||
const vector< double > & | gearings = std::vector<double>() , |
||
const vector< string > & | gearingDates = std::vector<string>() , |
||
const vector< double > & | spreads = std::vector<double>() , |
||
const vector< string > & | spreadDates = std::vector<string>() , |
||
const vector< double > & | caps = vector<double>() , |
||
const vector< string > & | capDates = vector<string>() , |
||
const vector< double > & | floors = vector<double>() , |
||
const vector< string > & | floorDates = vector<string>() , |
||
bool | nakedOption = false , |
||
bool | addInflationNotional = false , |
||
bool | irregularYoY = false |
||
) |
Constructor.
Definition at line 354 of file legdata.hpp.
const string index | ( | ) | const |
Definition at line 371 of file legdata.hpp.
const string observationLag | ( | ) | const |
Definition at line 372 of file legdata.hpp.
Size fixingDays | ( | ) | const |
Definition at line 373 of file legdata.hpp.
const std::vector< double > & gearings | ( | ) | const |
Definition at line 374 of file legdata.hpp.
const std::vector< string > & gearingDates | ( | ) | const |
Definition at line 375 of file legdata.hpp.
const std::vector< double > & spreads | ( | ) | const |
Definition at line 376 of file legdata.hpp.
const std::vector< string > & spreadDates | ( | ) | const |
Definition at line 377 of file legdata.hpp.
const vector< double > & caps | ( | ) | const |
Definition at line 378 of file legdata.hpp.
const vector< string > & capDates | ( | ) | const |
Definition at line 379 of file legdata.hpp.
const vector< double > & floors | ( | ) | const |
Definition at line 380 of file legdata.hpp.
const vector< string > & floorDates | ( | ) | const |
Definition at line 381 of file legdata.hpp.
bool nakedOption | ( | ) | const |
Definition at line 382 of file legdata.hpp.
bool addInflationNotional | ( | ) | const |
Definition at line 383 of file legdata.hpp.
bool irregularYoY | ( | ) | const |
Definition at line 384 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 342 of file legdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 369 of file legdata.cpp.
|
private |
Definition at line 394 of file legdata.hpp.
|
private |
Definition at line 395 of file legdata.hpp.
|
private |
Definition at line 396 of file legdata.hpp.
|
private |
Definition at line 397 of file legdata.hpp.
|
private |
Definition at line 398 of file legdata.hpp.
|
private |
Definition at line 399 of file legdata.hpp.
|
private |
Definition at line 400 of file legdata.hpp.
|
private |
Definition at line 401 of file legdata.hpp.
|
private |
Definition at line 402 of file legdata.hpp.
|
private |
Definition at line 403 of file legdata.hpp.
|
private |
Definition at line 404 of file legdata.hpp.
|
private |
Definition at line 405 of file legdata.hpp.
|
private |
Definition at line 406 of file legdata.hpp.
|
private |
Definition at line 407 of file legdata.hpp.