#include <callable_back.h>
Public Member Functions | |
CallableBack () | |
Default constructor. | |
virtual | ~CallableBack () |
Destructor. | |
virtual void | callableBackNotify (T *subject)=0 |
Subject performed action on which the callback was defined. |
Implements "callable back" design pattern - allows creation of a function with an additional parameter of type
CallableBack *obj
obj->callableBackNotify(this)
Templates::CallableBack< T >::CallableBack | ( | ) | [inline] |
Default constructor.
virtual Templates::CallableBack< T >::~CallableBack | ( | ) | [inline, virtual] |
Destructor.
virtual void Templates::CallableBack< T >::callableBackNotify | ( | T * | subject | ) | [pure virtual] |
Subject performed action on which the callback was defined.
[in] | subject | Object that perfmored the action. |
Implemented in Bubble, BubbleField, PlayField, and PlayField.