Poster of Linux kernelThe best gift for a Linux geek
tlp::Observer

tlp::Observer

Section: Tulip Graph Library (3) Updated: 19 Jul 2010
Local index Up
 

NAME

tlp::Observer -  

SYNOPSIS


#include <Observable.h>  

Public Member Functions


virtual ~Observer ()

virtual void update (std::set< Observable * >::iterator begin, std::set< Observable * >::iterator end)=0

virtual void observableDestroyed (Observable *)=0
 

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.  

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.

 

Author

Generated automatically by Doxygen for Tulip Graph Library from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
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.
Author

This document was created by man2html, using the manual pages.
Time: 22:28:20 GMT, April 16, 2011