|
| auto | on_construct () noexcept |
| | Returns a sink object. More...
|
| |
| auto | on_update () noexcept |
| | Returns a sink object for the given type. More...
|
| |
| auto | on_destroy () noexcept |
| | Returns a sink object for the given type. More...
|
| |
| template<typename... Args> |
| decltype(auto) | emplace (const entity_type entity, Args &&... args) |
| | Assigns an entity to a pool. More...
|
| |
| template<typename It , typename... Args> |
| void | insert (It first, It last, Args &&... args) |
| | Assigns multiple entities to a pool. More...
|
| |
| void | erase (const entity_type entity) override |
| | Removes an entity from a pool. More...
|
| |
| template<typename It > |
| void | erase (It first, It last) |
| | Removes multiple entities from a pool. More...
|
| |
| template<typename... Func> |
| decltype(auto) | patch (const entity_type entity, [[maybe_unused]] Func &&... func) |
| | Patches the given instance for an entity. More...
|
| |
| decltype(auto) | replace (const entity_type entity, object_type value) |
| | Replaces the object associated with an entity in a pool. More...
|
| |
| void | reserve (const size_type cap) |
| | Increases the capacity of a storage. More...
|
| |
|
void | shrink_to_fit () |
| | Requests the removal of unused capacity.
|
| |
| const object_type * | raw () const noexcept |
| | Direct access to the array of objects. More...
|
| |
| object_type * | raw () noexcept |
| | Direct access to the array of objects. More...
|
| |
| const_iterator | cbegin () const noexcept |
| | Returns an iterator to the beginning. More...
|
| |
| const_iterator | begin () const noexcept |
| | Returns an iterator to the beginning. More...
|
| |
| iterator | begin () noexcept |
| | Returns an iterator to the beginning. More...
|
| |
| const_iterator | cend () const noexcept |
| | Returns an iterator to the end. More...
|
| |
| const_iterator | end () const noexcept |
| | Returns an iterator to the end. More...
|
| |
| iterator | end () noexcept |
| | Returns an iterator to the end. More...
|
| |
| const_reverse_iterator | crbegin () const noexcept |
| | Returns a reverse iterator to the beginning. More...
|
| |
| const_reverse_iterator | rbegin () const noexcept |
| | Returns a reverse iterator to the beginning. More...
|
| |
| reverse_iterator | rbegin () noexcept |
| | Returns a reverse iterator to the beginning. More...
|
| |
| const_reverse_iterator | crend () const noexcept |
| | Returns a reverse iterator to the end. More...
|
| |
| const_reverse_iterator | rend () const noexcept |
| | Returns a reverse iterator to the end. More...
|
| |
| reverse_iterator | rend () noexcept |
| | Returns a reverse iterator to the end. More...
|
| |
| const object_type & | get (const entity_type entt) const |
| | Returns the object associated with an entity. More...
|
| |
| object_type & | get (const entity_type entt) |
| | Returns the object associated with an entity. More...
|
| |
| const object_type * | try_get (const entity_type entt) const |
| | Returns a pointer to the object associated with an entity, if any. More...
|
| |
| object_type * | try_get (const entity_type entt) |
| | Returns a pointer to the object associated with an entity, if any. More...
|
| |
| template<typename... Args> |
| void | emplace (const entity_type entt, Args &&... args) |
| | Assigns an entity to a storage and constructs its object. More...
|
| |
| template<typename It > |
| void | insert (It first, It last, const object_type &value={}) |
| | Assigns one or more entities to a storage and constructs their objects from a given instance. More...
|
| |
| template<typename EIt , typename CIt > |
| void | insert (EIt first, EIt last, CIt from, CIt to) |
| | Assigns one or more entities to a storage and constructs their objects from a given range. More...
|
| |
| void | erase (const entity_type entt) override |
| | Removes an entity from a storage and destroys its object. More...
|
| |
| void | swap (const entity_type lhs, const entity_type rhs) override |
| | Swaps entities and objects in the internal packed arrays. More...
|
| |
| template<typename Compare , typename Sort = std_sort, typename... Args> |
| void | sort (iterator first, iterator last, Compare compare, Sort algo=Sort{}, Args &&... args) |
| | Sort elements according to the given comparison function. More...
|
| |
|
void | clear () |
| | Clears a storage.
|
| |
|
| sparse_set ()=default |
| | Default constructor.
|
| |
|
| sparse_set (sparse_set &&)=default |
| | Default move constructor.
|
| |
|
virtual | ~sparse_set ()=default |
| | Default destructor.
|
| |
| sparse_set & | operator= (sparse_set &&)=default |
| | Default move assignment operator. More...
|
| |
| void | reserve (const size_type cap) |
| | Increases the capacity of a sparse set. More...
|
| |
| size_type | capacity () const noexcept |
| | Returns the number of elements that a sparse set has currently allocated space for. More...
|
| |
|
void | shrink_to_fit () |
| | Requests the removal of unused capacity.
|
| |
| size_type | extent () const noexcept |
| | Returns the extent of a sparse set. More...
|
| |
| size_type | size () const noexcept |
| | Returns the number of elements in a sparse set. More...
|
| |
| bool | empty () const noexcept |
| | Checks whether a sparse set is empty. More...
|
| |
| const entity_type * | data () const noexcept |
| | Direct access to the internal packed array. More...
|
| |
| iterator | begin () const noexcept |
| | Returns an iterator to the beginning. More...
|
| |
| iterator | end () const noexcept |
| | Returns an iterator to the end. More...
|
| |
| reverse_iterator | rbegin () const noexcept |
| | Returns a reverse iterator to the beginning. More...
|
| |
| reverse_iterator | rend () const noexcept |
| | Returns a reverse iterator to the end. More...
|
| |
| iterator | find (const entity_type entt) const |
| | Finds an entity. More...
|
| |
| bool | contains (const entity_type entt) const |
| | Checks if a sparse set contains an entity. More...
|
| |
| size_type | index (const entity_type entt) const |
| | Returns the position of an entity in a sparse set. More...
|
| |
| void | emplace (const entity_type entt) |
| | Assigns an entity to a sparse set. More...
|
| |
| template<typename It > |
| void | insert (It first, It last) |
| | Assigns one or more entities to a sparse set. More...
|
| |
| template<typename Compare , typename Sort = std_sort, typename... Args> |
| void | sort (iterator first, iterator last, Compare compare, Sort algo=Sort{}, Args &&... args) |
| | Sort elements according to the given comparison function. More...
|
| |
| template<typename Apply , typename Compare , typename Sort = std_sort, typename... Args> |
| void | arrange (iterator first, iterator last, Apply apply, Compare compare, Sort algo=Sort{}, Args &&... args) |
| | Sort elements according to the given comparison function. More...
|
| |
| void | respect (const sparse_set &other) |
| | Sort entities according to their order in another sparse set. More...
|
| |
|
void | clear () noexcept |
| | Clears a sparse set.
|
| |
template<typename Entity, typename Type>
struct entt::default_pool< Entity, Type >
Default pool implementation.
- Template Parameters
-
| Entity | A valid entity type (see entt_traits for more details). |
| Type | Type of objects assigned to the entities. |
Definition at line 23 of file pool.hpp.