$darkmode
#include <data_broker.hpp>
Public Types | |
| using | EventHandler = std::function< void(TArgs...)> |
Public Member Functions | |
| void | add (EventHandler handler) |
| std::size_t | count () const |
| void | raise (TArgs &&... args) const |
Abstract event implementation.
| TArgs | Arguments of the event handler function |
|
inline |
Add an event handler to this event.
|
inline |
Return the number of event handlers subscribed to this event.
|
inline |
Raise this event.
| args | Parameters of this event |