QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CommoditySettings Class Reference

global repository for run-time library settings More...

#include <commoditysettings.hpp>

+ Inheritance diagram for CommoditySettings:
+ Collaboration diagram for CommoditySettings:

Public Member Functions

Currencycurrency ()
 
UnitOfMeasureunitOfMeasure ()
 
- Public Member Functions inherited from Singleton< CommoditySettings >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Member Functions

 CommoditySettings ()
 

Private Attributes

Currency currency_
 
UnitOfMeasure unitOfMeasure_
 

Friends

class Singleton< CommoditySettings >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< CommoditySettings >
static CommoditySettingsinstance ()
 access to the unique instance More...
 
- Protected Member Functions inherited from Singleton< CommoditySettings >
 Singleton ()=default
 

Detailed Description

global repository for run-time library settings

Definition at line 34 of file commoditysettings.hpp.

Constructor & Destructor Documentation

◆ CommoditySettings()

CommoditySettings ( )
private

Definition at line 27 of file commoditysettings.cpp.

Member Function Documentation

◆ currency()

Currency & currency ( )

Definition at line 30 of file commoditysettings.cpp.

+ Here is the caller graph for this function:

◆ unitOfMeasure()

UnitOfMeasure & unitOfMeasure ( )

Definition at line 34 of file commoditysettings.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Singleton< CommoditySettings >

friend class Singleton< CommoditySettings >
friend

Definition at line 1 of file commoditysettings.hpp.

Member Data Documentation

◆ currency_

Currency currency_
private

Definition at line 43 of file commoditysettings.hpp.

◆ unitOfMeasure_

UnitOfMeasure unitOfMeasure_
private

Definition at line 44 of file commoditysettings.hpp.