Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
List of all members
FXSpotSpec Class Reference

FX Spot description. More...

#include <ored/marketdata/curvespec.hpp>

+ Inheritance diagram for FXSpotSpec:
+ Collaboration diagram for FXSpotSpec:

Public Member Functions

Constructors
 FXSpotSpec ()
 Default constructor. More...
 
 FXSpotSpec (string unitCcy, string ccy)
 Detailed constructor. More...
 
- Public Member Functions inherited from CurveSpec
 CurveSpec ()
 Default constructor. More...
 
 CurveSpec (const std::string &curveConfigID)
 Constructor that takes an underlying CurveConfig id. More...
 
virtual ~CurveSpec ()
 Default destructor. More...
 
string name () const
 returns the unique curve name More...
 
const std::string & curveConfigID () const
 
string baseName () const
 

Inspectors

string unitCcy_
 
string ccy_
 
CurveType baseType () const override
 
const string & unitCcy () const
 
const string & ccy () const
 
string subName () const override
 

Additional Inherited Members

- Public Types inherited from CurveSpec
enum class  CurveType {
  FX , Yield , CapFloorVolatility , SwaptionVolatility ,
  YieldVolatility , FXVolatility , Default , CDSVolatility ,
  Inflation , InflationCapFloorVolatility , Equity , EquityVolatility ,
  Security , BaseCorrelation , Commodity , CommodityVolatility ,
  Correlation
}
 Supported curve types. More...
 

Detailed Description

FX Spot description.

Definition at line 263 of file curvespec.hpp.

Constructor & Destructor Documentation

◆ FXSpotSpec() [1/2]

Default constructor.

Definition at line 268 of file curvespec.hpp.

268{}

◆ FXSpotSpec() [2/2]

FXSpotSpec ( string  unitCcy,
string  ccy 
)

Detailed constructor.

Definition at line 270 of file curvespec.hpp.

270: unitCcy_(unitCcy), ccy_(ccy) {}
const string & ccy() const
Definition: curvespec.hpp:277
const string & unitCcy() const
Definition: curvespec.hpp:276

Member Function Documentation

◆ baseType()

CurveType baseType ( ) const
overridevirtual

Implements CurveSpec.

Definition at line 275 of file curvespec.hpp.

◆ unitCcy()

const string & unitCcy ( ) const

Definition at line 276 of file curvespec.hpp.

276{ return unitCcy_; }
+ Here is the caller graph for this function:

◆ ccy()

const string & ccy ( ) const

Definition at line 277 of file curvespec.hpp.

277{ return ccy_; }
+ Here is the caller graph for this function:

◆ subName()

string subName ( ) const
overridevirtual

Implements CurveSpec.

Definition at line 278 of file curvespec.hpp.

278{ return unitCcy() + "/" + ccy(); }
+ Here is the call graph for this function:

Member Data Documentation

◆ unitCcy_

string unitCcy_
private

Definition at line 281 of file curvespec.hpp.

◆ ccy_

string ccy_
private

Definition at line 282 of file curvespec.hpp.