Helper class to do a runtime test whether an event is in a set. More...
Public Member Functions | |
template<class T > | |
bool | oper (tevent) |
If found we get executed to set the result. More... | |
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 107 of file dispatcher.cpp.
|
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 116 of file dispatcher.cpp.