Public Member Functions | Private Attributes

gui2::event::tdispatcher_implementation::thas_handler Class Reference

A helper class to find out whether dispatcher has an handler for a certain event. More...

#include <dispatcher_private.hpp>

Collaboration diagram for gui2::event::tdispatcher_implementation::thas_handler:
Collaboration graph
[legend]

List of all members.

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_
tdispatcherdispatcher_

Detailed Description

A helper class to find out whether dispatcher has an handler for a certain event.

Definition at line 97 of file dispatcher_private.hpp.


Constructor & Destructor Documentation

gui2::event::tdispatcher_implementation::thas_handler::thas_handler ( const tdispatcher::tevent_type  event_type,
tdispatcher dispatcher 
) [inline]

Constructor.

Parameters:
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.


Member Function Documentation

template<class T >
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.

Template Parameters:
T A key from an event set used to instanciate the proper event_signal function.
Parameters:
event The event to get the signal for.
Returns:
Whether or not the handler is found.

Definition at line 126 of file dispatcher_private.hpp.


Member Data Documentation

Definition at line 145 of file dispatcher_private.hpp.

Definition at line 144 of file dispatcher_private.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:58 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs