VCF::StaticEventHandlerInstance< EVENT > Class Template Reference
StaticEventHandlerInstance's are used to provide a typesafe wrapper around a specific class's static function pointers, as opposed to method pointers (which take the implicit this pointer). More...
#include <vcf/FoundationKit/EventHandler.h>
Inheritance diagram for VCF::StaticEventHandlerInstance< EVENT >:

Public Types | |
| typedef void(* | OnStaticEventHandlerMethod )(EVENT *e) |
Public Member Functions | |
| StaticEventHandlerInstance (OnStaticEventHandlerMethod handlerMethod, Object *source=NULL, const String &handlerName="") | |
| virtual | ~StaticEventHandlerInstance () |
| virtual void | invoke (Event *e) |
| Called during the events dispatch cycle. | |
Protected Attributes | |
| OnStaticEventHandlerMethod | handlerMethod_ |
Detailed Description
template<class EVENT>
class VCF::StaticEventHandlerInstance< EVENT >
StaticEventHandlerInstance's are used to provide a typesafe wrapper around a specific class's static function pointers, as opposed to method pointers (which take the implicit this pointer).
In addition, when they are created, if the source passed in is derived from VCF::ObjectWithEvents /em and the handler name is specified, then the handler will be maintained in a list by the source, and destroyed when the source is destroyed, freeing the creator of the handler from worrying about memory leaks.
Member Typedef Documentation
|
|||||
|
|
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
|
|
|||||||||
|
|
Member Function Documentation
|
||||||||||
|
Called during the events dispatch cycle. The implementation will end up calling the appropriate call back method. Implements VCF::EventHandler. |
Member Data Documentation
|
|||||
|
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/EventHandler.h
