Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
Schedule::Evented Namespace Reference

Oneshot function/method calling infrastructure. More...

Classes

struct  Func
 oneshot callable function wrapper More...
 
struct  Method
 oneshot callable method wrapper More...
 
struct  Registry
 registry of evented calls More...
 
struct  Schedulable
 oneshot Schedulable keeps track of the scheduling time, as this will be passed on to the wrapped call More...
 

Detailed Description

Oneshot function/method calling infrastructure.

the signature of a callable is

// will be called with absolute `time`
void func_or_method (uint32_t time);

when trying to schedule a call with a different signature consider wrapping it in a lambda function

reg.call( [](uint32_t t) {
mynoargfunc();
});
registry of evented calls
Definition evented.h:61
void call(Func::Call func)
register function to be scheduled for calling on Event
Definition evented.h:63

alternatively you can create your own Schedulable on the fly if capturing in a lambda doesn't work, see e.g. Experiment.h