From 86293ff20d9f8625615e855d98249175e8cd5cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 18 Dec 2022 18:56:19 +0100 Subject: Contact service and contacts using stored set --- include/erebos/set.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include/erebos/set.h') diff --git a/include/erebos/set.h b/include/erebos/set.h index f625cb0..539ffa0 100644 --- a/include/erebos/set.h +++ b/include/erebos/set.h @@ -17,13 +17,17 @@ protected: SetBase(); SetBase(const vector &); SetBase(shared_ptr); - - shared_ptr add(Storage &, const vector &) const; + + shared_ptr add(const Storage &, const vector &) const; vector> toList() const; public: + bool operator==(const SetBase &) const; + bool operator!=(const SetBase &) const; + vector digests() const; + vector store() const; protected: shared_ptr p; @@ -43,7 +47,7 @@ public: static Set load(const vector & refs) { return Set(move(refs)); } - Set add(Storage &, const T &) const; + Set add(const Storage &, const T &) const; template SetView view(F && cmp) const; @@ -64,7 +68,7 @@ private: }; template -Set Set::add(Storage & st, const T & x) const +Set Set::add(const Storage & st, const T & x) const { return Set(SetBase::add(st, storedRefs(Mergeable::components(x)))); } -- cgit v1.2.3