Helper struct to wrap the functor call. More...
Public Member Functions | |
| void | operator() (tsignal_function functor, tdispatcher &dispatcher, const tevent event, bool &handled, bool &halt) |
Helper struct to wrap the functor call.
The template function fire_event needs to call a functor with extra parameter. In order to facilitate this we send the parameter in the constructor of the class and let operator() call the functor with the default parameters and the stored parameters. This allows the core part of tdispatcher::fire to be generic.
Definition at line 122 of file dispatcher.cpp.
| void gui2::event::ttrigger::operator() | ( | tsignal_function | functor, | |
| tdispatcher & | dispatcher, | |||
| const tevent | event, | |||
| bool & | handled, | |||
| bool & | halt | |||
| ) | [inline] |
Definition at line 125 of file dispatcher.cpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:56 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |