cubos::core::ecs::SparseRelationTableId struct

Identifies a sparse relation table.

Constructors, destructors, conversion operators

SparseRelationTableId() defaulted
Default constructor.
SparseRelationTableId(DataTypeId dataType, ArchetypeId from, ArchetypeId to, int depth = 0)
Constructs.

Public functions

auto operator==(const SparseRelationTableId& other) const -> bool defaulted
Compares with another identifier.

Function documentation

cubos::core::ecs::SparseRelationTableId::SparseRelationTableId(DataTypeId dataType, ArchetypeId from, ArchetypeId to, int depth = 0)

Constructs.

Parameters
dataType Relation data type.
from From archetype identifier.
to To archetype identifier.
depth Depth of the relation. Used in tree relations, always 0 for others.

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

Compares with another identifier.

Parameters
other Identifier.
Returns Whether they're equal.