|
| | 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.
|
| | 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.
|
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
-
| Function | The member function type. |
| Object | The class of the object. |
| Argument | The type of the argument. |