FreeNOS
|
Abstraction for providing a callback function to a object instance. More...
#include <Callback.h>
Public Member Functions | |
Callback (Base *object, Function func) | |
Constructor. More... | |
virtual void | execute (void *parameter) |
Invoke the callback function on the object. More... | |
Private Types | |
typedef void(Base::* | Function) (ParamType *param) |
Callback function prototype. More... | |
Private Member Functions | |
virtual void | executeOnObject (ParamType *parameter) |
Execute the callback. More... | |
Private Attributes | |
Base * | m_object |
Object instance. More... | |
Function | m_function |
Function pointer. More... | |
Abstraction for providing a callback function to a object instance.
Definition at line 49 of file Callback.h.
|
private |
Callback function prototype.
Definition at line 54 of file Callback.h.
|
inline |
Constructor.
object | Object pointer |
func | Callback function |
Definition at line 64 of file Callback.h.
|
inlinevirtual |
Invoke the callback function on the object.
parameter | Optional parameter to pass |
Implements CallbackFunction.
Definition at line 75 of file Callback.h.
|
inlineprivatevirtual |
Execute the callback.
parameter | One parameter which is passed to the callback function. |
Definition at line 87 of file Callback.h.
Referenced by Callback< MemoryContext, Address >::execute().
Function pointer.
Definition at line 98 of file Callback.h.
Referenced by Callback< MemoryContext, Address >::Callback(), and Callback< MemoryContext, Address >::executeOnObject().
|
private |
Object instance.
Definition at line 95 of file Callback.h.
Referenced by Callback< MemoryContext, Address >::Callback(), and Callback< MemoryContext, Address >::executeOnObject().