Public Member Functions

gui2::event::tevent_in_set Class Reference

Helper class to do a runtime test whether an event is in a set. More...

List of all members.

Public Member Functions

template<class T >
bool oper (tevent)
 If found we get executed to set the result.

Detailed Description

Helper class to do a runtime test whether an event is in a set.

The class is supposed to be used in combination with find function. This function is used in the fire functions to make sure an event is send to the proper handler. If not there will be a run-time assertion failure. This makes developing and testing the code easier, a wrong handler terminates Wesnoth instead of silently not working.

Definition at line 97 of file dispatcher.cpp.


Member Function Documentation

template<class T >
bool gui2::event::tevent_in_set::oper ( tevent   )  [inline]

If found we get executed to set the result.

Since we need to return true if found we always return true.

Definition at line 107 of file dispatcher.cpp.


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:56 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs