qb
2.0.0.0
C++17 Actor Framework
|
Single-Event Single-Handler router. More...
#include <router.h>
Public Member Functions | |
sesh (_Handler &handler) noexcept | |
Constructs a SESH router with the given handler. | |
template<bool _CleanEvent = true> | |
void | route (_RawEvent &event) |
Routes an event to the handler. |
Additional Inherited Members | |
Protected Member Functions inherited from qb::router::internal::EventPolicy | |
template<typename _Handler, typename _Event> | |
void | invoke (_Handler &handler, _Event &event) const |
Invoke a handler with an event. | |
template<typename _Event> | |
void | dispose (_Event &event) const noexcept |
Dispose of an event if necessary. |
Single-Event Single-Handler router.
Routes a specific event type to a single handler.
_RawEvent | The event type |
_Handler | The handler type |
|
inlineexplicitnoexcept |
Constructs a SESH router with the given handler.
handler | The handler that will receive events |
|
inline |
Routes an event to the handler.
_CleanEvent | Whether to clean up the event after routing |
event | The event to route |