Represents a handler that is about to be added to the events manager but is still waiting for some data. More...
#include <manager_impl.hpp>
Public Member Functions | |
pending_event_handler (event_handlers &list, handler_ptr handler) | |
bool | valid () const |
Check if this handler is valid. More... | |
event_handler * | operator-> () |
Access the event handler. More... | |
event_handler & | operator* () |
pending_event_handler (pending_event_handler &&)=default | |
~pending_event_handler () | |
Private Member Functions | |
pending_event_handler (const pending_event_handler &)=delete | |
pending_event_handler & | operator= (const pending_event_handler &)=delete |
pending_event_handler & | operator= (pending_event_handler &&)=delete |
Private Attributes | |
event_handlers & | list_ |
handler_ptr | handler_ |
Represents a handler that is about to be added to the events manager but is still waiting for some data.
The handler will automatically be added when this class is destroyed, unless it has become invalid somehow.
Definition at line 32 of file manager_impl.hpp.
|
privatedelete |
|
inline |
Definition at line 41 of file manager_impl.hpp.
|
default |
game_events::pending_event_handler::~pending_event_handler | ( | ) |
Definition at line 167 of file manager_impl.cpp.
References game_events::event_handlers::finish_adding_event_handler(), handler_, list_, and valid().
|
inline |
Definition at line 49 of file manager_impl.hpp.
References handler_.
|
inline |
|
privatedelete |
|
privatedelete |
|
inline |
Check if this handler is valid.
Definition at line 46 of file manager_impl.hpp.
References handler_.
Referenced by ~pending_event_handler().
|
private |
Definition at line 35 of file manager_impl.hpp.
Referenced by operator*(), operator->(), valid(), and ~pending_event_handler().
|
private |
Definition at line 34 of file manager_impl.hpp.
Referenced by ~pending_event_handler().