Curve Specification. More...
#include <ored/marketdata/curvespec.hpp>
Public Types | |
enum class | CurveType { FX , Yield , CapFloorVolatility , SwaptionVolatility , YieldVolatility , FXVolatility , Default , CDSVolatility , Inflation , InflationCapFloorVolatility , Equity , EquityVolatility , Security , BaseCorrelation , Commodity , CommodityVolatility , Correlation } |
Supported curve types. More... | |
Public Member Functions | |
CurveSpec () | |
Default constructor. More... | |
CurveSpec (const std::string &curveConfigID) | |
Constructor that takes an underlying CurveConfig id. More... | |
virtual | ~CurveSpec () |
Default destructor. More... | |
Interface | |
std::string | curveConfigID_ |
The id of the CurveConfig associated with the CurveSpec, if any. More... | |
virtual CurveType | baseType () const =0 |
virtual string | subName () const =0 |
string | name () const |
returns the unique curve name More... | |
const std::string & | curveConfigID () const |
string | baseName () const |
|
strong |
Supported curve types.
Definition at line 43 of file curvespec.hpp.
CurveSpec | ( | ) |
CurveSpec | ( | const std::string & | curveConfigID | ) |
Constructor that takes an underlying CurveConfig id.
Definition at line 67 of file curvespec.hpp.
|
virtual |
|
pure virtual |
Implemented in YieldCurveSpec, DefaultCurveSpec, CDSVolatilityCurveSpec, BaseCorrelationCurveSpec, SwaptionVolatilityCurveSpec, YieldVolatilityCurveSpec, CapFloorVolatilityCurveSpec, FXSpotSpec, FXVolatilityCurveSpec, InflationCurveSpec, InflationCapFloorVolatilityCurveSpec, EquityCurveSpec, EquityVolatilityCurveSpec, SecuritySpec, CommodityCurveSpec, CommodityVolatilityCurveSpec, and CorrelationCurveSpec.
|
pure virtual |
Implemented in YieldCurveSpec, DefaultCurveSpec, CDSVolatilityCurveSpec, BaseCorrelationCurveSpec, SwaptionVolatilityCurveSpec, YieldVolatilityCurveSpec, CapFloorVolatilityCurveSpec, FXSpotSpec, FXVolatilityCurveSpec, InflationCurveSpec, InflationCapFloorVolatilityCurveSpec, EquityCurveSpec, EquityVolatilityCurveSpec, SecuritySpec, CommodityCurveSpec, CommodityVolatilityCurveSpec, and CorrelationCurveSpec.
string name | ( | ) | const |
returns the unique curve name
Definition at line 78 of file curvespec.hpp.
const std::string & curveConfigID | ( | ) | const |
Returns the id of the CurveConfig associated with the CurveSpec. If there is no CurveConfig associated with the CurveSpec, it returns the default empty string.
Definition at line 83 of file curvespec.hpp.
string baseName | ( | ) | const |
Definition at line 25 of file curvespec.cpp.
|
private |
The id of the CurveConfig associated with the CurveSpec, if any.
Definition at line 89 of file curvespec.hpp.