#include <event_bus.h>
Definition at line 17 of file event_bus.h.
◆ HandlerId
◆ Subscribe()
template<typename T >
| HandlerId yaze::EventBus::Subscribe |
( |
std::function< void(const T &)> | handler | ) |
|
|
inline |
◆ Publish()
template<typename T >
| void yaze::EventBus::Publish |
( |
const T & | event | ) |
|
|
inline |
◆ Unsubscribe()
| void yaze::EventBus::Unsubscribe |
( |
HandlerId | id | ) |
|
|
inline |
◆ handlers_
| std::unordered_map<std::type_index, std::vector<HandlerEntry> > yaze::EventBus::handlers_ |
|
private |
◆ next_id_
The documentation for this class was generated from the following file: