eventbus
|
A registration handle for a particular handler of an event type. More...
#include <event_bus.hpp>
Public Member Functions | |
handler_registration (const handler_registration &other)=delete | |
handler_registration (handler_registration &&other) noexcept | |
handler_registration & | operator= (const handler_registration &other)=delete |
handler_registration & | operator= (handler_registration &&other) noexcept |
~handler_registration () | |
const void * | handle () const |
Pointer to the underlying handle. More... | |
void | unregister () noexcept |
Unregister this handler from the event bus. More... | |
Protected Member Functions | |
handler_registration (const void *handle, dp::event_bus *bus) | |
Friends | |
class | event_bus |
A registration handle for a particular handler of an event type.
This class is move constructible only. It also assumed that the lifespan of this object will be as long or shorter than that of the event bus. This class is move constructible for that reason, but there are still some cases where you can run into life time issues.
|
delete |
|
inlinenoexcept |
|
inline |
|
inlineprotected |
|
inline |
Pointer to the underlying handle.
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
Unregister this handler from the event bus.
|
friend |