Collage
1.7.0
High-performance C++ library for developing object-oriented distributed applications.
|
A wrapper to register a function callback on an object instance. More...
#include <commandFunc.h>
Public Member Functions | |
CommandFunc (T *object, bool(T::*func)(ICommand &)) | |
Create a new callback to the method on the given object. More... | |
template<typename O > | |
CommandFunc (const CommandFunc< O > &from) | |
Create a copy of a callback to a different base class. More... | |
bool | operator() (ICommand &command) |
T * | _object |
bool(T::* | _func )(ICommand &) |
void | clear () |
bool | isValid () const |
A wrapper to register a function callback on an object instance.
This wrapper is used by the Dispatcher to register and save callback methods of derived classes.
Definition at line 39 of file commandFunc.h.
|
inline |
Create a new callback to the method on the given object.
Definition at line 46 of file commandFunc.h.
|
inline |
Create a copy of a callback to a different base class.
Definition at line 57 of file commandFunc.h.