|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
Implements the Observer pattern. Notifications will be made using a message of type T. More...
#include <Observable.h>


Public Member Functions | |
| virtual | ~Observable ()=default |
| Destructor. | |
| virtual void | addObserver (std::shared_ptr< Observer< T > > observer) |
| Adds an Observer that will be notified when notify Observers is called. | |
| virtual void | removeObserver (std::shared_ptr< Observer< T > > observer) |
| Removes a previously added Observer from the list of Observers to notify. | |
Protected Member Functions | |
| void | notifyObservers (const T &message) const |
Private Attributes | |
| std::list< std::shared_ptr< Observer< T > > > | m_observers |
Implements the Observer pattern. Notifications will be made using a message of type T.
Definition at line 51 of file Observable.h.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Adds an Observer that will be notified when notify Observers is called.
Definition at line 59 of file Observable.h.
|
inlineprotected |
Definition at line 71 of file Observable.h.
Referenced by SourceXtractor::PipelineEmitter< T >::sendSource().
|
inlinevirtual |
Removes a previously added Observer from the list of Observers to notify.
Definition at line 64 of file Observable.h.
|
private |
Definition at line 78 of file Observable.h.