19template <
typename Function,
40 : mObject(pObject), mMember(pfnMember), mArgument1(argument1), mArgument2(argument2),
41 mArgument3(argument3) {
63 (mObject->*mMember)(mArgument1, mArgument2, mArgument3);
90template <
typename Result,
99class MemFun3Command<Result (Owner::*)(Parameter1, Parameter2, Parameter3, int),
106 using Function = Result (Owner::*)(Parameter1, Parameter2, Parameter3, int);
176template <
typename Function,
185 Argument3 argument3) {
187 pObject, pfnMember, argument1, argument2, argument3);
Unit of work a Scheduler runs at a set time.
Definition command.h:13
static constexpr int kDefaultArgument
The fourth argument the member function receives.
Definition memfun3command.h:109
Function mMember
Definition memfun3command.h:152
~MemFun3Command() override=default
Release the command.
Result(Owner::*)(Parameter1, Parameter2, Parameter3, int) Function
The member function type.
Definition memfun3command.h:106
Argument1 mArgument1
Definition memfun3command.h:153
Argument2 mArgument2
Definition memfun3command.h:154
Object * mObject
Definition memfun3command.h:151
MemFun3Command(Object *pObject, Function pfnMember, Argument1 argument1, Argument2 argument2, Argument3 argument3)
Bind a member function and its arguments to an object.
Definition memfun3command.h:120
Argument3 mArgument3
Definition memfun3command.h:155
void Execute() override
Call the member function with the arguments and the default fourth argument.
Definition memfun3command.h:147
Command that calls a member function of an object with three arguments.
Definition memfun3command.h:24
void Execute() override
Call the member function with the arguments.
Definition memfun3command.h:62
~MemFun3Command() override=default
Release the command.
MemFun3Command(Object *pObject, Function pfnMember, Argument1 argument1, Argument2 argument2, Argument3 argument3)
Bind a member function and its arguments to an object.
Definition memfun3command.h:35
Command * NewMemFun3Command(Object *pObject, Function pfnMember, Argument1 argument1, Argument2 argument2, Argument3 argument3)
Allocate a command that calls a member function of an object with three arguments.
Definition memfun3command.h:181