opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
osc::UndoRedoBase Class Referenceabstract

#include <undo_redo.h>

Inheritance diagram for osc::UndoRedoBase:
[legend]

Public Member Functions

virtual ~UndoRedoBase () noexcept
 
void commit_scratch (std::string_view commit_message)
 
const UndoRedoEntryBasehead () const
 
UID head_id () const
 
void rollback ()
 
size_t num_undo_entries () const
 
const UndoRedoEntryBaseundo_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 UndoRedoEntryBaseredo_entry_at (size_t pos) const
 
bool can_redo () const
 
void redo_to (size_t pos)
 
void redo ()
 

Protected Member Functions

 UndoRedoBase (UndoRedoEntryBase initial_commit)
 
 UndoRedoBase (const UndoRedoBase &)
 
 UndoRedoBase (UndoRedoBase &&) noexcept
 
UndoRedoBaseoperator= (const UndoRedoBase &)
 
UndoRedoBaseoperator= (UndoRedoBase &&) noexcept
 

Private Member Functions

virtual UndoRedoEntryBase impl_construct_commit_from_scratch (std::string_view commit_message)=0
 
virtual void impl_copy_assign_scratch_from_commit (const UndoRedoEntryBase &)=0
 

Constructor & Destructor Documentation

◆ UndoRedoBase() [1/3]

osc::UndoRedoBase::UndoRedoBase ( UndoRedoEntryBase  initial_commit)
explicitprotected

◆ UndoRedoBase() [2/3]

osc::UndoRedoBase::UndoRedoBase ( const UndoRedoBase )
protected

◆ UndoRedoBase() [3/3]

osc::UndoRedoBase::UndoRedoBase ( UndoRedoBase &&  )
protectednoexcept

◆ ~UndoRedoBase()

virtual osc::UndoRedoBase::~UndoRedoBase ( )
virtualnoexcept

Member Function Documentation

◆ can_redo()

bool osc::UndoRedoBase::can_redo ( ) const

◆ can_undo()

bool osc::UndoRedoBase::can_undo ( ) const

◆ commit_scratch()

void osc::UndoRedoBase::commit_scratch ( std::string_view  commit_message)

◆ head()

const UndoRedoEntryBase & osc::UndoRedoBase::head ( ) const

◆ head_id()

UID osc::UndoRedoBase::head_id ( ) const

◆ impl_construct_commit_from_scratch()

virtual UndoRedoEntryBase osc::UndoRedoBase::impl_construct_commit_from_scratch ( std::string_view  commit_message)
privatepure virtual

Implemented in osc::UndoRedo< T >.

◆ impl_copy_assign_scratch_from_commit()

virtual void osc::UndoRedoBase::impl_copy_assign_scratch_from_commit ( const UndoRedoEntryBase )
privatepure virtual

Implemented in osc::UndoRedo< T >.

◆ num_redo_entries()

size_t osc::UndoRedoBase::num_redo_entries ( ) const

◆ num_undo_entries()

size_t osc::UndoRedoBase::num_undo_entries ( ) const

◆ operator=() [1/2]

UndoRedoBase & osc::UndoRedoBase::operator= ( const UndoRedoBase )
protected

◆ operator=() [2/2]

UndoRedoBase & osc::UndoRedoBase::operator= ( UndoRedoBase &&  )
protectednoexcept

◆ redo()

void osc::UndoRedoBase::redo ( )

◆ redo_entry_at()

const UndoRedoEntryBase & osc::UndoRedoBase::redo_entry_at ( size_t  pos) const

◆ redo_to()

void osc::UndoRedoBase::redo_to ( size_t  pos)

◆ rollback()

void osc::UndoRedoBase::rollback ( )

◆ undo()

void osc::UndoRedoBase::undo ( )

◆ undo_entry_at()

const UndoRedoEntryBase & osc::UndoRedoBase::undo_entry_at ( size_t  pos) const

◆ undo_to()

void osc::UndoRedoBase::undo_to ( size_t  pos)

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