|
| 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 | emplace () |
| Emplace elements into a storage.
|
|
template<typename... Args> |
std::conditional_t< std::is_same_v< typename underlying_type::element_type, entity_type >, entity_type, decltype(std::declval< underlying_type >().get({}))> | 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.
|
|
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.
constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...args)
Uses-allocator construction utility (waiting for C++20).
This applies to all signals made available.
- Template Parameters
-
Type | Underlying storage type. |
Registry | Basic registry type. |
Definition at line 71 of file mixin.hpp.