Overview     Modules     Class Hierarchy     Classes     Members  

tlp::Observable Class Reference

#include <Observable.h>

Inheritance diagram for tlp::Observable:

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  ) 

Register a new observer.

unsigned int tlp::Observable::countObservers (  )  [inline]

Returns the number of observers.

static void tlp::Observable::holdObservers (  )  [static]

Queue notifications.

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]

get counter

void tlp::Observable::removeObserver ( Observer item  )  [inline]

Remove an observer.

void tlp::Observable::removeOnlyObserver ( Observer item  )  [inline, protected]
static void tlp::Observable::unholdObservers ( bool  force = false  )  [static]

UnQueue notifications.


Friends And Related Function Documentation

friend class Observer [friend]

Member Data Documentation

unsigned int tlp::Observable::holdCounter [static, protected]
std::list<Observer*> tlp::Observable::observersList [protected]
std::map<Observer*, std::list<Observer*>::iterator> tlp::Observable::observersSet [protected]


Tulip Software by LaBRI Visualization Team    2001 - 2011