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. | |
| template<class T > | |
| bool | oper (tevent event) |
| Tests whether a handler for an event is available. | |
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 97 of file dispatcher_private.hpp.
| gui2::event::tdispatcher_implementation::thas_handler::thas_handler | ( | const tdispatcher::tevent_type | event_type, | |
| tdispatcher & | dispatcher | |||
| ) | [inline] |
Constructor.
| event_type | The type of event to look for. | |
| dispatcher | The dispatcher whose signal queue is used. |
Definition at line 106 of file dispatcher_private.hpp.
| bool gui2::event::tdispatcher_implementation::thas_handler::oper | ( | tevent | event | ) | [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 instanciate the proper event_signal function. |
| event | The event to get the signal for. |
Definition at line 126 of file dispatcher_private.hpp.
Definition at line 145 of file dispatcher_private.hpp.
tdispatcher::tevent_type gui2::event::tdispatcher_implementation::thas_handler::event_type_ [private] |
Definition at line 144 of file dispatcher_private.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:58 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |