Mantid
|
Simple observable class. More...
#include <ObserverPattern.h>
Public Member Functions | |
void | attach (Observer *listener) |
void | detach (Observer *listener) |
void | notify () |
Update all of the observers that a change has been made. More... | |
Private Attributes | |
std::set< Observer * > | m_observers |
Simple observable class.
This is used to signify if a change has been made and then needs to notify its observers.
Definition at line 30 of file ObserverPattern.h.
|
inline |
listener | :: want to be notified when this observer changes |
Definition at line 37 of file ObserverPattern.h.
References m_observers.
|
inline |
listener | :: no longer want to be notified when this observer changes |
Definition at line 41 of file ObserverPattern.h.
References m_observers.
|
inline |
Update all of the observers that a change has been made.
Definition at line 45 of file ObserverPattern.h.
References m_observers.
|
private |
Definition at line 31 of file ObserverPattern.h.