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

Commodity curve description. More...

#include <ored/marketdata/curvespec.hpp>

+ Inheritance diagram for CommodityCurveSpec:
+ Collaboration diagram for CommodityCurveSpec:

Public Member Functions

Constructors
 CommodityCurveSpec ()
 Default constructor. More...
 
 CommodityCurveSpec (const std::string &currency, const std::string &curveConfigID)
 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

std::string currency_
 
CurveType baseType () const override
 
const std::string & currency () const
 
std::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

Commodity curve description.

Definition at line 413 of file curvespec.hpp.

Constructor & Destructor Documentation

◆ CommodityCurveSpec() [1/2]

Default constructor.

Definition at line 419 of file curvespec.hpp.

419{}

◆ CommodityCurveSpec() [2/2]

CommodityCurveSpec ( const std::string &  currency,
const std::string &  curveConfigID 
)

Detailed constructor.

Definition at line 422 of file curvespec.hpp.

const std::string & currency() const
Definition: curvespec.hpp:429
const std::string & curveConfigID() const
Definition: curvespec.hpp:83
CurveSpec()
Default constructor.
Definition: curvespec.hpp:64

Member Function Documentation

◆ baseType()

CurveType baseType ( ) const
overridevirtual

Implements CurveSpec.

Definition at line 428 of file curvespec.hpp.

◆ currency()

const std::string & currency ( ) const

Definition at line 429 of file curvespec.hpp.

429{ return currency_; }

◆ subName()

std::string subName ( ) const
overridevirtual

Implements CurveSpec.

Definition at line 430 of file curvespec.hpp.

430{ return currency_ + "/" + curveConfigID(); }
+ Here is the call graph for this function:

Member Data Documentation

◆ currency_

std::string currency_
private

Definition at line 434 of file curvespec.hpp.