From c6d01458b4545500a964491c2602da3c3079bfc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 9 Aug 2022 22:11:08 +0200 Subject: Stored roots lookup --- include/erebos/storage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 previous() const; class Generation generation() const; + vector roots() const; private: class Generation generationLocked() const; + class vector rootsLocked() const; protected: Ref(const std::shared_ptr p): PartialRef(p) {} @@ -412,6 +414,8 @@ public: std::vector> previous() const; bool precedes(const Stored &) const; + std::vector roots() const { return p->ref.roots(); } + const Ref & ref() const { return p->ref; } private: -- cgit v1.2.3