Overview     Modules     Class Hierarchy     Classes     Members  

tlp::Observable Class Reference

#include <Observable.h>

Inheritance diagram for tlp::Observable:

List of all members.


Detailed Description

All instances of that class can be observed by by an instance of the Observer class.

Public Member Functions

Static Public Member Functions

Protected Attributes

Static Protected Attributes


Constructor & Destructor Documentation

virtual tlp::Observable::~Observable (  )  [inline, virtual]


Member Function Documentation

void tlp::Observable::addObserver ( Observer obs  )  [inline]

Register a new observer

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

Returns the number of observers

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

Remove an observer

void tlp::Observable::deleteObservers (  )  [inline]

Remove all observers

void tlp::Observable::notifyObservers (  ) 

Notify all the observers

void tlp::Observable::notifyDestroy (  ) 

Notify all the observers that the object will be destroyed. Need to be call into the dstructor of the observable.

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

Queue notifications

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

UnQueue notifications


Member Data Documentation

int tlp::Observable::holdCounter [static, protected]

std::list<Observer*> tlp::Observable::observersList [protected]



Tulip Software by LaBRI Visualization Team    2001 - 2007