SDL++
C++wrapperfortheSDLlibrary.
|
Adds a Listener for an event to a collection of Listeners. More...
#include <Dispatcher.h>
Public Member Functions | |
Adder (Listeners &listeners, Handler &handler) | |
template<class Event > | |
void | operator() (const Event &event) |
Adds a Listener for an event to a collection of Listeners.
Listeners | The type of the Listeners to which to add the Listener. |
Handler | The type of the Handler from which to get the Listener's handle function. |
Definition at line 44 of file Dispatcher.h.
sdl::event::Adder< Listeners, Handler >::Adder | ( | Listeners & | listeners, |
Handler & | handler | ||
) | [inline] |
Constructs an Adder from a Listener and a Handler.
listeners | the Listeners to which to add the Listener. |
handler | the Handler from which to get the Listener's handle function. |
Definition at line 51 of file Dispatcher.h.
void sdl::event::Adder< Listeners, Handler >::operator() | ( | const Event & | event | ) | [inline] |
Adds a listener for event to the Listeners.
event | The event for which to add a Listener. |
Definition at line 61 of file Dispatcher.h.