Class to keep track what Versioned variables were changed.
More...
#include <segment.h>
Class to keep track what Versioned variables were changed.
Definition at line 20 of file segment.h.
◆ Segment() [1/2]
Construct the very first Segment.
Definition at line 7 of file segment.cpp.
int refcount
Count of references for that Segment.
int version
Version of that Segment.
std::shared_ptr< Segment > parent
Previous Segment.
◆ Segment() [2/2]
| Segment::Segment |
( |
std::shared_ptr< Segment > |
parent | ) |
|
◆ Collapse()
| void Segment::Collapse |
( |
std::shared_ptr< Revision > |
main | ) |
|
Compress branch of Segments into one Segment.
- Parameters
-
| main | Revision of whose branch of Segments needs to be collapsed |
- See also
- Revision
Definition at line 33 of file segment.cpp.
35 for(
auto &v :
parent->written) {
◆ Release()
| void Segment::Release |
( |
| ) |
|
Release Segment when it's no longer needed.
Definition at line 23 of file segment.cpp.
26 v->Release(shared_from_this());
std::list< VersionedI * > written
List of all Versioned variables that were changed.
◆ parent
| std::shared_ptr<Segment> Segment::parent |
◆ refcount
◆ version
◆ written
The documentation for this class was generated from the following files: