Enzo
Loading...
Searching...
No Matches
enzo::nt::UndoGroup Class Reference

Bundles several commands into a single atomic undo unit. More...

#include <UndoGroup.h>

Inheritance diagram for enzo::nt::UndoGroup:
enzo::nt::UndoCommand

Public Member Functions

void addCommand (std::unique_ptr< UndoCommand > command)
 Appends a command to the group, taking ownership.
 
bool isEmpty () const
 Returns true when the group holds no commands.
 
void undo () override
 
void redo () override
 
UndoCommandType type () const override
 
- Public Member Functions inherited from enzo::nt::UndoCommand

Detailed Description

Bundles several commands into a single atomic undo unit.

Member Function Documentation

◆ redo()

void enzo::nt::UndoGroup::redo ( )
inlineoverridevirtual

Implements enzo::nt::UndoCommand.

◆ type()

UndoCommandType enzo::nt::UndoGroup::type ( ) const
inlineoverridevirtual

Implements enzo::nt::UndoCommand.

◆ undo()

void enzo::nt::UndoGroup::undo ( )
inlineoverridevirtual

Implements enzo::nt::UndoCommand.


The documentation for this class was generated from the following file: