22 explicit RingId(std::size_t idx) : idx_(idx) {
24 throw std::out_of_range(
"Invalid ring index");
32 std::size_t
index() const noexcept {
return idx_; }
RingId(std::size_t idx)
Constructs a RingId and validates the index.
Definition RingId.h:22
static constexpr std::size_t MAX_NUM_RINGS
Maximum number of rings supported by the RMM system.
Definition RingId.h:15
std::size_t index() const noexcept
Gets the raw numeric index of the ring.
Definition RingId.h:32