Detailed Description
A series a Callback helpers that simplify complex behavior.
- Note
- Please see CallbackRunner.h and MultiCallback.h for examples of each.
Files |
file | CallbackRunner.h |
| Automatically execute a 0-arg callback when it goes out of scope.
|
file | MultiCallback.h |
| A callback which can be executed multiple times. When a pre-defined limit is reached, then the underlying callback is executed.
|
Function Documentation
BaseCallback0<void>* ola::NewMultiCallback |
( |
unsigned int |
limit, |
|
|
BaseCallback0< void > * |
callback |
|
) |
| |
|
inline |
A helper function to create a new MultiCallback.
- Parameters
-
limit | the number of times to run before calling callback |
callback | the callback to call after limit times |
- Returns
- a pointer to a MultiCallback object