Nebula
Loading...
Searching...
No Matches
MemDb Namespace Reference

Detailed Description

Attribute.

MemDb::Database.

MemDb::AttributeRegistry.

MemDb::ComponentId.

Describes an attributes's type and default value. The attributes type can be omitted by registering it with a size of zero bytes. This essentially means the attribute is only used when querying the database This information is used to allocate the table columns.

Note
This is mostly just used internally by the database and typeregistry, so you most likely won't need to care about this class in normal use-cases.

A component descriptor.

See also
memdb/typeregistry.h

In-memory, minimally (memory) fragmented, non-relational database.

Classes

class  Attribute
 
struct  AttributeId
 
class  AttributeRegistry
 
struct  ColumnIndex
 column id More...
 
class  Database
 
class  Dataset
 
class  FilterSet
 
struct  RowId
 row identifier More...
 
class  Table
 A table of columns (attributes) and rows. More...
 
struct  TableCreateInfo
 information for creating a table More...
 
struct  TableId
 Table identifier. More...
 
class  TableSignature
 Basically a bitfield with packed ComponentIds. More...
 

Functions

uint16_t GenerateNewAttributeId ()
 Do not use.
 
template<typename ATTRIBUTE >
AttributeId GetAttributeId ()
 
 __ImplementClass (MemDb::Database, 'MmDb', Core::RefCounted)
 
void * AllocateBuffer (Attribute *desc, SizeT capacity, SizeT numRows)
 

Variables

constexpr RowId InvalidRow = {0xFFFF, 0xFFFF}
 

Function Documentation

◆ __ImplementClass()

MemDb::__ImplementClass ( MemDb::Database ,
'MmDb' ,
Core::RefCounted  )

◆ AllocateBuffer()

void * MemDb::AllocateBuffer ( Attribute * desc,
SizeT capacity,
SizeT numRows )

◆ GenerateNewAttributeId()

uint16_t MemDb::GenerateNewAttributeId ( )

Do not use.

Generates a new attribute id.

This function generates a new attribute id.

◆ GetAttributeId()

template<typename ATTRIBUTE >
AttributeId MemDb::GetAttributeId ( )

Variable Documentation

◆ InvalidRow

RowId MemDb::InvalidRow = {0xFFFF, 0xFFFF}
constexpr