ISLEman
Public Types | Public Member Functions | Static Public Member Functions | List of all members
TemplateVariant::Delegate Class Reference

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...
 

Detailed Description

Helper class to create a delegate that can store a function/method call.

Member Typedef Documentation

§ StubType

typedef TemplateVariant(* TemplateVariant::Delegate::StubType) (const void *obj, const QValueList< TemplateVariant > &args)

Callback type to use when creating a delegate from a function.

Member Function Documentation

§ fromFunction()

static Delegate TemplateVariant::Delegate::fromFunction ( const void *  obj,
StubType  func 
)
inlinestatic

Creates a delegate given an object, and a plain function.

§ fromMethod()

template<class T , TemplateVariant(T::*)(const QValueList< TemplateVariant > &) const TMethod>
static Delegate TemplateVariant::Delegate::fromMethod ( const T *  objectPtr)
inlinestatic

Creates a delegate given an object.

The method to call is passed as a template parameter


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