Overview     Modules     Class Hierarchy     Classes     Members  

tlp::Observer Class Reference

#include <Observable.h>

List of all members.


Detailed Description

The Observer pattern is a framework for handling state dependency between observer and observed object. It is described in the lecture notes and pp293-304 of Design Patterns by Gamma, Helm, Johnson, and Vlissides.

Public Member Functions


Constructor & Destructor Documentation

virtual tlp::Observer::~Observer  )  [inline, virtual]
 


Member Function Documentation

virtual void tlp::Observer::observableDestroyed Observable  )  [pure virtual]
 

Methods called when an observable has been deleted. holdObservers and unHoldObservers function have no effects on this function.

virtual void tlp::Observer::update std::set< Observable * >::iterator  begin,
std::set< Observable * >::iterator  end
[pure virtual]
 

Methods called when a change occur in the observed objects Due to the possibility to differs notificatiosn several objects can send a notify events simultaneously. The iterators given in parameter enable to iterate all these objects.



Tulip Software by LaBRI Visualization Team    2001 - 2007