Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Dispatcher< C > Class Template Referencefinal

#include <inviwo/core/util/dispatcher.h>

Public Types

using Callback = std::function<C>
using Function = C
using Handle = std::shared_ptr<std::function<C>>

Public Member Functions

template<typename T>
std::shared_ptr< std::function< C > > add (T &&callback)
 Dispatcher (const Dispatcher &)
 Dispatcher (Dispatcher &&)=default
template<typename... A>
void invoke (A &&... args)
Dispatcher & operator= (const Dispatcher &that)
Dispatcher & operator= (Dispatcher &)=default

Detailed Description

template<typename C>
class inviwo::Dispatcher< C >

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


The documentation for this class was generated from the following file:
  • include/inviwo/core/util/dispatcher.h