Container for storing Bond Spread Rate conventions. More...
#include <ored/configuration/conventions.hpp>
Inheritance diagram for SecuritySpreadConvention:
Collaboration diagram for SecuritySpreadConvention:Public Member Functions | |
Constructors | |
| SecuritySpreadConvention () | |
| Default constructor. More... | |
| SecuritySpreadConvention (const string &id, const string &dayCounter, const string &compounding, const string &compoundingFrequency) | |
| SecuritySpreadConvention (const string &id, const string &dayCounter, const string &tenorCalendar, const string &compounding="Continuous", const string &compoundingFrequency="Annual", const string &spotLag="", const string &spotCalendar="", const string &rollConvention="", const string &eom="") | |
Inspectors | |
| const DayCounter & | dayCounter () const |
| Zero rate day counter. More... | |
| const Calendar & | tenorCalendar () const |
| Return the calendar used for converting tenor points into dates. More... | |
| Compounding | compounding () const |
| Zero rate compounding. More... | |
| Frequency | compoundingFrequency () const |
| Zero rate compounding frequency. More... | |
| Natural | spotLag () const |
| Zero rate spot lag. More... | |
| const Calendar & | spotCalendar () const |
| Calendar used for spot date adjustment. More... | |
| BusinessDayConvention | rollConvention () const |
| Business day convention used in converting tenor points into dates. More... | |
| bool | eom () |
| End of month adjustment. More... | |
| bool | tenorBased () |
| Flag to indicate whether the Zero Rate convention is based on a tenor input. More... | |
Public Member Functions inherited from Convention | |
| virtual | ~Convention () |
| Default destructor. More... | |
| const string & | id () const |
| Type | type () 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 | |
| DayCounter | dayCounter_ |
| Calendar | tenorCalendar_ |
| Compounding | compounding_ |
| Frequency | compoundingFrequency_ |
| Natural | spotLag_ |
| Calendar | spotCalendar_ |
| BusinessDayConvention | rollConvention_ |
| bool | eom_ |
| bool | tenorBased_ |
| string | strDayCounter_ |
| string | strTenorCalendar_ |
| string | strCompounding_ |
| string | strCompoundingFrequency_ |
| string | strSpotLag_ |
| string | strSpotCalendar_ |
| string | strRollConvention_ |
| string | strEom_ |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
| virtual void | build () override |
Additional Inherited Members | |
Public Types inherited from Convention | |
| enum class | Type { Zero , Deposit , Future , FRA , OIS , Swap , AverageOIS , TenorBasisSwap , TenorBasisTwoSwap , BMABasisSwap , FX , CrossCcyBasis , CrossCcyFixFloat , CDS , IborIndex , OvernightIndex , SwapIndex , ZeroInflationIndex , InflationSwap , SecuritySpread , CMSSpreadOption , CommodityForward , CommodityFuture , FxOption , BondYield } |
| Supported convention types. More... | |
Protected Member Functions inherited from Convention | |
| Convention () | |
| Convention (const string &id, Type type) | |
Protected Attributes inherited from Convention | |
| Type | type_ |
| string | id_ |
Container for storing Bond Spread Rate conventions.
Definition at line 1148 of file conventions.hpp.
| SecuritySpreadConvention | ( | const string & | id, |
| const string & | dayCounter, | ||
| const string & | compounding, | ||
| const string & | compoundingFrequency | ||
| ) |
Definition at line 1337 of file conventions.cpp.
Here is the call graph for this function:| SecuritySpreadConvention | ( | const string & | id, |
| const string & | dayCounter, | ||
| const string & | tenorCalendar, | ||
| const string & | compounding = "Continuous", |
||
| const string & | compoundingFrequency = "Annual", |
||
| const string & | spotLag = "", |
||
| const string & | spotCalendar = "", |
||
| const string & | rollConvention = "", |
||
| const string & | eom = "" |
||
| ) |
Definition at line 1344 of file conventions.cpp.
Here is the call graph for this function:| const DayCounter & dayCounter | ( | ) | const |
Zero rate day counter.
Definition at line 1165 of file conventions.hpp.
| const Calendar & tenorCalendar | ( | ) | const |
Return the calendar used for converting tenor points into dates.
Definition at line 1167 of file conventions.hpp.
| Compounding compounding | ( | ) | const |
Zero rate compounding.
Definition at line 1169 of file conventions.hpp.
| Frequency compoundingFrequency | ( | ) | const |
Zero rate compounding frequency.
Definition at line 1171 of file conventions.hpp.
| Natural spotLag | ( | ) | const |
| const Calendar & spotCalendar | ( | ) | const |
Calendar used for spot date adjustment.
Definition at line 1175 of file conventions.hpp.
| BusinessDayConvention rollConvention | ( | ) | const |
Business day convention used in converting tenor points into dates.
Definition at line 1177 of file conventions.hpp.
| bool eom | ( | ) |
| bool tenorBased | ( | ) |
Flag to indicate whether the Zero Rate convention is based on a tenor input.
Definition at line 1181 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1368 of file conventions.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1389 of file conventions.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements Convention.
Definition at line 1355 of file conventions.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 1192 of file conventions.hpp.
|
private |
Definition at line 1193 of file conventions.hpp.
|
private |
Definition at line 1194 of file conventions.hpp.
|
private |
Definition at line 1195 of file conventions.hpp.
|
private |
Definition at line 1196 of file conventions.hpp.
|
private |
Definition at line 1197 of file conventions.hpp.
|
private |
Definition at line 1198 of file conventions.hpp.
|
private |
Definition at line 1199 of file conventions.hpp.
|
private |
Definition at line 1200 of file conventions.hpp.
|
private |
Definition at line 1203 of file conventions.hpp.
|
private |
Definition at line 1204 of file conventions.hpp.
|
private |
Definition at line 1205 of file conventions.hpp.
|
private |
Definition at line 1206 of file conventions.hpp.
|
private |
Definition at line 1207 of file conventions.hpp.
|
private |
Definition at line 1208 of file conventions.hpp.
|
private |
Definition at line 1209 of file conventions.hpp.
|
private |
Definition at line 1210 of file conventions.hpp.