EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
eduart::sensorring::subscription::SubscriberToken Struct Reference

Opaque token identifying a subscription (state or device group). More...

#include <SubscriberToken.hpp>

Public Types

using TokenType = unsigned long long
 Underlying numeric type used to represent the token value.

Public Member Functions

 SubscriberToken () noexcept
 Default construction (invalid token, value 0).
bool isValid () const noexcept
 Check if the token is valid (non-zero).
TokenType value () const noexcept
 Underlying value for hashing and comparison.
bool operator== (const SubscriberToken &other) const noexcept
 Equality comparison operators for SubscriberToken.
bool operator!= (const SubscriberToken &other) const noexcept
 Inequality comparison operators for SubscriberToken.

Static Public Member Functions

static SubscriberToken getNextToken () noexcept
 Get the next token.

Detailed Description

Opaque token identifying a subscription (state or device group).

Member Function Documentation

◆ isValid()

bool eduart::sensorring::subscription::SubscriberToken::isValid ( ) const
inlinenoexcept

Check if the token is valid (non-zero).

Returns
true if the token represents a valid subscription.

The documentation for this struct was generated from the following file: