wavelength 1.0.0
Loading...
Searching...
No Matches
MemFun1Command< Function, Object, Argument > Class Template Reference

Command that calls a member function of an object with one argument. More...

#include <memfun1command.h>

Inheritance diagram for MemFun1Command< Function, Object, Argument >:
Collaboration diagram for MemFun1Command< Function, Object, Argument >:

Public Member Functions

 MemFun1Command (Object *pObject, Function pfnMember, Argument argument)
 Bind a member function and its argument to an object.
 ~MemFun1Command () override=default
 Release the command.
void Execute () override
 Call the member function with the argument.
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 Argument>
class MemFun1Command< Function, Object, Argument >

Command that calls a member function of an object with one argument.

The RTTI records each instantiation under its template arguments, the member function type, the object class, and the argument type, 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.
ArgumentThe type of the argument.

Constructor & Destructor Documentation

◆ MemFun1Command()

template<typename Function, typename Object, typename Argument>
MemFun1Command< Function, Object, Argument >::MemFun1Command ( Object * pObject,
Function pfnMember,
Argument argument )
inline

Bind a member function and its argument to an object.

Parameters
pObjectThe object.
pfnMemberThe member function.
argumentThe argument.

◆ ~MemFun1Command()

template<typename Function, typename Object, typename Argument>
MemFun1Command< Function, Object, Argument >::~MemFun1Command ( )
overridedefault

Release the command.

Ghidra address:
NTSC-U/C: 0x00337f20
Ghidra address:
PAL: 0x003a54d0
Ghidra address:
NTSC-U/C: 0x00337f98
Ghidra address:
PAL: 0x003a5548
Ghidra address:
NTSC-U/C: 0x00338010
Ghidra address:
PAL: 0x003a55c0
Ghidra address:
NTSC-U/C: 0x0033bdb8
Ghidra address:
PAL: 0x003a92f0
Ghidra address:
NTSC-U/C: 0x0033c138
Ghidra address:
PAL: 0x003a9670
Ghidra address:
NTSC-U/C: 0x0033ca40
Ghidra address:
PAL: 0x003a9f78
Ghidra address:
NTSC-U/C: 0x0033f338
Ghidra address:
PAL: 0x003ac870
Ghidra address:
NTSC-U/C: 0x00341040
Ghidra address:
PAL: 0x003ae578
Ghidra address:
NTSC-U/C: 0x00341130
Ghidra address:
PAL: 0x003ae668
Ghidra address:
NTSC-U/C: 0x0034b6e0
Ghidra address:
PAL: 0x003b8b10

Member Function Documentation

◆ Execute()

template<typename Function, typename Object, typename Argument>
void MemFun1Command< Function, Object, Argument >::Execute ( )
inlineoverridevirtual

Call the member function with the argument.

Ghidra address:
NTSC-U/C: 0x003414b0
Ghidra address:
PAL: 0x003ae9e8
Ghidra address:
NTSC-U/C: 0x00338180
Ghidra address:
PAL: 0x003a5730
Ghidra address:
NTSC-U/C: 0x00338200
Ghidra address:
PAL: 0x003a57b0
Ghidra address:
NTSC-U/C: 0x00338280
Ghidra address:
PAL: 0x003a5830
Ghidra address:
NTSC-U/C: 0x0033be30
Ghidra address:
PAL: 0x003a9368
Ghidra address:
NTSC-U/C: 0x0033c4a8
Ghidra address:
PAL: 0x003a99e0
Ghidra address:
NTSC-U/C: 0x0033cab8
Ghidra address:
PAL: 0x003a9ff0
Ghidra address:
NTSC-U/C: 0x0033f998
Ghidra address:
PAL: 0x003aced0
Ghidra address:
NTSC-U/C: 0x003413a8
Ghidra address:
PAL: 0x003ae8e0
Ghidra address:
NTSC-U/C: 0x0034b850
Ghidra address:
PAL: 0x003b8c80

Implements Command.


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