Class SubscriptionEndpointMap
Defined in File SubscriptionEndpointMap.hpp
Nested Relationships
Nested Types
Class Documentation
-
class SubscriptionEndpointMap
SubscriptionEndpointMap is a container for storing connections.
It uses a hash map to store the connections for each tag and supports all use cases.
Public Functions
-
inline decltype(auto) at(std::uint64_t tag)
Get the connections for a given tag.
- Parameters:
tag – The tag to get the connections for
- Returns:
A vector of connections for the given tag
-
inline decltype(auto) at(std::uint64_t tag) const
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-
inline bool contains(std::uint64_t tag) const
Check if the map contains a given tag.
Also check that the vector is not empty.
- Parameters:
tag – The tag to check for
- Returns:
true if the tag is present, false otherwise
-
inline void erase(std::uint64_t tag)
Erase the connections for a given tag.
- Parameters:
tag – The tag to erase
-
inline void add(std::uint64_t tag)
Add a tag to the map.
- Parameters:
tag – The tag to add
-
inline decltype(auto) at(std::uint64_t tag)