19namespace subscription {
38 bool isValid() const noexcept {
return _value != 0; }
44 static std::atomic<TokenType> next_token{ 1 };
80template <>
struct hash<eduart::sensorring::subscription::SubscriberToken> {
Opaque token identifying a subscription (state or device group).
Definition SubscriberToken.hpp:25
unsigned long long TokenType
Underlying numeric type used to represent the token value.
Definition SubscriberToken.hpp:27
TokenType value() const noexcept
Underlying value for hashing and comparison.
Definition SubscriberToken.hpp:51
SubscriberToken() noexcept
Default construction (invalid token, value 0).
Definition SubscriberToken.hpp:32
bool operator!=(const SubscriberToken &other) const noexcept
Inequality comparison operators for SubscriberToken.
Definition SubscriberToken.hpp:57
bool isValid() const noexcept
Check if the token is valid (non-zero).
Definition SubscriberToken.hpp:38
bool operator==(const SubscriberToken &other) const noexcept
Equality comparison operators for SubscriberToken.
Definition SubscriberToken.hpp:54
static SubscriberToken getNextToken() noexcept
Get the next token.
Definition SubscriberToken.hpp:43
std::size_t operator()(const eduart::sensorring::subscription::SubscriberToken &token) const noexcept
Compute hash value for a SubscriberToken.
Definition SubscriberToken.hpp:86