|
VR-Engage
2.2
|
| Ret | Return type of the callback function |
| Param0 | Type of the single parameter passed to the callback |
This class implements the Callback interface for global functions or static class methods that accept a single parameter and return a value
#include <delegate.h>
Public Member Functions | |
| StaticFunctionCallback (Ret(*func)(Param0)) | |
| StaticFunctionCallback (const StaticFunctionCallback &orig) | |
| virtual StaticFunctionCallback * | 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 | |
| Ret(* | myFunction )(Param0) |
|
inline |
Constructor.
| func | Pointer to the static or global function to bind |
References myFunction.
Referenced by clone(), operator==(), and StaticFunctionCallback().
|
inline |
Copy constructor.
| orig | Original callback to copy from |
References myFunction, and StaticFunctionCallback().
|
inlinevirtual |
Creates a copy of this callback.
Implements the clone method from the base class for deep copying
Implements makRadarFx::Callback< Ret, Param0 >.
References myFunction, and StaticFunctionCallback().
|
inlinevirtual |
Invokes the bound function with the provided parameter.
| param0 | The parameter to pass to the function |
Implements makRadarFx::Callback< Ret, Param0 >.
References myFunction.
|
inlinevirtual |
Equality comparison operator.
| rhs | The right-hand side callback to compare with |
Implements makRadarFx::Callback< Ret, Param0 >.
References myFunction, and StaticFunctionCallback().
|
private |
Pointer to the static or global function.
Referenced by clone(), invoke(), operator==(), StaticFunctionCallback(), and StaticFunctionCallback().