Manager for Events.
More...
#include <event.h>
◆ fire()
void EventsManager::fire |
( |
T & | event | ) |
|
|
inline |
Fire T event.
Fire event for all functions that are subscribed to it
- Template Parameters
-
- Parameters
-
◆ inst()
Gets the instance of the events manager.
- Returns
- EventsManager* a pointer to the events manager
◆ subscribe() [1/2]
Subscribe to T event.
Subscribes function to the event
- Template Parameters
-
T | the event to subscribe to |
- Parameters
-
callback | the function to subscribe |
- Returns
- EventHandler<T>::subId the handler used for unsuscribing
◆ subscribe() [2/2]
Subscribe to T event.
Subscribes an r-value function to the event
- Template Parameters
-
T | the event to subscribe to |
- Parameters
-
callback | the r-value function to subscribe |
- Returns
- EventHandler<T>::subId the handler used for unsuscribing
◆ unsubscribe()
Unsubscribe to T event.
Unsuscribe to the event
- Template Parameters
-
T | the event to unsubscribe to |
- Parameters
-
subId | the handler of the function |
The documentation for this class was generated from the following files: