|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/event.hpp>
Public Types | |
| typedef std::function< void(Ts...)> | Callback |
| typedef std::list< Callback > | CallbacksList |
| typedef CallbacksList::iterator | Subscription |
Public Member Functions | |
| Event ()=default | |
| Event (const Event &other) | |
| Event & | operator= (const Event &other) |
| Subscription | subscribe (Callback cb) |
| void | unsubscribe (Subscription subscription) |
| void | clear () |
| bool | fire (Ts... args) |
| typedef std::function<void(Ts...)> aurore::Event< Ts >::Callback |
| typedef std::list<Callback> aurore::Event< Ts >::CallbacksList |
| typedef CallbacksList::iterator aurore::Event< Ts >::Subscription |
|
default |
|
inline |
| void aurore::Event< Ts >::clear | ( | ) |
| bool aurore::Event< Ts >::fire | ( | Ts... | args | ) |
|
inline |
| Event< Ts... >::Subscription aurore::Event< Ts >::subscribe | ( | Callback | cb | ) |
| void aurore::Event< Ts >::unsubscribe | ( | Subscription | subscription | ) |