wavelength 1.0.0
Loading...
Searching...
No Matches
MemFun2Command< Function, Object, Argument1, Argument2 > Class Template Reference

Command that calls a member function of an object with two arguments. More...

#include <memfun2command.h>

Inheritance diagram for MemFun2Command< Function, Object, Argument1, Argument2 >:
Collaboration diagram for MemFun2Command< Function, Object, Argument1, Argument2 >:

Public Member Functions

 MemFun2Command (Object *pObject, Function pfnMember, Argument1 argument1, Argument2 argument2)
 Bind a member function and its arguments to an object.
 ~MemFun2Command () override=default
 Release the command.
void Execute () override
 Call the member function with the arguments.
Public Member Functions inherited from Command
 ~Command () override
 Release the command.
virtual bool IsSerializable ()
 Report whether a recording saves the command.
virtual int GetSerialId ()
 Report the identifier a recording rebuilds the command by.
virtual void Save (BinStream &stream) const
 Write the command to a recording.
virtual void Load (BinStream &stream)
 Read the command Save() writes.
Public Member Functions inherited from Attachment
 Attachment ()
 Construct an object with no reference.
virtual ~Attachment ()
 Release the object.
void AddRef ()
 Take one reference.
void Release ()
 Give back one reference and delete the object once the last one is gone.

Additional Inherited Members

Static Public Member Functions inherited from Attachment
static void ReleaseIfSet (Attachment *pAttachment)
 Give back one reference to an object that may be null.

Detailed Description

template<typename Function, typename Object, typename Argument1, typename Argument2>
class MemFun2Command< Function, Object, Argument1, Argument2 >

Command that calls a member function of an object with two arguments.

The RTTI records each instantiation under its template arguments, the member function type, the object class, and the two argument types, and records Command as the base. Each instantiation has its own out-of-line copies of the members, and each address listed is one instantiation's.

Template Parameters
FunctionThe member function type.
ObjectThe class of the object.
Argument1The type of the first argument.
Argument2The type of the second argument.

Constructor & Destructor Documentation

◆ MemFun2Command()

template<typename Function, typename Object, typename Argument1, typename Argument2>
MemFun2Command< Function, Object, Argument1, Argument2 >::MemFun2Command ( Object * pObject,
Function pfnMember,
Argument1 argument1,
Argument2 argument2 )
inline

Bind a member function and its arguments to an object.

Parameters
pObjectThe object.
pfnMemberThe member function.
argument1The first argument.
argument2The second argument.

◆ ~MemFun2Command()

template<typename Function, typename Object, typename Argument1, typename Argument2>
MemFun2Command< Function, Object, Argument1, Argument2 >::~MemFun2Command ( )
overridedefault

Release the command.

Ghidra address:
NTSC-U/C: 0x0033f2c0
Ghidra address:
PAL: 0x003ac7f8
Ghidra address:
NTSC-U/C: 0x0033f4a0
Ghidra address:
PAL: 0x003ac9d8
Ghidra address:
NTSC-U/C: 0x0033f518
Ghidra address:
PAL: 0x003aca50
Ghidra address:
NTSC-U/C: 0x0033f608
Ghidra address:
PAL: 0x003acb40
Ghidra address:
NTSC-U/C: 0x0034c398
Ghidra address:
PAL: 0x003b97c8

Member Function Documentation

◆ Execute()

template<typename Function, typename Object, typename Argument1, typename Argument2>
void MemFun2Command< Function, Object, Argument1, Argument2 >::Execute ( )
inlineoverridevirtual

Call the member function with the arguments.

Ghidra address:
NTSC-U/C: 0x0033f680
Ghidra address:
PAL: 0x003acbb8
Ghidra address:
NTSC-U/C: 0x0033f798
Ghidra address:
PAL: 0x003accd0
Ghidra address:
NTSC-U/C: 0x0033f820
Ghidra address:
PAL: 0x003acd58
Ghidra address:
NTSC-U/C: 0x0033fa18
Ghidra address:
PAL: 0x003acf50
Ghidra address:
NTSC-U/C: 0x0034c518
Ghidra address:
PAL: 0x003b9948

Implements Command.


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