tlp::Observable Class Reference
#include <Observable.h>
List of all members.
Public Member Functions
Static Public Member Functions
Protected Member Functions
Protected Attributes
Static Protected Attributes
Friends
Detailed Description
All instances of that class can be observed by an instance of the Observer class.
Constructor & Destructor Documentation
virtual tlp::Observable::~Observable |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void tlp::Observable::addObserver |
( |
Observer * |
|
) |
|
unsigned int tlp::Observable::countObservers |
( |
|
) |
[inline] |
Returns the number of observers.
static void tlp::Observable::holdObservers |
( |
|
) |
[static] |
void tlp::Observable::notifyDestroy |
( |
|
) |
|
Notify all the observers that the object will be destroyed. Needs to be called into the destructor of the observable.
Reimplemented in tlp::Graph.
void tlp::Observable::notifyObservers |
( |
|
) |
|
Notify all the observers.
unsigned int tlp::Observable::observersHoldCounter |
( |
|
) |
[inline, static] |
void tlp::Observable::removeObserver |
( |
Observer * |
item |
) |
[inline] |
void tlp::Observable::removeOnlyObserver |
( |
Observer * |
item |
) |
[inline, protected] |
static void tlp::Observable::unholdObservers |
( |
bool |
force = false |
) |
[static] |
Friends And Related Function Documentation
Member Data Documentation