Small reverse-lookup bucket for entity-to-archetype matches. Most buckets contain one archetype, so keep that record inline and spill only when needed.
More...
#include <query_common.h>
|
|
using | value_type = ComponentIndexEntry |
| | Stored reverse-index record type.
|
| |
|
using | size_type = uint32_t |
| | Unsigned element-count and index type.
|
| |
Small reverse-lookup bucket for entity-to-archetype matches. Most buckets contain one archetype, so keep that record inline and spill only when needed.
◆ back() [1/2]
Returns the final read-only record.
- Returns
- Last record in the non-empty bucket.
◆ back() [2/2]
Returns the final mutable record.
- Returns
- Last record in the non-empty bucket.
◆ begin() [1/2]
| GAIA_NODISCARD const ComponentIndexEntry * gaia::ecs::ComponentIndexEntryArray::begin |
( |
| ) |
const |
|
inlinenoexcept |
Returns a read-only iterator to the first record.
- Returns
- Pointer to the first stored record.
◆ begin() [2/2]
Returns a mutable iterator to the first record.
- Returns
- Pointer to the first stored record.
◆ data() [1/2]
Returns read-only contiguous record storage.
- Returns
- Pointer to the inline record or spill storage.
◆ data() [2/2]
Returns mutable contiguous record storage.
- Returns
- Pointer to the inline record or spill storage.
◆ empty()
| GAIA_NODISCARD bool gaia::ecs::ComponentIndexEntryArray::empty |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether the bucket contains no reverse-index records.
- Returns
- True when size is zero.
◆ end() [1/2]
Returns a read-only iterator past the final record.
- Returns
- Pointer one past the last stored record.
◆ end() [2/2]
Returns a mutable iterator past the final record.
- Returns
- Pointer one past the last stored record.
◆ operator[]() [1/2]
Returns a read-only record by index.
- Parameters
-
| idx | Zero-based record index. |
- Returns
- Record at idx.
◆ operator[]() [2/2]
Returns a mutable record by index.
- Parameters
-
| idx | Zero-based record index. |
- Returns
- Record at idx.
◆ push_back()
Appends a reverse-index record, spilling inline storage when necessary.
- Parameters
-
◆ size()
| GAIA_NODISCARD size_type gaia::ecs::ComponentIndexEntryArray::size |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of reverse-index records.
- Returns
- Number of stored records.
The documentation for this class was generated from the following file: