EventHandler< E > Class Template Reference

A functor for event-handler callbacks. More...

#include <EventHandler.h++>

Inheritance diagram for EventHandler< E >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~EventHandler ()
 Destructor.
void operator() (E event)
 Function-call operator.

Protected Member Functions

virtual void invoke (E event)=0
 Invoke the handler with an event.


Detailed Description

template<class E>
class ccxx::EventHandler< E >

A functor for event-handler callbacks.

See EventHandlerDelegate for an implementation that delegates to a method in an object.

Author:
Mark Lindner

Constructor & Destructor Documentation

virtual ~EventHandler (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual void invoke ( event  )  [protected, pure virtual]

Invoke the handler with an event.

Parameters:
event The event.

Implemented in EventHandlerDelegate< T, E >.

void operator() ( event  )  [inline]

Function-call operator.

The method simply delegates to invoke().

Parameters:
event The event.


The documentation for this class was generated from the following file:

Generated on Sat Apr 17 23:03:08 2010 for libcommonc++ by  doxygen 1.5.9