![]() |
Lysa
0.0
Lysa 3D Engine
|
Shared handler identities, unsubscription and delivery for events and signals.
Classes | |
| struct | HandlerLists |
Public Member Functions | |
| void | unsubscribe (unique_id id) |
| virtual | ~EventManager () = default |
Protected Typedefs | |
| using | Callback = std::conditional_t< std::is_same_v< Message, Event >, EventHandlerCallback, SignalHandlerCallback > |
| using | Handler = std::conditional_t< std::is_same_v< Message, Event >, EventHandler, SignalHandler > |
Protected Member Functions | |
| EventManager () = default | |
| Handler | createHandler (Callback callback) |
| template<typename Lookup > | |
| void | dispatch (Message &message, const Lookup &lookup) |
| virtual void | removeHandler (unique_id id) = 0 |
Static Protected Member Functions | |
| static void | eraseHandler (HandlerLists &callbacks, unique_id id) |
|
protected |
|
protected |
|
virtualdefault |
|
protecteddefault |
|
protected |
|
staticprotected |
|
protectedpure virtual |
| void unsubscribe | ( | unique_id | id | ) |
Remove every registration associated with a handler identifier.