49 void takeSnapshot(std::shared_ptr<BlockAccessor> blocks);
59 void restore(
size_t n_steps = 1);
88 static void Overwrite(std::shared_ptr<BlockAccessor>& receiver, std::shared_ptr<BlockAccessor> source);
91 std::stack<std::shared_ptr<BlockAccessor>> snapshots;
Alias-aware façade for accessing and manipulating multiple parameter blocks.
Interface for snapshotting and restoring BlockAccessor states.
Stack-based implementation of IDBMemento for BlockAccessor.
size_t stack_size()
Returns the number of snapshots currently stored.
void print_snapshot_content(size_t n=0)
Prints the content of a stored snapshot.
void takeSnapshot(std::shared_ptr< BlockAccessor > blocks)
Takes a snapshot of the given BlockAccessor.
void restore(size_t n_steps=1)
Restores the state n_steps snapshots back.
Abstract interface for memento-like management of BlockAccessor states.