template<typename T>
maat::SnapshotManager class

Wrapper class to manage a list of snapshots.

❱   Base classes

class Serializable
Virtual interface that serializable classes must implement.

❱   Public static variables

template<typename Check>
static bool instanciated_with_type constexpr
Template variable used to check what type the manager has been instanciated with.

❱   Public functions

auto back() -> T&
Return a reference to the last added snapshot.

auto active() -> bool
Return true if there is at least one active snapshot.

auto size() -> int
Return the number of active snapshots.

auto class_uid() const -> serial::uid_t virtual
Return the class uid (see ClassId enum)

void dump(serial::Serializer&) const virtual
Dump the object contents in a serializer stream.

void load(serial::Deserializer&) virtual
Restore an object from a deserializer stream.

❱   Protected functions

auto emplace_back() -> T&
Add a new snapshot a return a reference to it.

void pop_back()
Remove the last added snapshot.