|
|
using | value_type = T |
| |
|
using | reference = T & |
| |
|
using | const_reference = const T & |
| |
|
using | pointer = T * |
| |
|
using | const_pointer = const T * |
| |
|
using | view_policy = mem::data_view_policy_aos< T > |
| |
|
using | difference_type = detail::difference_type |
| |
|
using | size_type = detail::size_type |
| |
|
using | iterator = sparse_iterator< T, PageCapacity, Allocator > |
| |
|
using | const_iterator = const_sparse_iterator< T, PageCapacity, Allocator > |
| |
|
using | page_type = detail::sparse_page< T, PageCapacity, Allocator > |
| |
|
|
| sparse_storage (const sparse_storage &other) |
| |
|
sparse_storage & | operator= (const sparse_storage &other) |
| |
|
| sparse_storage (sparse_storage &&other) noexcept |
| |
|
sparse_storage & | operator= (sparse_storage &&other) noexcept |
| |
|
GAIA_NODISCARD decltype(auto) | operator[] (sparse_id sid) noexcept |
| |
|
GAIA_NODISCARD decltype(auto) | operator[] (sparse_id sid) const noexcept |
| |
| GAIA_NODISCARD bool | has (sparse_id sid) const |
| | Checks if an item with a given sparse id.
|
| |
| GAIA_NODISCARD bool | has (const T &arg) const |
| | Checks if an item arg exists within the storage.
|
| |
| template<typename TType > |
| decltype(auto) | add (TType &&arg) |
| | Inserts the item arg into the storage.
|
| |
| decltype(auto) | set (sparse_id sid) |
| | Update the record at the index sid.
|
| |
| void | del (sparse_id sid) noexcept |
| | Removes the item at the index sid from the storage.
|
| |
| void | del (const T &arg) noexcept |
| | Removes the item arg from the storage.
|
| |
|
void | clear () |
| | Clears the storage.
|
| |
|
GAIA_NODISCARD size_type | size () const noexcept |
| | Returns the number of items inserted into the storage.
|
| |
|
GAIA_NODISCARD bool | empty () const noexcept |
| | Checks if the storage is empty (no items inserted)
|
| |
|
GAIA_NODISCARD decltype(auto) | front () noexcept |
| |
|
GAIA_NODISCARD decltype(auto) | front () const noexcept |
| |
|
GAIA_NODISCARD decltype(auto) | back () noexcept |
| |
|
GAIA_NODISCARD decltype(auto) | back () const noexcept |
| |
|
GAIA_NODISCARD auto | begin () noexcept |
| |
|
GAIA_NODISCARD auto | begin () const noexcept |
| |
|
GAIA_NODISCARD auto | cbegin () const noexcept |
| |
|
GAIA_NODISCARD auto | end () noexcept |
| |
|
GAIA_NODISCARD auto | end () const noexcept |
| |
|
GAIA_NODISCARD auto | cend () const noexcept |
| |
|
GAIA_NODISCARD bool | operator== (const sparse_storage &other) const |
| |
|
GAIA_NODISCARD constexpr bool | operator!= (const sparse_storage &other) const |
| |
template<typename T, uint32_t PageCapacity = 4096, typename Allocator = mem::DefaultAllocatorAdaptor, typename = void>
class gaia::cnt::sparse_storage< T, PageCapacity, Allocator, typename >
Array with variable size of elements of type.
- Template Parameters
-
| T | allocated on heap. Allocates enough memory to support |
| PageCapacity | elements. Uses |
| Allocator | to allocate memory. |