|
Collage
1.6.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>
Collaboration diagram for co::CommandFunc< T >: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 38 of file commandFunc.h.
|
inline |
Create a new callback to the method on the given object.
Definition at line 45 of file commandFunc.h.
|
inline |
Create a copy of a callback to a different base class.
Definition at line 52 of file commandFunc.h.