#include <command.H>
Inheritance diagram for UNDO_CMD:
Public Member Functions | |
void | Own () const |
void | Free () const |
int | Lock () |
void | Unlock () |
int | Unique () const |
Constructors | |
UNDO_CMD (const COMMANDptr &c) | |
Protected Attributes | |
COMMANDptr | _cmd |
bool | _is_done |
true if doit() was executed most recently. | |
bool | _is_undone |
true if undoit() was executed most recently. |
Definition at line 140 of file command.H.
|
|
|
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 53 of file command.C. References _cmd, and COMMAND::clear(). |
|
|
|
|
|
Execute the command.
Reimplemented from COMMAND. Definition at line 37 of file command.C. References _cmd, and COMMAND::doit(). |
|
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(). |
|
undoit() was called most recently, after doit().
Definition at line 97 of file command.H. References COMMAND::_is_undone. |
|
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. |
|
Reimplemented from COMMAND. Definition at line 170 of file command.H. References _cmd. |
|
Undo the command.
Reimplemented from COMMAND. Definition at line 45 of file command.C. References _cmd, 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 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(). |