![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <dispatcher.h>
Public Types | |
using | Function = C |
using | Callback = std::function<C> |
using | Handle = std::shared_ptr<std::function<C>> |
Public Member Functions | |
Dispatcher (const Dispatcher &) | |
Dispatcher (Dispatcher &&)=default | |
Dispatcher & | operator= (const Dispatcher &that) |
Dispatcher & | operator= (Dispatcher &)=default |
template<typename T> | |
std::shared_ptr< std::function< C > > | add (T &&callback) |
template<typename... A> | |
void | invoke (A &&... args) |
Dispatches function on a number of callbacks and cleans up callbacks when they are dead. Copy or assign will clear any callback Move or move assign will move the callback