![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Access policy for implicit-list slot index and generation metadata. More...
#include <ilist.h>
Static Public Member Functions | |
| static GAIA_NODISCARD uint32_t | idx (const TListItem &item) noexcept |
| Returns an item's slot index or free-list link. | |
| static void | set_idx (TListItem &item, uint32_t value) noexcept |
| Sets an item's slot index or free-list link. | |
| static GAIA_NODISCARD uint32_t | gen (const TListItem &item) noexcept |
| Returns an item's generation. | |
| static void | set_gen (TListItem &item, uint32_t value) noexcept |
| Sets an item's generation. | |
Access policy for implicit-list slot index and generation metadata.
Default access policy for item types exposing idx and gen or data.gen members.
| TListItem | Implicit-list item type. |
|
inlinestaticnoexcept |
Returns an item's generation.
| item | Item whose generation is read. |
|
inlinestaticnoexcept |
Returns an item's slot index or free-list link.
| item | Item whose index is read. |
|
inlinestaticnoexcept |
Sets an item's generation.
| item | Item whose generation is updated. |
| value | New generation value. |
|
inlinestaticnoexcept |
Sets an item's slot index or free-list link.
| item | Item whose index is updated. |
| value | Slot index or next free slot. |