Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::mimics::MimicSnapshots Class Reference

#include <MimicsSnapshots.hpp>

Classes

struct  Constants
 

Public Member Functions

 MimicSnapshots (const iv::types::mimicId &mimicId, const std::shared_ptr< iv::file::xml::File > &initialSnapshot)
 
std::shared_ptr< iv::file::xml::FileundoSnapshot (bool updateCurrentIndex=true)
 
std::shared_ptr< iv::file::xml::FileredoSnapshot (bool updateCurrentIndex=true)
 
void addSnapshot (const std::shared_ptr< iv::file::xml::File > &snapshot)
 
bool currentSnapshotIsLatest () const
 

Private Attributes

iv::types::mimicId m_mimicId
 
uint64_t m_currentSnapshotIndex {0}
 
std::vector< std::shared_ptr< iv::file::xml::File > > m_snapshots
 

Constructor & Destructor Documentation

◆ MimicSnapshots()

iv::mimics::MimicSnapshots::MimicSnapshots ( const iv::types::mimicId & mimicId,
const std::shared_ptr< iv::file::xml::File > & initialSnapshot )
explicit

Member Function Documentation

◆ addSnapshot()

void iv::mimics::MimicSnapshots::addSnapshot ( const std::shared_ptr< iv::file::xml::File > & snapshot)

◆ currentSnapshotIsLatest()

bool iv::mimics::MimicSnapshots::currentSnapshotIsLatest ( ) const

◆ redoSnapshot()

std::shared_ptr< iv::file::xml::File > iv::mimics::MimicSnapshots::redoSnapshot ( bool updateCurrentIndex = true)

◆ undoSnapshot()

std::shared_ptr< iv::file::xml::File > iv::mimics::MimicSnapshots::undoSnapshot ( bool updateCurrentIndex = true)

Member Data Documentation

◆ m_currentSnapshotIndex

uint64_t iv::mimics::MimicSnapshots::m_currentSnapshotIndex {0}
private

◆ m_mimicId

iv::types::mimicId iv::mimics::MimicSnapshots::m_mimicId
private

◆ m_snapshots

std::vector<std::shared_ptr<iv::file::xml::File> > iv::mimics::MimicSnapshots::m_snapshots
private

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