Class SubscriptionEndpointArray

Class Documentation

class SubscriptionEndpointArray

SubscriptionEndpointArray is an optimized container for felix-star.

It uses a vector and maps FIDs using the local ID and stream ID into a 20bit value. The connections are then retrieved by indexing into the vector.

Public Functions

inline explicit SubscriptionEndpointArray()

Construct a new SubscriptionEndpointArray object.

The array is initialized with the number of links.

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 array contains a given tag.

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)

Noop.

Parameters:

tag -- The tag to add