|
| basic_storage () |
| Default constructor.
|
|
| basic_storage (const allocator_type &allocator) |
| Constructs an empty container with a given allocator.
|
|
| basic_storage (basic_storage &&other) noexcept=default |
| Move constructor.
|
|
| basic_storage (basic_storage &&other, const allocator_type &allocator) noexcept |
| Allocator-extended move constructor.
|
|
basic_storage & | operator= (basic_storage &&other) noexcept=default |
| Move assignment operator.
|
|
constexpr allocator_type | get_allocator () const noexcept |
| Returns the associated allocator.
|
|
void | get (const entity_type entt) const noexcept |
| Returns the object assigned to an entity, that is void .
|
|
std::tuple | get_as_tuple (const entity_type entt) const noexcept |
| Returns an empty tuple.
|
|
template<typename... Args> |
void | emplace (const entity_type entt, Args &&...) |
| Assigns an entity to a storage and constructs its object.
|
|
template<typename... Func> |
void | patch (const entity_type entt, Func &&...func) |
| Updates the instance assigned to a given entity in-place.
|
|
template<typename It , typename... Args> |
void | insert (It first, It last, Args &&...) |
| Assigns entities to a storage.
|
|
iterable | each () noexcept |
| Returns an iterable object to use to visit a storage.
|
|
const_iterable | each () const noexcept |
| Returns an iterable object to use to visit a storage.
|
|
reverse_iterable | reach () noexcept |
| Returns a reverse iterable object to use to visit a storage.
|
|
const_reverse_iterable | reach () const noexcept |
| Returns a reverse iterable object to use to visit a storage.
|
|
| basic_sparse_set () |
| Default constructor.
|
|
| basic_sparse_set (const allocator_type &allocator) |
| Constructs an empty container with a given allocator.
|
|
| basic_sparse_set (deletion_policy pol, const allocator_type &allocator={}) |
| Constructs an empty container with the given policy and allocator.
|
|
| basic_sparse_set (const type_info &elem, deletion_policy pol=deletion_policy::swap_and_pop, const allocator_type &allocator={}) |
| Constructs an empty container with the given value type, policy and allocator.
|
|
| basic_sparse_set (basic_sparse_set &&other) noexcept |
| Move constructor.
|
|
| basic_sparse_set (basic_sparse_set &&other, const allocator_type &allocator) noexcept |
| Allocator-extended move constructor.
|
|
virtual | ~basic_sparse_set () |
| Default destructor.
|
|
basic_sparse_set & | operator= (basic_sparse_set &&other) noexcept |
| Move assignment operator.
|
|
void | swap (basic_sparse_set &other) |
| Exchanges the contents with those of a given sparse set.
|
|
constexpr allocator_type | get_allocator () const noexcept |
| Returns the associated allocator.
|
|
deletion_policy | policy () const noexcept |
| Returns the deletion policy of a sparse set.
|
|
size_type | free_list () const noexcept |
| Returns the head of the free list, if any.
|
|
void | free_list (const size_type len) noexcept |
| Sets the head of the free list, if possible.
|
|
virtual void | reserve (const size_type cap) |
| Increases the capacity of a sparse set.
|
|
virtual size_type | capacity () const noexcept |
| Returns the number of elements that a sparse set has currently allocated space for.
|
|
virtual void | shrink_to_fit () |
| Requests the removal of unused capacity.
|
|
size_type | extent () const noexcept |
| Returns the extent of a sparse set.
|
|
size_type | size () const noexcept |
| Returns the number of elements in a sparse set.
|
|
bool | empty () const noexcept |
| Checks whether a sparse set is empty.
|
|
bool | contiguous () const noexcept |
| Checks whether a sparse set is fully packed.
|
|
pointer | data () const noexcept |
| Direct access to the internal packed array.
|
|
iterator | begin () const noexcept |
| Returns an iterator to the beginning.
|
|
iterator | begin (int) const noexcept |
| Returns an iterator to the beginning. Useful only in case of swap-only policy.
|
|
const_iterator | cbegin () const noexcept |
| Returns an iterator to the beginning.
|
|
const_iterator | cbegin (int) const noexcept |
| Returns an iterator to the beginning. Useful only in case of swap-only policy.
|
|
iterator | end () const noexcept |
| Returns an iterator to the end.
|
|
iterator | end (int) const noexcept |
| Returns an iterator to the end. Useful only in case of swap-only policy.
|
|
const_iterator | cend () const noexcept |
| Returns an iterator to the end.
|
|
const_iterator | cend (int) const noexcept |
| Returns an iterator to the end. Useful only in case of swap-only policy.
|
|
reverse_iterator | rbegin () const noexcept |
| Returns a reverse iterator to the beginning.
|
|
reverse_iterator | rbegin (int) const noexcept |
| Returns a reverse iterator to the beginning. Useful only in case of swap-only policy.
|
|
const_reverse_iterator | crbegin () const noexcept |
| Returns a reverse iterator to the beginning.
|
|
const_reverse_iterator | crbegin (int) const noexcept |
| Returns a reverse iterator to the beginning. Useful only in case of swap-only policy.
|
|
reverse_iterator | rend () const noexcept |
| Returns a reverse iterator to the end.
|
|
reverse_iterator | rend (int) const noexcept |
| Returns a reverse iterator to the beginning. Useful only in case of swap-only policy.
|
|
const_reverse_iterator | crend () const noexcept |
| Returns a reverse iterator to the end.
|
|
const_reverse_iterator | crend (int) const noexcept |
| Returns a reverse iterator to the beginning. Useful only in case of swap-only policy.
|
|
const_iterator | find (const entity_type entt) const noexcept |
| Finds an entity.
|
|
bool | contains (const entity_type entt) const noexcept |
| Checks if a sparse set contains an entity.
|
|
version_type | current (const entity_type entt) const noexcept |
| Returns the contained version for an identifier.
|
|
size_type | index (const entity_type entt) const noexcept |
| Returns the position of an entity in a sparse set.
|
|
entity_type | at (const size_type pos) const noexcept |
| Returns the entity at specified location, with bounds checking.
|
|
entity_type | operator[] (const size_type pos) const noexcept |
| Returns the entity at specified location, without bounds checking.
|
|
const void * | value (const entity_type entt) const noexcept |
| Returns the element assigned to an entity, if any.
|
|
void * | value (const entity_type entt) noexcept |
| Returns the element assigned to an entity, if any.
|
|
iterator | push (const entity_type entt, const void *elem=nullptr) |
| Assigns an entity to a sparse set.
|
|
iterator | push (It first, It last) |
| Assigns one or more entities to a sparse set.
|
|
version_type | bump (const entity_type entt) |
| Bump the version number of an entity.
|
|
void | erase (const entity_type entt) |
| Erases an entity from a sparse set.
|
|
void | erase (It first, It last) |
| Erases entities from a set.
|
|
bool | remove (const entity_type entt) |
| Removes an entity from a sparse set if it exists.
|
|
size_type | remove (It first, It last) |
| Removes entities from a sparse set if they exist.
|
|
void | compact () |
| Removes all tombstones from a sparse set.
|
|
void | swap_elements (const entity_type lhs, const entity_type rhs) |
| Swaps two entities in a sparse set.
|
|
void | sort_n (const size_type length, Compare compare, Sort algo=Sort{}, Args &&...args) |
| Sort the first count elements according to the given comparison function.
|
|
void | sort (Compare compare, Sort algo=Sort{}, Args &&...args) |
| Sort all elements according to the given comparison function.
|
|
void | sort_as (It first, It last) |
| Sort entities according to their order in a range.
|
|
void | sort_as (const basic_sparse_set &other) |
| Sort entities according to their order in a range.
|
|
void | clear () |
| Clears a sparse set.
|
|
const type_info & | type () const noexcept |
| Returned value type, if any.
|
|
virtual void | bind (any) noexcept |
| Forwards variables to derived classes, if any.
|
|
template<
typename Type,
typename Entity,
typename Allocator>
class entt::basic_storage< Type, Entity, Allocator, std::enable_if_t< component_traits< Type >::page_size==0u > >
Default constructor.
Definition at line 772 of file storage.hpp.