Templates::CallableBack< T > Class Template Reference

Implementation of a "callable back" design pattern. More...

#include <callable_back.h>

List of all members.

Public Member Functions

 CallableBack ()
 Default constructor.
virtual ~CallableBack ()
 Destructor.
virtual void callableBackNotify (T *subject)=0
 Subject performed action on which the callback was defined.


Detailed Description

template<class T>
class Templates::CallableBack< T >

Implementation of a "callable back" design pattern.

Implements "callable back" design pattern - allows creation of a function with an additional parameter of type

 CallableBack *obj 
, so that the function calls
 obj->callableBackNotify(this) 
when some specified action is successfully performed.

Constructor & Destructor Documentation

template<class T>
Templates::CallableBack< T >::CallableBack (  )  [inline]

Default constructor.

template<class T>
virtual Templates::CallableBack< T >::~CallableBack (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class T>
virtual void Templates::CallableBack< T >::callableBackNotify ( T *  subject  )  [pure virtual]

Subject performed action on which the callback was defined.

Parameters:
[in] subject Object that perfmored the action.

Implemented in Bubble, BubbleField, PlayField, and PlayField.


The documentation for this class was generated from the following file:

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6