Serializable CPI Leg Data. More...
#include <ored/portfolio/legdata.hpp>
Public Member Functions | |
CPILegData () | |
Default constructor. More... | |
CPILegData (string index, string startDate, double baseCPI, string observationLag, string interpolation, const vector< double > &rates, const vector< string > &rateDates=std::vector< string >(), bool subtractInflationNominal=true, const vector< double > &caps=vector< double >(), const vector< string > &capDates=vector< string >(), const vector< double > &floors=vector< double >(), const vector< string > &floorDates=vector< string >(), double finalFlowCap=Null< Real >(), double finalFlowFloor=Null< Real >(), bool nakedOption=false, bool subtractInflationNominalCoupons=false) | |
Constructor. More... | |
Inspectors | |
const string & | index () const |
const string & | startDate () const |
double | baseCPI () const |
const string & | observationLag () const |
const string & | interpolation () const |
const std::vector< double > & | rates () const |
const std::vector< string > & | rateDates () const |
bool | subtractInflationNominal () const |
const vector< double > & | caps () const |
const vector< string > & | capDates () const |
const vector< double > & | floors () const |
const vector< string > & | floorDates () const |
double | finalFlowCap () const |
double | finalFlowFloor () const |
bool | nakedOption () const |
bool | subtractInflationNominalCoupons () 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 | startDate_ |
double | baseCPI_ |
string | observationLag_ |
string | interpolation_ |
vector< double > | rates_ |
vector< string > | rateDates_ |
bool | subtractInflationNominal_ |
vector< double > | caps_ |
vector< string > | capDates_ |
vector< double > | floors_ |
vector< string > | floorDates_ |
double | finalFlowCap_ |
double | finalFlowFloor_ |
bool | nakedOption_ |
bool | subtractInflationNominalCoupons_ |
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 CPI Leg Data.
Definition at line 281 of file legdata.hpp.
CPILegData | ( | ) |
Default constructor.
Definition at line 284 of file legdata.hpp.
CPILegData | ( | string | index, |
string | startDate, | ||
double | baseCPI, | ||
string | observationLag, | ||
string | interpolation, | ||
const vector< double > & | rates, | ||
const vector< string > & | rateDates = std::vector<string>() , |
||
bool | subtractInflationNominal = true , |
||
const vector< double > & | caps = vector<double>() , |
||
const vector< string > & | capDates = vector<string>() , |
||
const vector< double > & | floors = vector<double>() , |
||
const vector< string > & | floorDates = vector<string>() , |
||
double | finalFlowCap = Null<Real>() , |
||
double | finalFlowFloor = Null<Real>() , |
||
bool | nakedOption = false , |
||
bool | subtractInflationNominalCoupons = false |
||
) |
Constructor.
Definition at line 286 of file legdata.hpp.
const string & index | ( | ) | const |
Definition at line 303 of file legdata.hpp.
const string & startDate | ( | ) | const |
Definition at line 304 of file legdata.hpp.
double baseCPI | ( | ) | const |
Definition at line 305 of file legdata.hpp.
const string & observationLag | ( | ) | const |
Definition at line 306 of file legdata.hpp.
const string & interpolation | ( | ) | const |
Definition at line 307 of file legdata.hpp.
const std::vector< double > & rates | ( | ) | const |
Definition at line 308 of file legdata.hpp.
const std::vector< string > & rateDates | ( | ) | const |
Definition at line 309 of file legdata.hpp.
bool subtractInflationNominal | ( | ) | const |
Definition at line 310 of file legdata.hpp.
const vector< double > & caps | ( | ) | const |
Definition at line 311 of file legdata.hpp.
const vector< string > & capDates | ( | ) | const |
Definition at line 312 of file legdata.hpp.
const vector< double > & floors | ( | ) | const |
Definition at line 313 of file legdata.hpp.
const vector< string > & floorDates | ( | ) | const |
Definition at line 314 of file legdata.hpp.
double finalFlowCap | ( | ) | const |
Definition at line 315 of file legdata.hpp.
double finalFlowFloor | ( | ) | const |
Definition at line 316 of file legdata.hpp.
bool nakedOption | ( | ) | const |
Definition at line 317 of file legdata.hpp.
bool subtractInflationNominalCoupons | ( | ) | const |
Definition at line 318 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 262 of file legdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 316 of file legdata.cpp.
|
private |
Definition at line 327 of file legdata.hpp.
|
private |
Definition at line 328 of file legdata.hpp.
|
private |
Definition at line 329 of file legdata.hpp.
|
private |
Definition at line 330 of file legdata.hpp.
|
private |
Definition at line 331 of file legdata.hpp.
|
private |
Definition at line 332 of file legdata.hpp.
|
private |
Definition at line 333 of file legdata.hpp.
|
private |
Definition at line 334 of file legdata.hpp.
|
private |
Definition at line 335 of file legdata.hpp.
|
private |
Definition at line 336 of file legdata.hpp.
|
private |
Definition at line 337 of file legdata.hpp.
|
private |
Definition at line 338 of file legdata.hpp.
|
private |
Definition at line 339 of file legdata.hpp.
|
private |
Definition at line 340 of file legdata.hpp.
|
private |
Definition at line 341 of file legdata.hpp.
|
private |
Definition at line 342 of file legdata.hpp.