Serializable Floating Leg Data. More...
#include <ored/portfolio/legdata.hpp>
Inheritance diagram for FloatingLegData:
Collaboration diagram for FloatingLegData:Public Member Functions | |
| FloatingLegData () | |
| Default constructor. More... | |
| FloatingLegData (const string &index, QuantLib::Size fixingDays, bool isInArrears, const vector< double > &spreads, const vector< string > &spreadDates=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 >(), const vector< double > &gearings=vector< double >(), const vector< string > &gearingDates=vector< string >(), bool isAveraged=false, bool nakedOption=false, bool hasSubPeriods=false, bool includeSpread=false, QuantLib::Period lookback=0 *Days, const Size rateCutoff=Null< Size >(), bool localCapFloor=false, const boost::optional< Period > &lastRecentPeriod=boost::none, const std::string &lastRecentPeriodCalendar=std::string(), bool telescopicValueDates=false, const std::map< QuantLib::Date, double > &historicalFixings={}) | |
| Constructor. More... | |
Inspectors | |
| const string & | index () const |
| QuantLib::Size | fixingDays () const |
| QuantLib::Period | lookback () const |
| QuantLib::Size | rateCutoff () const |
| boost::optional< bool > | isInArrears () const |
| bool | isAveraged () const |
| bool | hasSubPeriods () const |
| bool | includeSpread () const |
| const vector< double > & | spreads () const |
| const vector< string > & | spreadDates () const |
| const vector< double > & | caps () const |
| const vector< string > & | capDates () const |
| const vector< double > & | floors () const |
| const vector< string > & | floorDates () const |
| const vector< double > & | gearings () const |
| const vector< string > & | gearingDates () const |
| bool | nakedOption () const |
| bool | localCapFloor () const |
| const boost::optional< Period > & | lastRecentPeriod () const |
| const std::string & | lastRecentPeriodCalendar () const |
| bool | telescopicValueDates () const |
| ScheduleData | fixingSchedule () const |
| ScheduleData | resetSchedule () const |
| const std::map< QuantLib::Date, double > & | historicalFixings () const |
Modifiers | |
| vector< double > & | caps () |
| vector< string > & | capDates () |
| vector< double > & | floors () |
| vector< string > & | floorDates () |
| bool & | nakedOption () |
| bool & | localCapFloor () |
| bool & | telescopicValueDates () |
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_ |
| QuantLib::Size | fixingDays_ = Null<Size>() |
| QuantLib::Period | lookback_ = 0 * Days |
| QuantLib::Size | rateCutoff_ = Null<Size>() |
| boost::optional< bool > | isInArrears_ |
| bool | isAveraged_ = false |
| bool | hasSubPeriods_ = false |
| bool | includeSpread_ = false |
| vector< double > | spreads_ |
| vector< string > | spreadDates_ |
| vector< double > | caps_ |
| vector< string > | capDates_ |
| vector< double > | floors_ |
| vector< string > | floorDates_ |
| vector< double > | gearings_ |
| vector< string > | gearingDates_ |
| bool | nakedOption_ = false |
| bool | localCapFloor_ = false |
| boost::optional< Period > | lastRecentPeriod_ |
| std::string | lastRecentPeriodCalendar_ |
| bool | telescopicValueDates_ = false |
| ScheduleData | fixingSchedule_ |
| ScheduleData | resetSchedule_ |
| std::map< QuantLib::Date, double > | historicalFixings_ |
| 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 Floating Leg Data.
Definition at line 179 of file legdata.hpp.
| FloatingLegData | ( | ) |
Default constructor.
Definition at line 182 of file legdata.hpp.
| FloatingLegData | ( | const string & | index, |
| QuantLib::Size | fixingDays, | ||
| bool | isInArrears, | ||
| const vector< double > & | spreads, | ||
| const vector< string > & | spreadDates = 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>(), |
||
| const vector< double > & | gearings = vector<double>(), |
||
| const vector< string > & | gearingDates = vector<string>(), |
||
| bool | isAveraged = false, |
||
| bool | nakedOption = false, |
||
| bool | hasSubPeriods = false, |
||
| bool | includeSpread = false, |
||
| QuantLib::Period | lookback = 0 * Days, |
||
| const Size | rateCutoff = Null<Size>(), |
||
| bool | localCapFloor = false, |
||
| const boost::optional< Period > & | lastRecentPeriod = boost::none, |
||
| const std::string & | lastRecentPeriodCalendar = std::string(), |
||
| bool | telescopicValueDates = false, |
||
| const std::map< QuantLib::Date, double > & | historicalFixings = {} |
||
| ) |
Constructor.
Definition at line 184 of file legdata.hpp.
| const string & index | ( | ) | const |
Definition at line 207 of file legdata.hpp.
| QuantLib::Size fixingDays | ( | ) | const |
Definition at line 208 of file legdata.hpp.
| QuantLib::Period lookback | ( | ) | const |
Definition at line 209 of file legdata.hpp.
| QuantLib::Size rateCutoff | ( | ) | const |
Definition at line 210 of file legdata.hpp.
| boost::optional< bool > isInArrears | ( | ) | const |
Definition at line 211 of file legdata.hpp.
| bool isAveraged | ( | ) | const |
Definition at line 212 of file legdata.hpp.
| bool hasSubPeriods | ( | ) | const |
Definition at line 213 of file legdata.hpp.
| bool includeSpread | ( | ) | const |
Definition at line 214 of file legdata.hpp.
| const vector< double > & spreads | ( | ) | const |
Definition at line 215 of file legdata.hpp.
| const vector< string > & spreadDates | ( | ) | const |
Definition at line 216 of file legdata.hpp.
| const vector< double > & caps | ( | ) | const |
Definition at line 217 of file legdata.hpp.
| const vector< string > & capDates | ( | ) | const |
Definition at line 218 of file legdata.hpp.
| const vector< double > & floors | ( | ) | const |
Definition at line 219 of file legdata.hpp.
| const vector< string > & floorDates | ( | ) | const |
Definition at line 220 of file legdata.hpp.
| const vector< double > & gearings | ( | ) | const |
Definition at line 221 of file legdata.hpp.
| const vector< string > & gearingDates | ( | ) | const |
Definition at line 222 of file legdata.hpp.
| bool nakedOption | ( | ) | const |
Definition at line 223 of file legdata.hpp.
| bool localCapFloor | ( | ) | const |
Definition at line 224 of file legdata.hpp.
| const boost::optional< Period > & lastRecentPeriod | ( | ) | const |
Definition at line 225 of file legdata.hpp.
| const std::string & lastRecentPeriodCalendar | ( | ) | const |
Definition at line 226 of file legdata.hpp.
| bool telescopicValueDates | ( | ) | const |
Definition at line 227 of file legdata.hpp.
| ScheduleData fixingSchedule | ( | ) | const |
Definition at line 228 of file legdata.hpp.
| ScheduleData resetSchedule | ( | ) | const |
Definition at line 229 of file legdata.hpp.
| const std::map< QuantLib::Date, double > & historicalFixings | ( | ) | const |
Definition at line 230 of file legdata.hpp.
| vector< double > & caps | ( | ) |
Definition at line 235 of file legdata.hpp.
| vector< string > & capDates | ( | ) |
Definition at line 236 of file legdata.hpp.
| vector< double > & floors | ( | ) |
Definition at line 237 of file legdata.hpp.
| vector< string > & floorDates | ( | ) |
Definition at line 238 of file legdata.hpp.
| bool & nakedOption | ( | ) |
Definition at line 239 of file legdata.hpp.
| bool & localCapFloor | ( | ) |
Definition at line 240 of file legdata.hpp.
| bool & telescopicValueDates | ( | ) |
Definition at line 241 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 151 of file legdata.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 217 of file legdata.cpp.
Here is the call graph for this function:
|
private |
Definition at line 250 of file legdata.hpp.
|
private |
Definition at line 251 of file legdata.hpp.
|
private |
Definition at line 252 of file legdata.hpp.
|
private |
Definition at line 253 of file legdata.hpp.
|
private |
Definition at line 254 of file legdata.hpp.
|
private |
Definition at line 255 of file legdata.hpp.
|
private |
Definition at line 256 of file legdata.hpp.
|
private |
Definition at line 257 of file legdata.hpp.
|
private |
Definition at line 258 of file legdata.hpp.
|
private |
Definition at line 259 of file legdata.hpp.
|
private |
Definition at line 260 of file legdata.hpp.
|
private |
Definition at line 261 of file legdata.hpp.
|
private |
Definition at line 262 of file legdata.hpp.
|
private |
Definition at line 263 of file legdata.hpp.
|
private |
Definition at line 264 of file legdata.hpp.
|
private |
Definition at line 265 of file legdata.hpp.
|
private |
Definition at line 266 of file legdata.hpp.
|
private |
Definition at line 267 of file legdata.hpp.
|
private |
Definition at line 268 of file legdata.hpp.
|
private |
Definition at line 269 of file legdata.hpp.
|
private |
Definition at line 270 of file legdata.hpp.
|
private |
Definition at line 271 of file legdata.hpp.
|
private |
Definition at line 272 of file legdata.hpp.
|
private |
Definition at line 273 of file legdata.hpp.