Helper class to create a delegate that can store a function/method call. More...
#include <template.h>
Public Types | |
typedef TemplateVariant(* | StubType) (const void *obj, const QValueList< TemplateVariant > &args) |
Public Member Functions | |
Delegate () | |
TemplateVariant | operator() (const QValueList< TemplateVariant > &args) const |
Static Public Member Functions | |
template<class T , TemplateVariant(T::*)(const QValueList< TemplateVariant > &) const TMethod> | |
static Delegate | fromMethod (const T *objectPtr) |
static Delegate | fromFunction (const void *obj, StubType func) |
Static Private Member Functions | |
template<class T , TemplateVariant(T::*)(const QValueList< TemplateVariant > &) const TMethod> | |
static TemplateVariant | methodStub (const void *objectPtr, const QValueList< TemplateVariant > &args) |
Private Attributes | |
const void * | m_objectPtr |
StubType | m_stubPtr |
Helper class to create a delegate that can store a function/method call.
Definition at line 94 of file template.h.
typedef TemplateVariant(* TemplateVariant::Delegate::StubType) (const void *obj, const QValueList< TemplateVariant > &args) |
Callback type to use when creating a delegate from a function.
Definition at line 98 of file template.h.
|
inline |
Definition at line 100 of file template.h.
|
inlinestatic |
Creates a delegate given an object, and a plain function.
Definition at line 112 of file template.h.
|
inlinestatic |
Creates a delegate given an object. The method to call is passed as a template parameter
Definition at line 104 of file template.h.
|
inlinestaticprivate |
Definition at line 131 of file template.h.
|
inline |
|
private |
Definition at line 127 of file template.h.
|
private |
Definition at line 128 of file template.h.