Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
tableid.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
namespace
MemDb
11
{
12
14
ID_32_TYPE
(
TableId
);
15
17
struct
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
35
constexpr
RowId
InvalidRow
= {0xFFFF, 0xFFFF};
36
38
ID_16_TYPE
(
ColumnIndex
);
39
40
}
// namespace MemDb
ID_16_TYPE
#define ID_16_TYPE(x)
Definition
id.h:31
ID_32_TYPE
#define ID_32_TYPE(x)
Definition
id.h:16
MemDb
Attribute.
Definition
attribute.h:26
MemDb::InvalidRow
constexpr RowId InvalidRow
Definition
tableid.h:35
MemDb::ColumnIndex
column id
Definition
tableid.h:38
MemDb::RowId
row identifier
Definition
tableid.h:18
MemDb::RowId::partition
uint16_t partition
Definition
tableid.h:19
MemDb::RowId::operator==
bool operator==(RowId const &rhs)
Definition
tableid.h:29
MemDb::RowId::index
uint16_t index
Definition
tableid.h:20
MemDb::RowId::operator!=
bool operator!=(RowId const &rhs)
Definition
tableid.h:23
MemDb::TableId
Table identifier.
Definition
tableid.h:14
code
addons
memdb
tableid.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.