|
|
GAIA_NODISCARD pointer | data () noexcept |
| |
|
GAIA_NODISCARD const_pointer | data () const noexcept |
| |
|
GAIA_NODISCARD reference | operator[] (size_type index) |
| |
|
GAIA_NODISCARD const_reference | operator[] (size_type index) const |
| |
|
void | clear () |
| |
|
GAIA_NODISCARD size_type | get_next_free_item () const noexcept |
| |
|
GAIA_NODISCARD size_type | get_free_items () const noexcept |
| |
|
GAIA_NODISCARD size_type | item_count () const noexcept |
| |
|
GAIA_NODISCARD size_type | size () const noexcept |
| |
|
GAIA_NODISCARD bool | empty () const noexcept |
| |
|
GAIA_NODISCARD size_type | capacity () const noexcept |
| |
|
GAIA_NODISCARD iterator | begin () noexcept |
| |
|
GAIA_NODISCARD const_iterator | begin () const noexcept |
| |
|
GAIA_NODISCARD const_iterator | cbegin () const noexcept |
| |
|
GAIA_NODISCARD iterator | end () noexcept |
| |
|
GAIA_NODISCARD const_iterator | end () const noexcept |
| |
|
GAIA_NODISCARD const_iterator | cend () const noexcept |
| |
|
void | reserve (size_type cap) |
| |
| GAIA_NODISCARD TItemHandle | alloc (void *ctx) |
| | Allocates a new item in the list.
|
| |
| GAIA_NODISCARD TItemHandle | alloc () |
| | Allocates a new item in the list.
|
| |
| TListItem & | free (TItemHandle handle) |
| | Invalidates handle. Every time an item is deallocated its generation is increased by one.
|
| |
|
void | validate () const |
| | Verifies that the implicit linked list is valid.
|
| |
template<typename TListItem, typename TItemHandle, typename TInternalStorage = darray_ilist_storage<TListItem>>
struct gaia::cnt::ilist< TListItem, TItemHandle, TInternalStorage >
Implicit list. Rather than with pointers, items.
- Template Parameters
-
| TListItem | are linked together through an internal indexing mechanism. To the outside world they are presented as |
| TItemHandle. | All items are stored in a container instance of the type |
| TInternalStorage. | |
| TListItem | needs to expose slot metadata through ilist_item_traits<TListItem> and expose a constructor that initializes the slot index and generation. |