Composite undoable command.
More...
#include <undoableCommand.h>
Composite undoable command.
This base class implements the Composite pattern
https://en.wikipedia.org/wiki/Composite_pattern
for undoable commands.
Definition at line 73 of file undoableCommand.h.
◆ CmdList
◆ CompositeUndoableCommand() [1/5]
Ufe::CompositeUndoableCommand::CompositeUndoableCommand |
( |
| ) |
|
◆ CompositeUndoableCommand() [2/5]
Ufe::CompositeUndoableCommand::CompositeUndoableCommand |
( |
std::initializer_list< Ptr > |
undoableCommands | ) |
|
◆ CompositeUndoableCommand() [3/5]
Ufe::CompositeUndoableCommand::CompositeUndoableCommand |
( |
const std::list< Ptr > & |
undoableCommands | ) |
|
◆ CompositeUndoableCommand() [4/5]
Ufe::CompositeUndoableCommand::CompositeUndoableCommand |
( |
const Ptr & |
undoableCommand | ) |
|
◆ ~CompositeUndoableCommand()
Ufe::CompositeUndoableCommand::~CompositeUndoableCommand |
( |
| ) |
|
|
override |
◆ CompositeUndoableCommand() [5/5]
Deleting copy constructor.
◆ append()
void Ufe::CompositeUndoableCommand::append |
( |
const Ptr & |
cmd | ) |
|
Append the argument to the list of commands.
◆ cmdsList()
const CmdList & Ufe::CompositeUndoableCommand::cmdsList |
( |
| ) |
const |
Returns the list of undoable commands.
◆ create() [1/3]
◆ create() [2/3]
◆ create() [3/3]
static std::shared_ptr< CompositeUndoableCommand > Ufe::CompositeUndoableCommand::create |
( |
std::initializer_list< Ptr > |
undoableCommands | ) |
|
|
static |
Create the composite command and append the argument commands to it.
- Returns
- Pointer to the composite undoable command.
◆ execute()
void Ufe::CompositeUndoableCommand::execute |
( |
| ) |
|
|
overridevirtual |
◆ redo()
void Ufe::CompositeUndoableCommand::redo |
( |
| ) |
|
|
overridevirtual |
◆ undo()
void Ufe::CompositeUndoableCommand::undo |
( |
| ) |
|
|
overridevirtual |
◆ fCmds
CmdList Ufe::CompositeUndoableCommand::fCmds |
|
private |
The documentation for this class was generated from the following file: