|
Maipa's Standard Library Extension 1.5.6
mstd
|
#include <event_handler.hpp>
Public Types | |
| using | event_type = void(Args&&...) |
| using | event_action_handler = action_t<Args&&...> |
| using | events_type = stable_vector<event_action_handler> |
| using | id_type = _MSTD_TYPENAME17 events_type::size_type |
Public Member Functions | |
| _MSTD_CONSTEXPR20 | event_handler () noexcept=default |
| _MSTD_CONSTEXPR20 | ~event_handler () noexcept=default |
| _MSTD_CONSTEXPR20 id_type | add_callback (const event_action_handler &callback) |
| _MSTD_CONSTEXPR20 bool | remove_callback (const id_type callbackId) |
| _MSTD_CONSTEXPR20 void | remove_all_callbacks () |
| template<class... InvokeArgs> | |
| _MSTD_CONSTEXPR20 void | invoke (InvokeArgs &&... args) const |
| _MSTD_CONSTEXPR20 id_type | operator+= (const event_action_handler &callback) |
| _MSTD_CONSTEXPR20 bool | operator-= (const id_type callbackId) |
| template<class... InvokeArgs> | |
| _MSTD_CONSTEXPR20 void | operator() (InvokeArgs &&... args) const |
Private Attributes | |
| events_type | _events = {} |
| using mstd::event_handler< Args >::event_action_handler = action_t<Args&&...> |
| using mstd::event_handler< Args >::event_type = void(Args&&...) |
| using mstd::event_handler< Args >::events_type = stable_vector<event_action_handler> |
| using mstd::event_handler< Args >::id_type = _MSTD_TYPENAME17 events_type::size_type |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |