Transaction class
#include <Editor/Public/UndoHistory.h>
Constructors, destructors, conversion operators
- Transaction(std::string name, const SelectionSnapshot& selection)
Public functions
- auto GetName() const -> const std::string&
- auto GetSelection() const -> const SelectionSnapshot&
- auto GetSerial() const -> uint64_t
- auto IsEmpty() const -> bool
- void Add(std::unique_ptr<UndoCommand> cmd)
- Add a command, coalescing it into the last one when they target the same thing.
- void Undo()
- Entries in reverse order.
- void Redo()
- Entries in order.
- void Discard()
- The history dropped this transaction for good; see UndoCommand::
OnDiscarded.