|
ISLEman
|
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) |
| Callback type to use when creating a delegate from a function. More... | |
Public Member Functions | |
| TemplateVariant | operator() (const QValueList< TemplateVariant > &args) const |
| Invokes the function/method stored in the delegate. | |
Static Public Member Functions | |
| template<class T , TemplateVariant(T::*)(const QValueList< TemplateVariant > &) const TMethod> | |
| static Delegate | fromMethod (const T *objectPtr) |
| Creates a delegate given an object. More... | |
| static Delegate | fromFunction (const void *obj, StubType func) |
| Creates a delegate given an object, and a plain function. More... | |
Helper class to create a delegate that can store a function/method call.
| typedef TemplateVariant(* TemplateVariant::Delegate::StubType) (const void *obj, const QValueList< TemplateVariant > &args) |
Callback type to use when creating a delegate from a function.
|
inlinestatic |
Creates a delegate given an object, and a plain function.
|
inlinestatic |
Creates a delegate given an object.
The method to call is passed as a template parameter
1.8.12