Base class for yield curve segments. More...
#include <ored/configuration/yieldcurveconfig.hpp>
Inheritance diagram for YieldCurveSegment:
Collaboration diagram for YieldCurveSegment:Public Types | |
| enum class | Type { Zero , ZeroSpread , Discount , Deposit , FRA , Future , OIS , Swap , AverageOIS , TenorBasis , TenorBasisTwo , BMABasis , FXForward , CrossCcyBasis , CrossCcyFixFloat , DiscountRatio , FittedBond , WeightedAverage , YieldPlusDefault , IborFallback , BondYieldShifted } |
| supported segment types More... | |
Public Member Functions | |
| virtual | ~YieldCurveSegment () |
| Default destructor. More... | |
Serialisation | |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
Inspectors | |
| Type | type () const |
| const string & | typeID () const |
| const string & | conventionsID () const |
| const QuantLib::Pillar::Choice | pillarChoice () const |
| Size | priority () const |
| Size | minDistance () const |
| const vector< pair< string, bool > > & | quotes () const |
Visitability | |
| virtual void | accept (AcyclicVisitor &) |
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... | |
Constructors | |
| vector< pair< string, bool > > | quotes_ |
| Quote and optional flag pair. More... | |
| Type | type_ |
| string | typeID_ |
| string | conventionsID_ |
| QuantLib::Pillar::Choice | pillarChoice_ = QuantLib::Pillar::LastRelevantDate |
| Size | priority_ = 0 |
| Size | minDistance_ = 1 |
| YieldCurveSegment () | |
| Default constructor. More... | |
| YieldCurveSegment (const string &typeID, const string &conventionsID, const vector< string > "es) | |
| Detailed constructor - assumes all quotes are mandatory. More... | |
| pair< string, bool > | quote (const string &name, bool opt=false) |
| Utility to build a quote, optional flag defaults to false. More... | |
Base class for yield curve segments.
Definition at line 58 of file yieldcurveconfig.hpp.
|
strong |
supported segment types
Definition at line 61 of file yieldcurveconfig.hpp.
|
virtual |
|
protected |
|
protected |
Detailed constructor - assumes all quotes are mandatory.
Definition at line 378 of file yieldcurveconfig.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Reimplemented in DirectYieldCurveSegment, SimpleYieldCurveSegment, AverageOISYieldCurveSegment, TenorBasisYieldCurveSegment, CrossCcyYieldCurveSegment, ZeroSpreadedYieldCurveSegment, WeightedAverageYieldCurveSegment, YieldPlusDefaultYieldCurveSegment, DiscountRatioYieldCurveSegment, FittedBondYieldCurveSegment, IborFallbackCurveSegment, and BondYieldShiftedYieldCurveSegment.
Definition at line 385 of file yieldcurveconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Reimplemented in DirectYieldCurveSegment, SimpleYieldCurveSegment, AverageOISYieldCurveSegment, TenorBasisYieldCurveSegment, CrossCcyYieldCurveSegment, ZeroSpreadedYieldCurveSegment, WeightedAverageYieldCurveSegment, YieldPlusDefaultYieldCurveSegment, DiscountRatioYieldCurveSegment, FittedBondYieldCurveSegment, IborFallbackCurveSegment, and BondYieldShiftedYieldCurveSegment.
Definition at line 440 of file yieldcurveconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Type type | ( | ) | const |
| const string & typeID | ( | ) | const |
| const string & conventionsID | ( | ) | const |
| const QuantLib::Pillar::Choice pillarChoice | ( | ) | const |
Definition at line 99 of file yieldcurveconfig.hpp.
| Size priority | ( | ) | const |
Definition at line 100 of file yieldcurveconfig.hpp.
| Size minDistance | ( | ) | const |
Definition at line 101 of file yieldcurveconfig.hpp.
| const vector< pair< string, bool > > & quotes | ( | ) | const |
|
virtual |
Reimplemented in DirectYieldCurveSegment, SimpleYieldCurveSegment, AverageOISYieldCurveSegment, TenorBasisYieldCurveSegment, CrossCcyYieldCurveSegment, ZeroSpreadedYieldCurveSegment, WeightedAverageYieldCurveSegment, YieldPlusDefaultYieldCurveSegment, FittedBondYieldCurveSegment, IborFallbackCurveSegment, and BondYieldShiftedYieldCurveSegment.
Definition at line 477 of file yieldcurveconfig.cpp.
Here is the caller graph for this function:Utility to build a quote, optional flag defaults to false.
Definition at line 123 of file yieldcurveconfig.hpp.
Here is the caller graph for this function:
|
protected |
Quote and optional flag pair.
Definition at line 120 of file yieldcurveconfig.hpp.
|
private |
Definition at line 127 of file yieldcurveconfig.hpp.
|
private |
Definition at line 128 of file yieldcurveconfig.hpp.
|
private |
Definition at line 129 of file yieldcurveconfig.hpp.
|
private |
Definition at line 130 of file yieldcurveconfig.hpp.
|
private |
Definition at line 131 of file yieldcurveconfig.hpp.
|
private |
Definition at line 132 of file yieldcurveconfig.hpp.