A static type dispatcher class. More...
#include <static_type_dispatcher.hpp>
Public Types | |
typedef T | type |
Public Member Functions | |
template<typename ReceiverT > | |
static_type_dispatcher (ReceiverT &receiver) | |
Constructor. More... | |
A static type dispatcher class.
The type dispatcher can be used to pass objects of arbitrary types from one component to another. With regard to the library, the type dispatcher can be used to extract attribute values.
Static type dispatchers allow to specify one or several supported types at compile time.
|
inherited |
|
inlineexplicit |
Constructor.
Initializes the dispatcher internals.
The receiver object is not copied inside the dispatcher, but references to it may be kept by the dispatcher after construction. The receiver object must remain valid until the dispatcher is destroyed.
receiver | Unary function object that will be called on a dispatched value. The receiver must be callable with an argument of any of the supported types of the dispatcher. |