23 #ifndef __ccxx_EventHandler_hxx 24 #define __ccxx_EventHandler_hxx 58 virtual void invoke(E event) = 0;
83 : _object(object), _func(func)
90 { (_object->*_func)(event); }
100 #endif // __ccxx_EventHandler_hxx EventHandlerDelegate(T *object, void(T::*func)(E))
Construct a new EventHandlerDelegate for an object.
Definition: EventHandler.h++:82
void invoke(E event)
Invoke the handler with an event.
Definition: EventHandler.h++:89
void operator()(E event)
Function-call operator.
Definition: EventHandler.h++:48
virtual ~EventHandler()
Destructor.
Definition: EventHandler.h++:41
A functor for event-handler callbacks.
Definition: EventHandler.h++:36
An implementation of EventHandler that delegates to a method in an object.
Definition: EventHandler.h++:70
virtual void invoke(E event)=0
Invoke the handler with an event.
Definition: AllocationMap.c++:25