diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-08-09 22:11:08 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-08-09 22:13:32 +0200 |
commit | c6d01458b4545500a964491c2602da3c3079bfc2 (patch) | |
tree | 6c0223c388c30880f813c639e1ad80f8b2b0ebe1 /include/erebos | |
parent | 7aa7649e980ff4b335b41eaea34a9a11820c3e2d (diff) |
Stored roots lookup
Diffstat (limited to 'include/erebos')
-rw-r--r-- | include/erebos/storage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/storage.h b/include/erebos/storage.h index e894fee..15ee0bb 100644 --- a/include/erebos/storage.h +++ b/include/erebos/storage.h @@ -208,9 +208,11 @@ public: vector<Ref> previous() const; class Generation generation() const; + vector<Digest> roots() const; private: class Generation generationLocked() const; + class vector<Digest> rootsLocked() const; protected: Ref(const std::shared_ptr<const Priv> p): PartialRef(p) {} @@ -412,6 +414,8 @@ public: std::vector<Stored<T>> previous() const; bool precedes(const Stored<T> &) const; + std::vector<Digest> roots() const { return p->ref.roots(); } + const Ref & ref() const { return p->ref; } private: |