TTEthernet Model for INET Framework
|
Class representing a Callback. More...
#include <Callback.h>
Public Member Functions | |
Callback (Buffer *buffer) | |
Constructor. More... | |
virtual void | setFunctionPointer (void(*functionPointer)(void *)) |
Setter for the function pointer. More... | |
virtual cbFunc | getFunctionPointer () |
Getter for the function pointer. More... | |
virtual void | setFunctionArg (void *setFunctionArg) |
Setter for the function args. More... | |
virtual void * | getFunctionArg () |
Getter for the function args. More... | |
virtual void | executeCallback () |
execution of the callback. More... | |
Protected Attributes | |
void(* | fn )(void *) |
Function pointer of the callback. More... | |
void * | arg |
Pointer to the function args. More... | |
bool | argSet |
Boolean indicating whether args were set. More... | |
Buffer * | buffer |
Pointer to the Buffer that issues the Callback. More... | |
Class representing a Callback.
The class stores a funtion pointer and args and executes the function on demand.
Definition at line 30 of file Callback.h.
|
inline |
Constructor.
Definition at line 55 of file Callback.h.
|
inlinevirtual |
execution of the callback.
If method is called the stored function pointer is invoked.
Reimplemented in TTEthernetModel::APICallback.
Definition at line 103 of file Callback.h.
Referenced by TTEthernetModel::TTEApplicationBase::executeCallback().
|
inlinevirtual |
Getter for the function args.
Definition at line 94 of file Callback.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::tte_get_buf_var().
|
inlinevirtual |
Getter for the function pointer.
Definition at line 74 of file Callback.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::tte_get_buf_var().
|
inlinevirtual |
Setter for the function args.
setFunctionArg | the funtion arg to be used in the callback |
Definition at line 83 of file Callback.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::tte_set_buf_var().
|
inlinevirtual |
Setter for the function pointer.
functionPointer | the funtion pointer to be invoked in the callback |
Definition at line 65 of file Callback.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::tte_set_buf_var().
|
protected |
Pointer to the function args.
Definition at line 41 of file Callback.h.
Referenced by executeCallback(), TTEthernetModel::APICallback::executeCallback(), getFunctionArg(), and setFunctionArg().
|
protected |
Boolean indicating whether args were set.
Definition at line 45 of file Callback.h.
Referenced by Callback(), TTEthernetModel::APICallback::executeCallback(), and setFunctionArg().
|
protected |
Pointer to the Buffer that issues the Callback.
Definition at line 50 of file Callback.h.
Referenced by Callback(), and TTEthernetModel::APICallback::executeCallback().
|
protected |
Function pointer of the callback.
Definition at line 36 of file Callback.h.
Referenced by executeCallback(), TTEthernetModel::APICallback::executeCallback(), getFunctionPointer(), and setFunctionPointer().