Clementine
|
Mixin type to use to wrap basic storage classes. More...
#include <entt.hpp>
Public Types | |
using | value_type = typename Type::value_type |
Type of the objects associated with the entities. | |
using | entity_type = typename Type::entity_type |
Underlying entity identifier. | |
using | storage_category = typename Type::storage_category |
Storage category. | |
Public Member Functions | |
template<typename... Args> | |
decltype(auto) | emplace (basic_registry< entity_type > &, const entity_type entity, Args &&... args) |
Assigns entities to a storage. More... | |
template<typename It , typename... Args> | |
void | insert (basic_registry< entity_type > &, It first, It last, Args &&... args) |
Assigns entities to a storage. More... | |
void | remove (basic_registry< entity_type > &, const entity_type entity) |
Removes entities from a storage. More... | |
template<typename It > | |
void | remove (basic_registry< entity_type > &, It first, It last) |
Removes entities from a storage. More... | |
template<typename... Func> | |
decltype(auto) | patch (basic_registry< entity_type > &, const entity_type entity, [[maybe_unused]] Func &&... func) |
Patches the given instance for an entity. More... | |
Mixin type to use to wrap basic storage classes.
Type | The type of the underlying storage. |
|
inline |
Assigns entities to a storage.
Args | Types of arguments to use to construct the object. |
entity | A valid entity identifier. |
args | Parameters to use to initialize the object. |
|
inline |
Assigns entities to a storage.
It | Type of input iterator. |
Args | Types of arguments to use to construct the objects associated with the entities. |
first | An iterator to the first element of the range of entities. |
last | An iterator past the last element of the range of entities. |
args | Parameters to use to initialize the objects associated with the entities. |
|
inline |
Patches the given instance for an entity.
Func | Types of the function objects to invoke. |
entity | A valid entity identifier. |
func | Valid function objects. |
|
inline |
Removes entities from a storage.
entity | A valid entity identifier. |
|
inline |
Removes entities from a storage.
It | Type of input iterator. |
first | An iterator to the first element of the range of entities. |
last | An iterator past the last element of the range of entities. |