Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
row_id.hpp
1// Copyright (c) 2026 ttldtor.
2// SPDX-License-Identifier: BSL-1.0
3#pragma once
4
5#include <cstdint>
6
7namespace portals {
9struct RowId {
10 std::uint64_t value{};
11 std::uint64_t generation{};
16 bool operator==(const RowId &other) const noexcept = default;
17};
18} // namespace portals
Public Portals API.
Definition action.hpp:8
Provider-assigned row identity, independent of position; increment generation on reuse.
Definition row_id.hpp:9
std::uint64_t generation
Nonzero generation; never wrap or reuse an exhausted pair.
Definition row_id.hpp:11
std::uint64_t value
Nonzero identity within one model.
Definition row_id.hpp:10
bool operator==(const RowId &other) const noexcept=default
Compare both identity components.