template<typename _RawEvent, typename _Handler, bool _CleanEvent = true>
class qb::router::mesh< _RawEvent, _Handler, _CleanEvent >
Multiple-Event Single-Handler router.
Routes multiple event types to a single handler based on event type IDs.
- Template Parameters
-
_RawEvent | The raw event base type |
_Handler | The handler type |
_CleanEvent | Whether to clean up events after routing |
template<typename _RawEvent, typename _Handler, bool _CleanEvent = true>
template<typename _Event>
Subscribe to events of a specific type.
Creates and registers an event resolver for the given event type.
- Template Parameters
-
_Event | The event type to subscribe to |
template<typename _RawEvent, typename _Handler, bool _CleanEvent = true>
template<typename _Event>
Unsubscribe from events of a specific type.
Removes the event resolver for the given event type.
- Template Parameters
-
_Event | The event type to unsubscribe from |