5 int Segment::versionCount = 0;
26 v->Release(shared_from_this());
35 for(
auto &v :
parent->written) {
void Release()
Release Segment when it's no longer needed.
int refcount
Count of references for that Segment.
int version
Version of that Segment.
void Collapse(std::shared_ptr< Revision > main)
Compress branch of Segments into one Segment.
std::list< VersionedI * > written
List of all Versioned variables that were changed.
Segment()
Construct the very first Segment.
std::shared_ptr< Segment > parent
Previous Segment.
Implementation of the class Revision.
Implementation of the class Segment.
Implementation of the Versioned classes and interface.