diff options
Diffstat (limited to 'connectionregistry.h')
-rw-r--r-- | connectionregistry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/connectionregistry.h b/connectionregistry.h index 25bd3b6..c3c6884 100644 --- a/connectionregistry.h +++ b/connectionregistry.h @@ -22,9 +22,14 @@ public: void addConnection(connection c); void delConnection(connection c); + // iterate over all connections associated with a certain id std::unordered_set<connection>::iterator begin(const std::string& id); std::unordered_set<connection>::iterator end(const std::string& id); + // iterate over all connections + std::unordered_map<connection, std::string>::iterator begin(); + std::unordered_map<connection, std::string>::iterator end(); + void dump() const; size_t number_of_connections() const; |