|
opynsim
Unofficial C++ Documentation
|
#include <undo_redo.h>
Public Member Functions | |
| template<typename... Args> requires std::constructible_from<T, Args&&...> | |
| UndoRedo (Args &&... args) | |
| const T & | scratch () const |
| T & | upd_scratch () |
| const UndoRedoEntry< T > & | undo_entry_at (size_t pos) const |
| const UndoRedoEntry< T > & | redo_entry_at (size_t pos) const |
Public Member Functions inherited from osc::UndoRedoBase | |
| virtual | ~UndoRedoBase () noexcept |
| void | commit_scratch (std::string_view commit_message) |
| const UndoRedoEntryBase & | head () const |
| UID | head_id () const |
| void | rollback () |
| size_t | num_undo_entries () const |
| const UndoRedoEntryBase & | undo_entry_at (size_t pos) const |
| void | undo_to (size_t pos) |
| bool | can_undo () const |
| void | undo () |
| size_t | num_redo_entries () const |
| const UndoRedoEntryBase & | redo_entry_at (size_t pos) const |
| bool | can_redo () const |
| void | redo_to (size_t pos) |
| void | redo () |
Private Member Functions | |
| UndoRedoEntryBase | impl_construct_commit_from_scratch (std::string_view commit_message) final |
| void | impl_copy_assign_scratch_from_commit (const UndoRedoEntryBase &commit) final |
Additional Inherited Members | |
Protected Member Functions inherited from osc::UndoRedoBase | |
| UndoRedoBase (UndoRedoEntryBase initial_commit) | |
| UndoRedoBase (const UndoRedoBase &) | |
| UndoRedoBase (UndoRedoBase &&) noexcept | |
| UndoRedoBase & | operator= (const UndoRedoBase &) |
| UndoRedoBase & | operator= (UndoRedoBase &&) noexcept |
|
inlineexplicit |
|
inlinefinalprivatevirtual |
Implements osc::UndoRedoBase.
|
inlinefinalprivatevirtual |
Implements osc::UndoRedoBase.
|
inline |
|
inline |
|
inline |
|
inline |