QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Object that notifies its changes to a set of observers. More...
#include <observable.hpp>
Public Member Functions | |
Observable () | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
Observable (Observable &&)=delete | |
Observable & | operator= (Observable &&)=delete |
virtual | ~Observable ()=default |
void | notifyObservers () |
Private Types | |
typedef std::set< Observer * > | set_type |
typedef set_type::iterator | iterator |
Private Member Functions | |
std::pair< iterator, bool > | registerObserver (Observer *) |
Size | unregisterObserver (Observer *) |
Private Attributes | |
set_type | observers_ |
Friends | |
class | Observer |
class | ObservableSettings |
Object that notifies its changes to a set of observers.
Definition at line 62 of file observable.hpp.
Definition at line 79 of file observable.hpp.
|
private |
Definition at line 80 of file observable.hpp.
|
default |
Observable | ( | const Observable & | ) |
Definition at line 173 of file observable.hpp.
|
delete |
|
virtualdefault |
Observable & operator= | ( | const Observable & | o | ) |
Definition at line 186 of file observable.hpp.
|
delete |
void notifyObservers | ( | ) |
This method should be called at the end of non-const methods or when the programmer desires to notify any changes.
Definition at line 56 of file observable.cpp.
|
private |
Definition at line 195 of file observable.hpp.
|
friend |
Definition at line 63 of file observable.hpp.
|
friend |
Definition at line 64 of file observable.hpp.
|
private |
Definition at line 83 of file observable.hpp.