#include <command.H>
Inheritance diagram for MULTI_CMD:
Public Member Functions | |
void | Own () const |
void | Free () const |
int | Lock () |
void | Unlock () |
int | Unique () const |
Run-Time Type Id | |
DEFINE_RTTI_METHODS3 ("MULTI_CMD", MULTI_CMD *, COMMAND, CCOMMAND *) | |
COMMAND List Operations | |
CLIST< COMMANDptr > & | commands () const |
bool | is_empty () const |
void | add (CCOMMANDptr &cmd) |
void | rem (CCOMMANDptr &cmd) |
COMMANDptr | pop () |
CCOMMANDptr & | last () const |
Command Virtual Methods | |
virtual bool | doit () |
Execute the command. | |
virtual bool | undoit () |
Undo the command. | |
virtual bool | clear () |
After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes). | |
Diagnostic | |
virtual void | print () const |
Protected Attributes | |
LIST< COMMANDptr > | _commands |
bool | _is_done |
true if doit() was executed most recently. | |
bool | _is_undone |
true if undoit() was executed most recently. |
Definition at line 273 of file command.H.
|
Definition at line 290 of file command.H. References _commands. |
|
After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes).
Reimplemented from COMMAND. Definition at line 108 of file command.C. References _commands, ARRAY< T >::clear(), COMMAND::clear(), and ARRAY< T >::num(). |
|
Definition at line 287 of file command.H. References _commands. |
|
|
|
|
|
Execute the command.
Reimplemented from COMMAND. Definition at line 89 of file command.C. References _commands, COMMAND::doit(), and ARRAY< T >::num(). |
|
Definition at line 76 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Neither doit() nor undoit() have been called.
Definition at line 91 of file command.H. References COMMAND::_is_done, and COMMAND::_is_undone. |
|
doit() was called most recently.
Definition at line 94 of file command.H. References COMMAND::_is_done. Referenced by COMMAND::clear(). |
|
Definition at line 288 of file command.H. References _commands, and ARRAY< T >::empty(). |
|
undoit() was called most recently, after doit().
Definition at line 97 of file command.H. References COMMAND::_is_undone. |
|
Definition at line 294 of file command.H. References _commands, and ARRAY< T >::last(). |
|
Definition at line 105 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::REFlock(). |
|
Definition at line 59 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Definition at line 292 of file command.H. References _commands, and ARRAY< T >::pop(). |
|
Reimplemented from COMMAND. Definition at line 310 of file command.H. References _commands, and ARRAY< T >::num(). |
|
Definition at line 291 of file command.H. References _commands. |
|
Undo the command.
Reimplemented from COMMAND. Definition at line 98 of file command.C. References _commands, ARRAY< T >::num(), and COMMAND::undoit(). |
|
Definition at line 115 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. |
|
Definition at line 111 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::~REFlock(). |
|
Definition at line 321 of file command.H. Referenced by add(), clear(), commands(), doit(), is_empty(), last(), pop(), print(), rem(), and undoit(). |
|
Definition at line 129 of file command.H. Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_done(), and COMMAND::undoit(). |
|
Definition at line 130 of file command.H. Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_undone(), and COMMAND::undoit(). |