|
| | basic_sigh_mixin () |
| | Default constructor.
|
| |
| | basic_sigh_mixin (const allocator_type &allocator) |
| | Constructs an empty storage with a given allocator.
|
| |
|
| basic_sigh_mixin (const basic_sigh_mixin &)=delete |
| | Default copy constructor, deleted on purpose.
|
| |
| | basic_sigh_mixin (basic_sigh_mixin &&other) noexcept |
| | Move constructor.
|
| |
| | basic_sigh_mixin (basic_sigh_mixin &&other, const allocator_type &allocator) |
| | Allocator-extended move constructor.
|
| |
|
| ~basic_sigh_mixin () override=default |
| | Default destructor.
|
| |
| basic_sigh_mixin & | operator= (const basic_sigh_mixin &)=delete |
| | Default copy assignment operator, deleted on purpose.
|
| |
| basic_sigh_mixin & | operator= (basic_sigh_mixin &&other) noexcept |
| | Move assignment operator.
|
| |
| void | swap (basic_sigh_mixin &other) noexcept |
| | Exchanges the contents with those of a given storage.
|
| |
| auto | on_construct () noexcept |
| | Returns a sink object.
|
| |
| auto | on_update () noexcept |
| | Returns a sink object.
|
| |
| auto | on_destroy () noexcept |
| | Returns a sink object.
|
| |
| | operator bool () const noexcept |
| | Checks if a mixin refers to a valid registry.
|
| |
| const registry_type & | registry () const noexcept |
| | Returns a pointer to the underlying registry, if any.
|
| |
| registry_type & | registry () noexcept |
| | Returns a pointer to the underlying registry, if any.
|
| |
| auto | generate () |
| | Creates a new identifier or recycles a destroyed one.
|
| |
| entity_type | generate (const entity_type hint) |
| | Creates a new identifier or recycles a destroyed one.
|
| |
| template<typename It> |
| void | generate (It first, It last) |
| | Assigns each element in a range an identifier.
|
| |
| template<typename... Args> |
| decltype(auto) | emplace (const entity_type entt, Args &&...args) |
| | Assigns an entity to a storage and constructs its object.
|
| |
| template<typename... Func> |
| decltype(auto) | 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 &&...args) |
| | Assigns one or more entities to a storage and constructs their objects from a given instance.
|
| |
template<typename Type, typename Registry>
class entt::basic_sigh_mixin< Type, Registry >
Mixin type used to add signal support to storage types.
The function type of a listener is equivalent to:
Fast and reliable entity-component system.
typename underlying_type::entity_type entity_type
Underlying entity identifier.
This applies to all signals made available.
- Template Parameters
-
| Type | Underlying storage type. |
| Registry | Basic registry type. |
Definition at line 57 of file mixin.hpp.
template<typename Type, typename Registry>
template<typename It, typename... Args>
Assigns one or more entities to a storage and constructs their objects from a given instance.
- Template Parameters
-
| It | Type of input iterator. |
| Args | Types of arguments to forward to the underlying storage. |
- Parameters
-
| 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 forward to the underlying storage. |
Definition at line 369 of file mixin.hpp.