13#ifndef ML_BACKGROUND_TASK_METHOD_CALL_MESSAGE_H
14#define ML_BACKGROUND_TASK_METHOD_CALL_MESSAGE_H
36 setReceiverHelper(
object);
41 if (!sender() || sender()->hasOwner()) {
53 void setReceiverHelper(
void*) {};
61template <
class Object,
class Method>
68template <
class Object,
class Method,
class Arg1>
76template <
class Object,
class Method,
class Arg1,
class Arg2>
85template <
class Object,
class Method,
class Arg1,
class Arg2,
class Arg3>
94template <
class Object,
class Method,
class Arg1,
class Arg2,
class Arg3,
class Arg4>
103template <
class Object,
class Method,
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5>
The background task receiver is a light-weight base class that can be inherited (e....
The base class of all background messages.
A generic message that allows to call the member function method on a given object,...
BackgroundTaskMethodCallMessage(Object *object, Method method, const ArgumentList &args)
void execute() override
Executes message when it is delivered.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
ArgumentList0 MLGenerateArgumentList()
Creates argument list with zero arguments.
void MLCallMethodWithArguments(Object *object, Method method, const ArgumentList0 &)
Calls a method on given object with zero arguments.
BackgroundTaskMessage * NewBackgroundTaskMethodCall(Object *object, Method method)
Creates a new method call with zero arguments.