15template <
typename Function,
typename Object>
24 MemFunCommand(Object *pObject, Function pfnMember) : mObject(pObject), mMember(pfnMember) {
183 (mObject->*mMember)();
201template <
typename Result,
typename Owner,
typename Object>
325template <
typename Function,
typename Object>
Unit of work a Scheduler runs at a set time.
Definition command.h:13
MemFunCommand(Object *pObject, Function pfnMember)
Construct a command that calls a member function.
Definition memfuncommand.h:216
~MemFunCommand() override=default
Release the command.
static constexpr float kDefaultArgument
The argument the member function receives.
Definition memfuncommand.h:208
void Execute() override
Call the member function with the default argument.
Definition memfuncommand.h:233
Result(Owner::*)(float) Function
The member function type.
Definition memfuncommand.h:205
Command that calls a member function of an object.
Definition memfuncommand.h:16
~MemFunCommand() override=default
Release the command.
MemFunCommand(Object *pObject, Function pfnMember)
Construct a command that calls a member function.
Definition memfuncommand.h:24
void Execute() override
Call the member function.
Definition memfuncommand.h:182
Command * NewMemFunCommand(Object *pObject, Function pfnMember)
Allocate a command that calls a member function of an object.
Definition memfuncommand.h:326