#include <Event.h>
|
| using | Handler = std::function<void(Args...)> |
◆ Handler
template<typename... Args>
◆ notify()
template<typename... Args>
56 {
59 }
60 }
std::vector< Subscriber > m_listeners
Definition Event.h:73
◆ operator+=()
template<typename... Args>
template<std::invocable< Args... > Func>
64 {
66 }
FunctionHandle subscribe(Func &&handler)
Definition Event.h:38
◆ operator-=()
template<typename... Args>
68 {
70 }
bool unsubscribe(FunctionHandle id)
Definition Event.h:50
◆ subscribe()
template<typename... Args>
template<std::invocable< Args... > Func>
38 {
41
45 });
46
48 }
FunctionHandle m_nextId
Definition Event.h:75
static constexpr FunctionHandle MAX_SUBSCRIBERS
Definition Event.h:30
◆ unsubscribe()
template<typename... Args>
◆ m_listeners
template<typename... Args>
◆ m_nextId
template<typename... Args>
◆ MAX_SUBSCRIBERS
template<typename... Args>
The documentation for this class was generated from the following file:
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Common/include/Lodestone.Common/event/Event.h