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
Money::Settings Class Reference

Per-session settings for the Money class. More...

#include <money.hpp>

+ Inheritance diagram for Money::Settings:
+ Collaboration diagram for Money::Settings:

Public Member Functions

const Money::ConversionTypeconversionType () const
 
Money::ConversionTypeconversionType ()
 
const CurrencybaseCurrency () const
 
CurrencybaseCurrency ()
 
- Public Member Functions inherited from Singleton< Money::Settings >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Member Functions

 Settings ()=default
 

Private Attributes

Money::ConversionType conversionType_ = Money::NoConversion
 
Currency baseCurrency_
 

Friends

class Singleton< Money::Settings >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< Money::Settings >
static Money::Settingsinstance ()
 access to the unique instance More...
 
- Protected Member Functions inherited from Singleton< Money::Settings >
 Singleton ()=default
 

Detailed Description

Per-session settings for the Money class.

Definition at line 102 of file money.hpp.

Constructor & Destructor Documentation

◆ Settings()

Settings ( )
privatedefault

Member Function Documentation

◆ conversionType() [1/2]

const Money::ConversionType & conversionType ( ) const

Definition at line 130 of file money.cpp.

+ Here is the caller graph for this function:

◆ conversionType() [2/2]

Money::ConversionType & conversionType ( )

Definition at line 135 of file money.cpp.

◆ baseCurrency() [1/2]

const Currency & baseCurrency ( ) const

Definition at line 140 of file money.cpp.

+ Here is the caller graph for this function:

◆ baseCurrency() [2/2]

Currency & baseCurrency ( )

Definition at line 145 of file money.cpp.

Friends And Related Function Documentation

◆ Singleton< Money::Settings >

friend class Singleton< Money::Settings >
friend

Definition at line 97 of file money.hpp.

Member Data Documentation

◆ conversionType_

Money::ConversionType conversionType_ = Money::NoConversion
private

Definition at line 115 of file money.hpp.

◆ baseCurrency_

Currency baseCurrency_
private

Definition at line 116 of file money.hpp.