|
VR-Engage
2.2
|
| Ret | Return type of the callback function |
| Param0 | Type of the single parameter passed to the callback |
| T | Type of the class containing the member function |
| Method | Type of the member function pointer |
This class implements the Callback interface for non-static class member methods that accept a single parameter and return a value
#include <delegate.h>
Public Member Functions | |
| MethodCallback (void *object, Method method) | |
| MethodCallback (const MethodCallback &orig) | |
| virtual MethodCallback * | clone () |
| virtual Ret | invoke (Param0 param0) |
| virtual bool | operator== (const Callback< Ret, Param0 > &rhs) |
Public Member Functions inherited from makRadarFx::Callback< Ret, Param0 > | |
| virtual | ~Callback () |
| virtual bool | operator!= (const Callback &rhs) |
Private Attributes | |
| void * | myObject |
| Method | myMethod |
|
inline |
Constructor.
| object | Pointer to the object instance |
| method | Pointer to the member function to bind |
References myMethod, and myObject.
Referenced by clone(), MethodCallback(), and operator==().
|
inline |
Copy constructor.
| orig | Original callback to copy from |
References MethodCallback(), myMethod, and myObject.
|
inlinevirtual |
Creates a copy of this callback.
Implements the clone method from the base class for deep copying
Implements makRadarFx::Callback< Ret, Param0 >.
References MethodCallback(), myMethod, and myObject.
|
inlinevirtual |
Invokes the bound member function with the provided parameter.
| param0 | The parameter to pass to the member function |
Implements makRadarFx::Callback< Ret, Param0 >.
|
inlinevirtual |
Equality comparison operator.
| rhs | The right-hand side callback to compare with |
Implements makRadarFx::Callback< Ret, Param0 >.
References MethodCallback(), myMethod, and myObject.
|
private |
Pointer to the object instance.
Referenced by clone(), invoke(), MethodCallback(), MethodCallback(), and operator==().
|
private |
Pointer to the member function.
Referenced by clone(), invoke(), MethodCallback(), MethodCallback(), and operator==().