yarp-devices
Public Member Functions | List of all members
roboticslab::SequentialTask Class Reference

An implementation of a sequential deferred callback executor.

Inheritance diagram for roboticslab::SequentialTask:
roboticslab::FutureTask

Public Member Functions

bool dispatch () override
 Dispatch the registered callbacks and returns their joint result.
 
- Public Member Functions inherited from roboticslab::FutureTask
virtual ~FutureTask ()=default
 Virtual destructor.
 
template<typename Fn , typename... Args>
void add (Fn &&fn, Args &&... args)
 Register a deferred callback given a free function.
 
template<typename T , typename Fn , typename... Args>
void add (T *p, Fn &&fn, Args &&... args)
 Register a deferred callback given a generic class instance.
 
unsigned int size () const
 Get the number of registered deferred callbacks.
 
void clear ()
 Clear internal list of deferred callbacks.
 

Additional Inherited Members

- Protected Attributes inherited from roboticslab::FutureTask
std::vector< std::function< bool(int)> > deferreds
 

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