A helper class to find out whether dispatcher has an handler for a certain event. More...
#include <dispatcher_private.hpp>
Public Member Functions | |
thas_handler (const tdispatcher::tevent_type event_type, tdispatcher &dispatcher) | |
Constructor. More... | |
template<class T > | |
bool | oper (tevent event) |
Tests whether a handler for an event is available. More... | |
Private Attributes | |
tdispatcher::tevent_type | event_type_ |
tdispatcher & | dispatcher_ |
A helper class to find out whether dispatcher has an handler for a certain event.
Definition at line 120 of file dispatcher_private.hpp.
|
inline |
Constructor.
event_type | The type of event to look for. |
dispatcher | The dispatcher whose signal queue is used. |
Definition at line 129 of file dispatcher_private.hpp.
|
inline |
Tests whether a handler for an event is available.
It tests for both the event and the event_type send in the constructor.
T | A key from an event set used to instantiate the proper event_signal function. |
event | The event to get the signal for. |
Definition at line 149 of file dispatcher_private.hpp.
References gui2::event::tdispatcher::child, dispatcher_, event_type_, gui2::event::tdispatcher::post, and gui2::event::tdispatcher::pre.
|
private |
Definition at line 168 of file dispatcher_private.hpp.
Referenced by oper().
|
private |
Definition at line 167 of file dispatcher_private.hpp.
Referenced by oper().