Go to the documentation of this file. 1 #ifndef AIKIDO_COMMON_EXECUTORMULTIPLEXER_HPP_
2 #define AIKIDO_COMMON_EXECUTORMULTIPLEXER_HPP_
59 #endif // AIKIDO_COMMON_EXECUTORMULTIPLEXER_HPP_
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
void addCallback(std::function< void()> callback)
Adds a callback.
Combine multiple executors (i.e.
Definition: ExecutorMultiplexer.hpp:17
std::vector< std::function< void()> > mCallbacks
Array of callbacks.
Definition: ExecutorMultiplexer.hpp:53
void removeAllCallbacks()
Removes all the added callbacks.
bool isEmpty() const
Returns true if no callback is added. Otherwise, returns false.
void operator()()
Executes all the added callbacked in order of they added.
std::size_t getNumCallbacks() const
Returns the number of added callbacks.
~ExecutorMultiplexer()=default
Default destructor.
ExecutorMultiplexer()=default
Default constructor.
std::mutex mMutex
Mutex for the list of callbacks.
Definition: ExecutorMultiplexer.hpp:50