|
EnTT 3.16.0
|
Signal connection helper for registries. More...
#include <helper.hpp>


Public Types | |
| using | registry_type = Registry |
| Registry type. | |
| Public Types inherited from entt::sigh_helper< Registry > | |
| using | registry_type = Registry |
| Registry type. | |
Public Member Functions | |
| sigh_helper (registry_type &ref, const id_type id=type_hash< Type >::value()) | |
| Constructs a helper for a given registry. | |
| template<auto Candidate, typename... Args> | |
| auto | on_construct (Args &&...args) |
| Forwards the call to on_construct on the underlying storage. | |
| template<auto Candidate, typename... Args> | |
| auto | on_update (Args &&...args) |
| Forwards the call to on_update on the underlying storage. | |
| template<auto Candidate, typename... Args> | |
| auto | on_destroy (Args &&...args) |
| Forwards the call to on_destroy on the underlying storage. | |
| Public Member Functions inherited from entt::sigh_helper< Registry > | |
| sigh_helper (registry_type &ref) | |
| Constructs a helper for a given registry. | |
| template<typename Type> | |
| auto | with (const id_type id=type_hash< Type >::value()) noexcept |
| Binds a properly initialized helper to a given signal type. | |
| registry_type & | registry () noexcept |
| Returns a reference to the underlying registry. | |
Signal connection helper for registries.
| Registry | Basic registry type. |
| Type | Type of signal to connect listeners to. |
Definition at line 191 of file helper.hpp.
| using entt::sigh_helper< Registry, Type >::registry_type = Registry |
Registry type.
Definition at line 193 of file helper.hpp.
|
inline |
Constructs a helper for a given registry.
| ref | A valid reference to a registry. |
| id | Optional name for the underlying storage to use. |
Definition at line 200 of file helper.hpp.
|
inline |
Forwards the call to on_construct on the underlying storage.
| Candidate | Function or member to connect. |
| Args | Type of class or type of payload, if any. |
| args | A valid object that fits the purpose, if any. |
Definition at line 212 of file helper.hpp.
|
inline |
Forwards the call to on_destroy on the underlying storage.
| Candidate | Function or member to connect. |
| Args | Type of class or type of payload, if any. |
| args | A valid object that fits the purpose, if any. |
Definition at line 238 of file helper.hpp.
|
inline |
Forwards the call to on_update on the underlying storage.
| Candidate | Function or member to connect. |
| Args | Type of class or type of payload, if any. |
| args | A valid object that fits the purpose, if any. |
Definition at line 225 of file helper.hpp.