#include <EventHandler.h++>


Public Member Functions | |
| EventHandlerDelegate (T *object, void(T::*func)(E)) | |
| Construct a new EventHandlerDelegate for an object. | |
| void | operator() (Eevent) |
| Function-call operator. | |
Protected Member Functions | |
| void | invoke (E event) |
| Invoke the handler with an event. | |
The object can be thought of as a pointer to an event handler method that can be invoked as if it were a function; it allows an object to declare one or more event-handling methods to be used as callbacks.
| EventHandlerDelegate | ( | T * | object, | |
| void(T::*)(E) | func | |||
| ) | [inline] |
Construct a new EventHandlerDelegate for an object.
| object | The object. | |
| func | A member function (method) in the object which will serve as the event handler. |
| void invoke | ( | E | event | ) | [inline, protected, virtual] |
| void operator() | ( | E | event | ) | [inline, inherited] |
Function-call operator.
The method simply delegates to invoke().
| event | The event. |
1.5.9