EN
RU
Portals
0.7.0 · dev
0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Toggle main menu visibility
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
7
namespace
portals
{
9
struct
RowId
{
10
std::uint64_t
value
{};
11
std::uint64_t
generation
{};
16
bool
operator==
(
const
RowId
&other)
const
noexcept
=
default
;
17
};
18
}
// namespace portals
portals
Public Portals API.
Definition
action.hpp:8
portals::RowId
Provider-assigned row identity, independent of position; increment generation on reuse.
Definition
row_id.hpp:9
portals::RowId::generation
std::uint64_t generation
Nonzero generation; never wrap or reuse an exhausted pair.
Definition
row_id.hpp:11
portals::RowId::value
std::uint64_t value
Nonzero identity within one model.
Definition
row_id.hpp:10
portals::RowId::operator==
bool operator==(const RowId &other) const noexcept=default
Compare both identity components.
include
portals
row_id.hpp