#include <Callback.h>
Public Member Functions | |
Callback () | |
void | setNestedCallback (T *nc) |
T * | getNestedCallback () |
const T * | getNestedCallback () const |
void | addNestedCallback (T *nc) |
void | removeNestedCallback (T *nc) |
Public Attributes | |
osg::ref_ptr< T > | _nestedCallback |
Protected Member Functions | |
virtual | ~Callback () |
Protected destructor forces the object to be deleted by being dereferenced. |
Looks much like osg::NodeCallback.
if (_nestedCallback.valid()) _nestedCallback->myMethod(myParams...);
Definition at line 46 of file Callback.h.
Util::Callback< T >::Callback | ( | ) | [inline] |
Definition at line 48 of file Callback.h.
virtual Util::Callback< T >::~Callback | ( | ) | [inline, protected, virtual] |
Protected destructor forces the object to be deleted by being dereferenced.
Also avoids the object from beeing created on the stack.
Definition at line 76 of file Callback.h.
void Util::Callback< T >::addNestedCallback | ( | T * | nc | ) | [inline] |
Definition at line 54 of file Callback.h.
const T* Util::Callback< T >::getNestedCallback | ( | ) | const [inline] |
Definition at line 52 of file Callback.h.
T* Util::Callback< T >::getNestedCallback | ( | ) | [inline] |
Definition at line 51 of file Callback.h.
void Util::Callback< T >::removeNestedCallback | ( | T * | nc | ) | [inline] |
Definition at line 61 of file Callback.h.
void Util::Callback< T >::setNestedCallback | ( | T * | nc | ) | [inline] |
Definition at line 50 of file Callback.h.
osg::ref_ptr<T> Util::Callback< T >::_nestedCallback |