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

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

#include <observable.hpp>

+ Inheritance diagram for ObservableSettings:
+ Collaboration diagram for ObservableSettings:

Public Member Functions

void disableUpdates (bool deferred=false)
 
void enableUpdates ()
 
bool updatesEnabled () const
 
bool updatesDeferred () const
 
- Public Member Functions inherited from Singleton< ObservableSettings >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Types

typedef std::set< Observer * > set_type
 
typedef set_type::iterator iterator
 

Private Member Functions

 ObservableSettings ()=default
 
void registerDeferredObservers (const Observable::set_type &observers)
 
void unregisterDeferredObserver (Observer *)
 

Private Attributes

set_type deferredObservers_
 
bool updatesEnabled_ = true
 
bool updatesDeferred_ = false
 

Friends

class Singleton< ObservableSettings >
 
class Observable
 

Additional Inherited Members

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

Detailed Description

global repository for run-time library settings

Definition at line 87 of file observable.hpp.

Member Typedef Documentation

◆ set_type

typedef std::set<Observer*> set_type
private

Definition at line 103 of file observable.hpp.

◆ iterator

typedef set_type::iterator iterator
private

Definition at line 104 of file observable.hpp.

Constructor & Destructor Documentation

◆ ObservableSettings()

ObservableSettings ( )
privatedefault

Member Function Documentation

◆ disableUpdates()

void disableUpdates ( bool  deferred = false)

Definition at line 91 of file observable.hpp.

+ Here is the caller graph for this function:

◆ enableUpdates()

void enableUpdates ( )

Definition at line 28 of file observable.cpp.

+ Here is the caller graph for this function:

◆ updatesEnabled()

bool updatesEnabled ( ) const

Definition at line 97 of file observable.hpp.

◆ updatesDeferred()

bool updatesDeferred ( ) const

Definition at line 98 of file observable.hpp.

+ Here is the caller graph for this function:

◆ registerDeferredObservers()

void registerDeferredObservers ( const Observable::set_type observers)
private

Definition at line 163 of file observable.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterDeferredObserver()

void unregisterDeferredObserver ( Observer o)
private

Definition at line 169 of file observable.hpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Singleton< ObservableSettings >

friend class Singleton< ObservableSettings >
friend

Definition at line 83 of file observable.hpp.

◆ Observable

friend class Observable
friend

Definition at line 89 of file observable.hpp.

Member Data Documentation

◆ deferredObservers_

set_type deferredObservers_
private

Definition at line 109 of file observable.hpp.

◆ updatesEnabled_

bool updatesEnabled_ = true
private

Definition at line 111 of file observable.hpp.

◆ updatesDeferred_

bool updatesDeferred_ = false
private

Definition at line 111 of file observable.hpp.