QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
global repository for run-time library settings More...
#include <observable.hpp>
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 | |
Singleton & | operator= (const Singleton &)=delete |
Singleton & | operator= (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 ObservableSettings & | instance () |
access to the unique instance More... | |
Protected Member Functions inherited from Singleton< ObservableSettings > | |
Singleton ()=default | |
global repository for run-time library settings
Definition at line 87 of file observable.hpp.
Definition at line 103 of file observable.hpp.
|
private |
Definition at line 104 of file observable.hpp.
|
privatedefault |
void disableUpdates | ( | bool | deferred = false | ) |
void enableUpdates | ( | ) |
bool updatesEnabled | ( | ) | const |
Definition at line 97 of file observable.hpp.
bool updatesDeferred | ( | ) | const |
|
private |
Definition at line 163 of file observable.hpp.
|
private |
|
friend |
Definition at line 83 of file observable.hpp.
|
friend |
Definition at line 89 of file observable.hpp.
|
private |
Definition at line 109 of file observable.hpp.
|
private |
Definition at line 111 of file observable.hpp.
|
private |
Definition at line 111 of file observable.hpp.