The Nebula Device 3: Util::Delegate< ARGTYPE > Class Template Reference

The Nebula Device 3

Util::Delegate< ARGTYPE > Class Template Reference

#include <delegate.h>


Detailed Description

template<class ARGTYPE>
class Util::Delegate< ARGTYPE >

Nebula3 delegate class, allows to store a method call into a C++ object for later execution.

See http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx for details.

(C) 2008 Radon Labs GmbH


Public Member Functions

 Delegate ()
 constructor
void operator() (ARGTYPE arg) const
 invokation operator

Static Public Member Functions

template<class CLASS, void(CLASS::*)(ARGTYPE) METHOD>
static Delegate< ARGTYPE > FromMethod (CLASS *objPtr)
 setup a new delegate from a method call
template<void(*)(ARGTYPE) FUNCTION>
static Delegate< ARGTYPE > FromFunction ()
 setup a new delegate from a function call