#include <cel_observable.h>
Public Member Functions | |
virtual void | notify () |
void | attachObserver (Observer *inObserver) |
void | detachObserver (Observer *inObserver) |
void | detachAllObservers () |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
Observable is a class that provides the notification mechanism to several Observer class instances. This class is abstract class and constructors are hidden not to create the instances directly, you should inherit the class to use Observable feature.
void Celartem::Observable::attachObserver | ( | Observer * | inObserver | ) |
This method attaches the specified Observer instance.
inObserver | An Observer instance to attach. |
void Celartem::Observable::detachAllObservers | ( | ) |
This method detaches all the Observer instances which have been attached to this instance.
void Celartem::Observable::detachObserver | ( | Observer * | inObserver | ) |
This method detaches the specified Observer instance.
inObserver | An Observer instance to detach. |
|
virtual |
This method invokes Observer::update of the attached observer instances.