Nebula
Loading...
Searching...
No Matches
tableid.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10namespace MemDb
11{
12
15
17struct RowId
18{
19 uint16_t partition;
20 uint16_t index;
21
22 bool
23 operator!=(RowId const& rhs)
24 {
25 return partition != rhs.partition || index != rhs.index;
26 }
27
28 bool
29 operator==(RowId const& rhs)
30 {
31 return partition == rhs.partition && index == rhs.index;
32 }
33};
34
35constexpr RowId InvalidRow = {0xFFFF, 0xFFFF};
36
39
40} // namespace MemDb
#define ID_16_TYPE(x)
Definition id.h:31
#define ID_32_TYPE(x)
Definition id.h:16
Attribute.
Definition attribute.h:26
constexpr RowId InvalidRow
Definition tableid.h:35
column id
Definition tableid.h:38
row identifier
Definition tableid.h:18
uint16_t partition
Definition tableid.h:19
bool operator==(RowId const &rhs)
Definition tableid.h:29
uint16_t index
Definition tableid.h:20
bool operator!=(RowId const &rhs)
Definition tableid.h:23
Table identifier.
Definition tableid.h:14