cubos::core::ecs::ColumnId struct

Identifies a data column type.

Public static variables

static const ColumnId Invalid
Invalid column type identifier.

Public static functions

static auto make(DataTypeId id) -> ColumnId
Creates a column type identifier from a data type identifier.
static auto make(DataTypeId id, uint32_t index) -> ColumnId
Creates a column type identifier from a data type identifier and an index.

Public functions

auto dataType() const -> DataTypeId
Returns the data type identifier of this column type.
auto index() const -> uint32_t
Returns the index of this column type.
auto operator==(const ColumnId& other) const -> bool defaulted
Compares two column type identifiers for equality.

Public variables

uint64_t inner
Column type identifier.

Function documentation

static ColumnId cubos::core::ecs::ColumnId::make(DataTypeId id)

Creates a column type identifier from a data type identifier.

Parameters
id Data type identifier.
Returns Column type identifier.

static ColumnId cubos::core::ecs::ColumnId::make(DataTypeId id, uint32_t index)

Creates a column type identifier from a data type identifier and an index.

Parameters
id Data type identifier.
index Index.
Returns Column type identifier.

DataTypeId cubos::core::ecs::ColumnId::dataType() const

Returns the data type identifier of this column type.

Returns Data type identifier.

uint32_t cubos::core::ecs::ColumnId::index() const

Returns the index of this column type.

Returns Index.

bool cubos::core::ecs::ColumnId::operator==(const ColumnId& other) const defaulted

Compares two column type identifiers for equality.

Parameters
other Other column type identifier.
Returns Whether the two column type identifiers are equal.