class
TypeIndexStores the ids of tables of a given type.
Public functions
- void insert(SparseRelationTableId id)
- Inserts a new table identifier into the index.
- auto from() const -> const auto&
- Returns a reference to a map which maps archetypes to the tables where it is the 'from' archetype.
- auto to() const -> const auto&
- Returns a reference to a map which maps archetypes to the tables where it is the 'to' archetype.
- auto maxDepth() const -> int
- Returns the maximum depth of the tables in this index.
Function documentation
void cubos:: core:: ecs:: SparseRelationTableRegistry:: TypeIndex:: insert(SparseRelationTableId id)
Inserts a new table identifier into the index.
Parameters | |
---|---|
id | Table identifier. |
const auto& cubos:: core:: ecs:: SparseRelationTableRegistry:: TypeIndex:: from() const
Returns a reference to a map which maps archetypes to the tables where it is the 'from' archetype.
Returns | Map from archetypes to vectors of table identifiers. |
---|
const auto& cubos:: core:: ecs:: SparseRelationTableRegistry:: TypeIndex:: to() const
Returns a reference to a map which maps archetypes to the tables where it is the 'to' archetype.
Returns | Map from archetypes to vectors of table identifiers. |
---|
int cubos:: core:: ecs:: SparseRelationTableRegistry:: TypeIndex:: maxDepth() const
Returns the maximum depth of the tables in this index.
Returns | Maximum depth. |
---|