From 4247b81e7756ce1ff01e097e634a9dcbc0912787 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Jan 2023 17:06:57 +0100 Subject: Added tests --- connectionregistry.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'connectionregistry.h') diff --git a/connectionregistry.h b/connectionregistry.h index cdd30d9..155ab31 100644 --- a/connectionregistry.h +++ b/connectionregistry.h @@ -22,16 +22,18 @@ public: void addConnection(connection c); void delConnection(connection c); - // map connection to id - std::unordered_map m_connections; - // map id to list of related connections, used for iteration over connections to notify about changes - std::unordered_map> m_ids; - std::unordered_set::iterator begin(const std::string& id); std::unordered_set::iterator end(const std::string& id); void dump() const; +private: + // map connection to id + std::unordered_map m_connections; + // map id to list of related connections, used for iteration over connections to notify about changes + std::unordered_map> m_ids; + +public: class RegistryGuard { public: -- cgit v1.2.3