The abstract parent class of all the command classes. Commands are non-copyable. More...
#include <command.h>
Public Member Functions | |
virtual | ~Command () |
Destructor. | |
Protected Member Functions | |
Command () | |
The default constructor. | |
virtual void | execute ()=0 |
Executes the command. | |
bool | hasUndo () const |
Returns true if the command has an undo function. | |
virtual void | undo ()=0 |
Undos the command. | |
Protected Attributes | |
bool | has_undo_ |
a flag indicates whether the command has an undo function. | |
Private Member Functions | |
Command (const Command &) | |
Copy Constructor - object is non-copyable. | |
Command & | operator= (const Command &) |
Equal Operator - object is non-copyable. | |
Friends | |
class | CommandQueue |
The abstract parent class of all the command classes. Commands are non-copyable.
virtual Command::~Command | ( | ) | [inline, virtual] |
Command::Command | ( | ) | [inline, protected] |
Command::Command | ( | const Command & | ) | [inline, private] |
virtual void Command::execute | ( | ) | [protected, pure virtual] |
Executes the command.
Implemented in CopyCommand, DenoiseCommand, PasteCommand, TransformCommand, CutCommand, and DeleteCommand.
bool Command::hasUndo | ( | ) | const [inline, protected] |
virtual void Command::undo | ( | ) | [protected, pure virtual] |
Undos the command.
Implemented in CopyCommand, DenoiseCommand, CutCommand, PasteCommand, TransformCommand, and DeleteCommand.
friend class CommandQueue [friend] |
bool Command::has_undo_ [protected] |