EnTT 3.13.1
|
Mixin type used to add signal support to storage types. More...
#include <mixin.hpp>
Public Types | |
using | allocator_type = typename underlying_type::allocator_type |
Allocator type. | |
using | entity_type = typename underlying_type::entity_type |
Underlying entity identifier. | |
using | registry_type = owner_type |
Expected registry type. | |
Public Member Functions | |
basic_sigh_mixin () | |
Default constructor. | |
basic_sigh_mixin (const allocator_type &allocator) | |
Constructs an empty storage with a given allocator. | |
basic_sigh_mixin (basic_sigh_mixin &&other) noexcept | |
Move constructor. | |
basic_sigh_mixin (basic_sigh_mixin &&other, const allocator_type &allocator) noexcept | |
Allocator-extended move constructor. | |
basic_sigh_mixin & | operator= (basic_sigh_mixin &&other) noexcept |
Move assignment operator. | |
void | swap (basic_sigh_mixin &other) |
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. | |
auto | emplace () |
Emplace elements into a storage. | |
template<typename... Args> | |
decltype(auto) | emplace (const entity_type hint, Args &&...args) |
Emplace elements into a storage. | |
template<typename... Func> | |
decltype(auto) | patch (const entity_type entt, Func &&...func) |
Patches the given instance for an entity. | |
template<typename It , typename... Args> | |
void | insert (It first, It last, Args &&...args) |
Emplace elements into a storage. | |
void | bind (any value) noexcept final |
Forwards variables to derived classes, if any. | |
Mixin type used to add signal support to storage types.
The function type of a listener is equivalent to:
This applies to all signals made available.
Type | Underlying storage type. |
Registry | Basic registry type. |
using entt::basic_sigh_mixin< Type, Registry >::allocator_type = typename underlying_type::allocator_type |
using entt::basic_sigh_mixin< Type, Registry >::entity_type = typename underlying_type::entity_type |
using entt::basic_sigh_mixin< Type, Registry >::registry_type = owner_type |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinefinalnoexcept |
|
inline |
|
inline |
Emplace elements into a storage.
The behavior of this operation depends on the underlying storage type (for example, components vs entities).
Refer to the specific documentation for more details.
Args | Types of arguments to forward to the underlying storage. |
hint | A valid identifier. |
args | Parameters to forward to the underlying storage. |
Emplace elements into a storage.
The behavior of this operation depends on the underlying storage type (for example, components vs entities).
Refer to the specific documentation for more details.
It | Iterator type (as required by the underlying storage type). |
Args | Types of arguments to forward to the underlying storage. |
first | An iterator to the first element of the range. |
last | An iterator past the last element of the range. |
args | Parameters to use to forward to the underlying storage. |
|
inlinenoexcept |
Returns a sink object.
The sink returned by this function can be used to receive notifications whenever a new instance is created and assigned to an entity.
Listeners are invoked after the object has been assigned to the entity.
|
inlinenoexcept |
Returns a sink object.
The sink returned by this function can be used to receive notifications whenever an instance is removed from an entity and thus destroyed.
Listeners are invoked before the object has been removed from the entity.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |