|
The Sparta Modeling Framework
|
File that contains the macro used to generate the class callbacks. More...
#include <iostream>#include <cinttypes>#include <limits>Go to the source code of this file.
Namespaces | |
| namespace | sparta |
| Macros for handling exponential backoff. | |
Macros | |
| #define | CREATE_SPARTA_HANDLER(clname, meth) |
| #define | CREATE_SPARTA_HANDLER_WITH_CLEAR(clname, meth, clear) |
| #define | CREATE_SPARTA_HANDLER_WITH_OBJ(clname, obj, meth) |
| #define | CREATE_SPARTA_HANDLER_WITH_DATA(clname, meth, dataT) |
| #define | CREATE_SPARTA_HANDLER_WITH_TWO_DATA(clname, meth, dataOne, dataTwo) |
| #define | CREATE_SPARTA_HANDLER_WITH_DATA_WITH_OBJ(clname, obj, meth, dataT) |
File that contains the macro used to generate the class callbacks.
Definition in file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER | ( | clname, | |
| meth ) |
Creates a SpartaHandler type given the class name (clname) and a class method (meth).
This method requires a class instance (expects this to be defined and of type clname). The class method given must match the following signature:
Example:
Definition at line 317 of file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER_WITH_CLEAR | ( | clname, | |
| meth, | |||
| clear ) |
Creates a SpartaHandler type given the class name (clname), a class method (meth), and a clear method (clear).
This method requires a class instance (expects this to be defined and of type clname). The class method and clear method given must match the following signature:
This handler type allows the sparta::Scheduler to "clear" the handle that was previously set. This is useful for nullifying a handler on the scheduler.
Example:
Definition at line 364 of file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER_WITH_DATA | ( | clname, | |
| meth, | |||
| dataT ) |
Creates a SpartaHandler type given the class name (clname), a class method (meth), and the data type that method expects (dataT).
This method requires a class instance (expects this to be defined and of type clname). The class method given must match the following signature:
Example:
Definition at line 441 of file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER_WITH_DATA_WITH_OBJ | ( | clname, | |
| obj, | |||
| meth, | |||
| dataT ) |
Creates a SpartaHandler type given the class name (clname), class instance (obj), a class method (meth), and the parameter data (dataT).
This method requires a class instance to be given. The class method given must match the following signature:
Example:
Definition at line 518 of file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER_WITH_OBJ | ( | clname, | |
| obj, | |||
| meth ) |
Creates a SpartaHandler type given the class name (clname), a class instance (obj) and a class method (meth).
This method requires a class instance to be given. The class method given must match the following signature:
Example:
Definition at line 401 of file SpartaHandler.hpp.
| #define CREATE_SPARTA_HANDLER_WITH_TWO_DATA | ( | clname, | |
| meth, | |||
| dataOne, | |||
| dataTwo ) |
Creates a SpartaHandler type given the class name (clname), a class method (meth), and two arguments (dataOne and dataTwo).
This method requires a class instance (expects this to be defined and of type clname). The class method given must match the following signature:
Example:
Definition at line 480 of file SpartaHandler.hpp.