AIStatefulTask ‐ Asynchronous, Stateful Task Scheduler library.

Threads-like task objects evolving through user-defined states.

Public Member Functions | List of all members
AIDelayedFunction< void(Args...)> Class Template Reference

Detailed Description

template<typename ... Args>
class AIDelayedFunction< void(Args...)>

Specialization of AIDelayedFunction for functions returning void.

#include <AIDelayedFunction.h>

Public Member Functions

 AIDelayedFunction (void(*fp)(Args...))
 Construct a AIDelayedFunction for a free function.
 
template<class C >
 AIDelayedFunction (C *object, void(C::*memfn)(Args...))
 
void operator() (Args... args)
 Store the arguments to be passed.
 
void invoke ()
 Actually invoke the call to the stored function with the stored arguments.
 

Constructor & Destructor Documentation

◆ AIDelayedFunction()

template<typename ... Args>
template<class C >
AIDelayedFunction< void(Args...)>::AIDelayedFunction ( C *  object,
void(C::*)(Args...)  memfn 
)
inline

Construct a AIDelayedFunction for a member function of object.

The object must have a lifetime that exceeds the call to invoke.


The documentation for this class was generated from the following file: