EnTT 3.13.0
|
EnTT
default namespace.
More...
Classes | |
class | adjacency_matrix |
Basic implementation of a directed adjacency matrix. More... | |
struct | adl_meta_pointer_like |
Fake ADL based lookup function for meta pointer-like types. More... | |
struct | allocation_deleter |
Deleter for allocator-aware unique pointers (waiting for C++20). More... | |
struct | as_cref_t |
Empty class type used to request the as cref policy. More... | |
class | as_group |
Converts a registry to a group. More... | |
struct | as_is_t |
Empty class type used to request the as-is policy. More... | |
struct | as_ref_t |
Empty class type used to request the as ref policy. More... | |
class | as_view |
Converts a registry to a view. More... | |
struct | as_void_t |
Empty class type used to request the as void policy. More... | |
class | basic_any |
A SBO friendly, type-safe container for single values of any type. More... | |
struct | basic_collector |
Collector. More... | |
struct | basic_collector< matcher< type_list< Reject... >, type_list< Require... >, Rule... >, Other... > |
Collector. More... | |
struct | basic_collector<> |
Collector. More... | |
class | basic_common_view |
Basic storage view implementation. More... | |
class | basic_continuous_loader |
Utility class for continuous loading. More... | |
class | basic_dispatcher |
Basic dispatcher implementation. More... | |
class | basic_entt_traits |
Common basic entity traits implementation. More... | |
class | basic_flow |
Utility class for creating task graphs. More... | |
class | basic_group |
Group. More... | |
class | basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > > |
Owning group. More... | |
class | basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > > |
Non-owning group. More... | |
struct | basic_handle |
Non-owning handle to an entity. More... | |
class | basic_hashed_string |
Zero overhead unique identifier. More... | |
struct | basic_meta_associative_container_traits |
General purpose implementation of meta associative container traits. More... | |
struct | basic_meta_sequence_container_traits |
General purpose implementation of meta sequence container traits. More... | |
class | basic_observer |
Observer. More... | |
class | basic_organizer |
Utility class for creating a static task graph. More... | |
class | basic_poly |
Static polymorphism made simple and within everyone's reach. More... | |
class | basic_registry |
Fast and reliable entity-component system. More... | |
class | basic_runtime_view |
Generic runtime view. More... | |
class | basic_scheduler |
Cooperative scheduler for processes. More... | |
class | basic_sigh_mixin |
Mixin type used to add signal support to storage types. More... | |
class | basic_snapshot |
Utility class to create snapshots from a registry. More... | |
class | basic_snapshot_loader |
Utility class to restore a snapshot as a whole. More... | |
class | basic_sparse_set |
Basic sparse set implementation. More... | |
class | basic_storage |
Basic storage implementation. More... | |
class | basic_storage< Entity, Entity, Allocator > |
Swap-only entity storage specialization. More... | |
class | basic_storage< Type, Entity, Allocator, std::enable_if_t< component_traits< Type >::page_size==0u > > |
Default constructor. More... | |
class | basic_storage_view |
Basic storage view implementation. More... | |
class | basic_view |
View implementation. More... | |
class | basic_view< get_t< Get >, exclude_t<>, std::void_t< std::enable_if_t<!Get::traits_type::in_place_delete > > > |
Storage view specialization. More... | |
class | basic_view< get_t< Get... >, exclude_t< Exclude... > > |
General purpose view. More... | |
struct | choice_t |
Utility class to disambiguate overloaded functions. More... | |
struct | choice_t< 0 > |
Utility class to disambiguate overloaded functions. More... | |
struct | component_traits |
Common way to access various properties of components. More... | |
class | compressed_pair |
A compressed pair. More... | |
struct | connect_arg_t |
Disambiguation tag for constructors and the like. More... | |
class | connection |
Connection class. More... | |
struct | constness_as |
Transcribes the constness of a type to another type. More... | |
struct | constness_as< To, const From > |
Transcribes the constness of a type to another type. More... | |
class | delegate |
Basic delegate implementation. More... | |
class | delegate< Ret(Args...)> |
Utility class to use to send around functions and members. More... | |
class | dense_map |
Associative container for key-value pairs with unique keys. More... | |
class | dense_set |
Associative container for unique objects of a given type. More... | |
struct | directed_tag |
Undirected graph category tag. More... | |
class | emitter |
General purpose event emitter. More... | |
struct | entt_traits |
Entity traits. More... | |
struct | enum_as_bitmask |
Enable bitmask support for enum classes. More... | |
struct | enum_as_bitmask< Type, std::void_t< decltype(Type::_entt_enum_as_bitmask)> > |
Enable bitmask support for enum classes. More... | |
struct | exclude_t |
Alias for exclusion lists. More... | |
class | family |
Dynamic identifier generator. More... | |
struct | forward_apply |
Utility class to forward-and-apply tuple objects. More... | |
struct | get_t |
Alias for lists of observed components. More... | |
class | ident |
Type integral identifiers. More... | |
struct | identity |
Identity function object (waiting for C++20). More... | |
struct | input_iterator_pointer |
Helper type to use as pointer with input iterators. More... | |
struct | insertion_sort |
Function object for performing insertion sort. More... | |
class | iota_iterator |
Plain iota iterator (waiting for C++20). More... | |
struct | is_applicable |
Same as std::is_invocable, but with tuples. More... | |
struct | is_applicable< Func, const Tuple< Args... > > |
Same as std::is_invocable, but with tuples. More... | |
struct | is_applicable< Func, Tuple< Args... > > |
Same as std::is_invocable, but with tuples. More... | |
struct | is_applicable_r |
Same as std::is_invocable_r, but with tuples for arguments. More... | |
struct | is_applicable_r< Ret, Func, std::tuple< Args... > > |
Same as std::is_invocable_r, but with tuples for arguments. More... | |
struct | is_complete |
Provides the member constant value to true if a given type is complete, false otherwise. More... | |
struct | is_complete< Type, std::void_t< decltype(sizeof(Type))> > |
Provides the member constant value to true if a given type is complete, false otherwise. More... | |
struct | is_ebco_eligible |
Provides the member constant value to true if a given type is both an empty and non-final class, false otherwise. More... | |
struct | is_equality_comparable |
Provides the member constant value to true if a given type is equality comparable, false otherwise. More... | |
struct | is_equality_comparable< const Type > |
Provides the member constant value to true if a given type is equality comparable, false otherwise. More... | |
struct | is_iterator |
Provides the member constant value to true if a given type is an iterator, false otherwise. More... | |
struct | is_iterator< Type, std::enable_if_t<!std::is_void_v< std::remove_cv_t< std::remove_pointer_t< Type > > > > > |
Provides the member constant value to true if a given type is an iterator, false otherwise. More... | |
struct | is_meta_pointer_like |
Provides the member constant value to true if a given type is a pointer-like type from the point of view of the meta system, false otherwise. More... | |
struct | is_meta_pointer_like< const Type > |
Partial specialization to ensure that const pointer-like types are also accepted. More... | |
struct | is_meta_pointer_like< std::shared_ptr< Type > > |
Makes std::shared_ptr s of any type pointer-like types for the meta system. More... | |
struct | is_meta_pointer_like< std::unique_ptr< Type, Args... > > |
Makes std::unique_ptr s of any type pointer-like types for the meta system. More... | |
struct | is_meta_pointer_like< Type * > |
Makes plain pointers pointer-like types for the meta system. More... | |
struct | is_meta_pointer_like< Type(*)[N]> |
Partial specialization used to reject pointers to arrays. More... | |
struct | is_meta_policy |
Provides the member constant value to true if a type also is a meta policy, false otherwise. More... | |
struct | is_transparent |
Provides the member constant value to true if Type::is_transparent is valid and denotes a type, false otherwise. More... | |
struct | is_transparent< Type, std::void_t< typename Type::is_transparent > > |
Provides the member constant value to true if Type::is_transparent is valid and denotes a type, false otherwise. More... | |
struct | is_tuple |
Provides the member constant value to true if a given type is a tuple, false otherwise. More... | |
struct | iterable_adaptor |
Utility class to create an iterable object from a pair of iterators. More... | |
class | locator |
Service locator, nothing more. More... | |
struct | matcher |
Grouping matcher. More... | |
class | member_class |
Extracts the class of a non-static member object or function. More... | |
class | meta_any |
Opaque wrapper for values of any type. More... | |
class | meta_associative_container |
Proxy object for associative containers. More... | |
struct | meta_associative_container_traits |
Traits class template to be specialized to enable support for meta associative containers. More... | |
struct | meta_associative_container_traits< dense_map< Args... > > |
Meta associative container traits for dense_map s of any type. More... | |
struct | meta_associative_container_traits< dense_set< Args... > > |
Meta associative container traits for dense_set s of any type. More... | |
struct | meta_associative_container_traits< std::map< Args... > > |
Meta associative container traits for std::map s of any type. More... | |
struct | meta_associative_container_traits< std::set< Args... > > |
Meta associative container traits for std::set s of any type. More... | |
struct | meta_associative_container_traits< std::unordered_map< Args... > > |
Meta associative container traits for std::unordered_map s of any type. More... | |
struct | meta_associative_container_traits< std::unordered_set< Args... > > |
Meta associative container traits for std::unordered_set s of any type. More... | |
struct | meta_class_template_tag |
Utility class to disambiguate class templates. More... | |
class | meta_ctx |
Opaque meta context type. More... | |
class | meta_ctx_arg_t |
Disambiguation tag for constructors and the like. More... | |
struct | meta_data |
Opaque wrapper for data members. More... | |
class | meta_factory |
Basic meta factory to be used for reflection purposes. More... | |
struct | meta_func |
Opaque wrapper for member functions. More... | |
struct | meta_function_descriptor |
Primary template isn't defined on purpose. More... | |
struct | meta_function_descriptor< Type, Ret Class::* > |
Meta function descriptor. More... | |
struct | meta_function_descriptor< Type, Ret(*)()> |
Meta function descriptor. More... | |
struct | meta_function_descriptor< Type, Ret(*)(MaybeType, Args...)> |
Meta function descriptor. More... | |
struct | meta_function_descriptor< Type, Ret(Class::*)(Args...) const > |
Meta function descriptor. More... | |
struct | meta_function_descriptor< Type, Ret(Class::*)(Args...)> |
Meta function descriptor. More... | |
struct | meta_function_descriptor_traits |
Meta function descriptor traits. More... | |
class | meta_function_helper |
Meta function helper. More... | |
struct | meta_handle |
Opaque pointers to instances of any type. More... | |
struct | meta_prop |
Opaque wrapper for properties of any type. More... | |
class | meta_sequence_container |
Proxy object for sequence containers. More... | |
struct | meta_sequence_container_traits |
Traits class template to be specialized to enable support for meta sequence containers. More... | |
struct | meta_sequence_container_traits< std::array< Type, N > > |
Meta sequence container traits for std::array s of any type. More... | |
struct | meta_sequence_container_traits< std::deque< Args... > > |
Meta sequence container traits for std::deque s of any type. More... | |
struct | meta_sequence_container_traits< std::list< Args... > > |
Meta sequence container traits for std::list s of any type. More... | |
struct | meta_sequence_container_traits< std::vector< Args... > > |
Meta sequence container traits for std::vector s of any type. More... | |
struct | meta_template_traits |
Traits class template to be specialized to enable support for meta template information. More... | |
struct | meta_template_traits< Clazz< Args... > > |
General purpose traits class for generating meta template information. More... | |
class | meta_type |
Opaque wrapper for types. More... | |
struct | monostate |
Minimal implementation of the monostate pattern. More... | |
class | nth_argument |
Extracts the n-th argument of a given function or member function. More... | |
struct | null_t |
Null object for all identifiers. More... | |
struct | overloaded |
Helper type for visitors. More... | |
struct | owned_t |
Alias for lists of owned components. More... | |
struct | poly_base |
Poly base class used to inject functionalities into concepts. More... | |
struct | poly_inspector |
Inspector class used to infer the type of the virtual table. More... | |
class | poly_vtable |
Static virtual table factory. More... | |
class | process |
Base class for processes. More... | |
struct | process_adaptor |
Adaptor for lambdas and functors to turn them into processes. More... | |
struct | radix_sort |
Function object for performing LSD radix sort. More... | |
class | resource |
Basic resource handle. More... | |
class | resource_cache |
Basic cache for resources of any type. More... | |
struct | resource_loader |
Transparent loader for shared resources. More... | |
struct | scoped_connection |
Scoped connection class. More... | |
class | sigh |
Unmanaged signal handler. More... | |
class | sigh< Ret(Args...), Allocator > |
Unmanaged signal handler. More... | |
struct | sigh_helper |
Primary template isn't defined on purpose. More... | |
struct | sigh_helper< Registry > |
Signal connection helper for registries. More... | |
struct | sigh_helper< Registry, Type > |
Signal connection helper for registries. More... | |
class | sink |
Sink class. More... | |
class | sink< sigh< Ret(Args...), Allocator > > |
Sink class. More... | |
struct | size_of |
A type-only sizeof wrapper that returns 0 where sizeof complains. More... | |
struct | size_of< Type, std::void_t< decltype(sizeof(Type))> > |
A type-only sizeof wrapper that returns 0 where sizeof complains. More... | |
struct | std_sort |
Function object to wrap std::sort in a class type. More... | |
struct | storage_for |
struct | storage_type |
Provides a common way to define storage types. More... | |
struct | tombstone_t |
Tombstone object for all identifiers. More... | |
struct | type_hash |
Type hash. More... | |
struct | type_identity |
Identity type trait. More... | |
struct | type_index |
Type sequential identifier. More... | |
struct | type_info |
Implementation specific information about a type. More... | |
struct | type_list |
A class to use to push around lists of types, nothing more. More... | |
struct | type_list_cat |
Primary template isn't defined on purpose. More... | |
struct | type_list_cat< type_list< Type... > > |
Concatenates multiple type lists. More... | |
struct | type_list_cat< type_list< Type... >, type_list< Other... >, List... > |
Concatenates multiple type lists. More... | |
struct | type_list_cat<> |
Concatenates multiple type lists. More... | |
struct | type_list_contains |
Provides the member constant value to true if a type list contains a given type, false otherwise. More... | |
struct | type_list_contains< type_list< Type... >, Other > |
Provides the member constant value to true if a type list contains a given type, false otherwise. More... | |
struct | type_list_diff |
Primary template isn't defined on purpose. More... | |
struct | type_list_diff< type_list< Type... >, type_list< Other... > > |
Computes the difference between two type lists. More... | |
struct | type_list_element |
Primary template isn't defined on purpose. More... | |
struct | type_list_element< 0u, type_list< First, Other... > > |
Provides compile-time indexed access to the types of a type list. More... | |
struct | type_list_element< Index, type_list< First, Other... > > |
Provides compile-time indexed access to the types of a type list. More... | |
struct | type_list_index |
Primary template isn't defined on purpose. More... | |
struct | type_list_index< Type, type_list< First, Other... > > |
Provides compile-time type access to the types of a type list. More... | |
struct | type_list_index< Type, type_list< Type, Other... > > |
Provides compile-time type access to the types of a type list. More... | |
struct | type_list_index< Type, type_list<> > |
Provides compile-time type access to the types of a type list. More... | |
struct | type_list_transform |
Primary template isn't defined on purpose. More... | |
struct | type_list_transform< exclude_t< Type... >, Op > |
Applies a given function to an exclude list and generate a new list. More... | |
struct | type_list_transform< get_t< Type... >, Op > |
Applies a given function to a get list and generate a new list. More... | |
struct | type_list_transform< owned_t< Type... >, Op > |
Applies a given function to an owned list and generate a new list. More... | |
struct | type_list_transform< type_list< Type... >, Op > |
Applies a given function to a type list and generate a new list. More... | |
struct | type_list_unique |
Removes duplicates types from a type list. More... | |
struct | type_name |
Type name. More... | |
struct | undirected_tag |
Directed graph category tag. More... | |
struct | value_list |
A class to use to push around lists of constant values, nothing more. More... | |
struct | value_list_cat |
Primary template isn't defined on purpose. More... | |
struct | value_list_cat< value_list< Value... > > |
Concatenates multiple value lists. More... | |
struct | value_list_cat< value_list< Value... >, value_list< Other... >, List... > |
Concatenates multiple value lists. More... | |
struct | value_list_cat<> |
Concatenates multiple value lists. More... | |
struct | value_list_contains |
Provides the member constant value to true if a value list contains a given value, false otherwise. More... | |
struct | value_list_contains< value_list< Value... >, Other > |
Provides the member constant value to true if a value list contains a given value, false otherwise. More... | |
class | value_list_diff |
Primary template isn't defined on purpose. More... | |
class | value_list_diff< value_list< Value... >, value_list< Other... > > |
Computes the difference between two value lists. More... | |
struct | value_list_element |
Primary template isn't defined on purpose. More... | |
struct | value_list_element< 0u, value_list< Value, Other... > > |
Provides compile-time indexed access to the types of a type list. More... | |
struct | value_list_element< Index, value_list< Value, Other... > > |
Provides compile-time indexed access to the values of a value list. More... | |
struct | value_list_index |
Primary template isn't defined on purpose. More... | |
struct | value_list_index< Value, value_list< First, Other... > > |
Provides compile-time type access to the values of a value list. More... | |
struct | value_list_index< Value, value_list< Value, Other... > > |
Provides compile-time type access to the values of a value list. More... | |
struct | value_list_index< Value, value_list<> > |
Provides compile-time type access to the values of a value list. More... | |
struct | value_list_unique |
Primary template isn't defined on purpose. More... | |
struct | value_list_unique< value_list< Value, Other... > > |
Removes duplicates values from a value list. More... | |
struct | value_list_unique< value_list<> > |
Removes duplicates values from a value list. More... | |
struct | y_combinator |
Basic implementation of a y-combinator. More... | |
Typedefs | |
using | id_type = std::uint32_t |
Alias declaration for type identifiers. | |
using | any = basic_any<> |
Alias declaration for the most common use case. | |
using | hashed_string = basic_hashed_string< char > |
Aliases for common character types. | |
using | hashed_wstring = basic_hashed_string< wchar_t > |
Aliases for common character types. | |
template<typename Type > | |
using | type_identity_t = typename type_identity< Type >::type |
Helper type. | |
template<typename Type , typename > | |
using | unpack_as_type = Type |
Using declaration to be used to repeat the same type a number of times equal to the size of a given parameter pack. | |
template<auto Value> | |
using | integral_constant = std::integral_constant< decltype(Value), Value > |
Wraps a static constant. | |
template<id_type Value> | |
using | tag = integral_constant< Value > |
Alias template to facilitate the creation of named values. | |
template<std::size_t Index, typename List > | |
using | type_list_element_t = typename type_list_element< Index, List >::type |
Helper type. | |
template<typename... List> | |
using | type_list_cat_t = typename type_list_cat< List... >::type |
Helper type. | |
template<typename List > | |
using | type_list_unique_t = typename type_list_unique< List >::type |
Helper type. | |
template<typename... List> | |
using | type_list_diff_t = typename type_list_diff< List... >::type |
Helper type. | |
template<typename List , template< typename... > class Op> | |
using | type_list_transform_t = typename type_list_transform< List, Op >::type |
Helper type. | |
template<std::size_t Index, typename List > | |
using | value_list_element_t = typename value_list_element< Index, List >::type |
Helper type. | |
template<typename... List> | |
using | value_list_cat_t = typename value_list_cat< List... >::type |
Helper type. | |
template<typename Type > | |
using | value_list_unique_t = typename value_list_unique< Type >::type |
Helper type. | |
template<typename... List> | |
using | value_list_diff_t = typename value_list_diff< List... >::type |
Helper type. | |
template<typename To , typename From > | |
using | constness_as_t = typename constness_as< To, From >::type |
Alias template to facilitate the transcription of the constness. | |
template<typename Member > | |
using | member_class_t = typename member_class< Member >::type |
Helper type. | |
template<std::size_t Index, typename Candidate > | |
using | nth_argument_t = typename nth_argument< Index, Candidate >::type |
Helper type. | |
using | sparse_set = basic_sparse_set<> |
Alias declaration for the most common use case. | |
template<typename Type > | |
using | storage = basic_storage< Type > |
Alias declaration for the most common use case. | |
template<typename Type > | |
using | sigh_mixin = basic_sigh_mixin< Type, basic_registry< typename Type::entity_type, typename Type::base_type::allocator_type > > |
Alias declaration for the most common use case. | |
using | registry = basic_registry<> |
Alias declaration for the most common use case. | |
using | observer = basic_observer< registry > |
Alias declaration for the most common use case. | |
using | organizer = basic_organizer< registry > |
Alias declaration for the most common use case. | |
using | handle = basic_handle< registry > |
Alias declaration for the most common use case. | |
using | const_handle = basic_handle< const registry > |
Alias declaration for the most common use case. | |
template<typename... Args> | |
using | handle_view = basic_handle< registry, Args... > |
Alias declaration for the most common use case. | |
template<typename... Args> | |
using | const_handle_view = basic_handle< const registry, Args... > |
Alias declaration for the most common use case. | |
using | snapshot = basic_snapshot< registry > |
Alias declaration for the most common use case. | |
using | snapshot_loader = basic_snapshot_loader< registry > |
Alias declaration for the most common use case. | |
using | continuous_loader = basic_continuous_loader< registry > |
Alias declaration for the most common use case. | |
using | runtime_view = basic_runtime_view< sparse_set > |
Alias declaration for the most common use case. | |
using | const_runtime_view = basic_runtime_view< const sparse_set > |
Alias declaration for the most common use case. | |
template<typename... Args> | |
using | storage_type_t = typename storage_type< Args... >::type |
Helper type. | |
template<typename... Args> | |
using | storage_for_t = typename storage_for< Args... >::type |
Helper type. | |
template<typename Get , typename Exclude = exclude_t<>> | |
using | view = basic_view< type_list_transform_t< Get, storage_for >, type_list_transform_t< Exclude, storage_for > > |
Alias declaration for the most common use case. | |
template<typename Owned , typename Get , typename Exclude > | |
using | group = basic_group< type_list_transform_t< Owned, storage_for >, type_list_transform_t< Get, storage_for >, type_list_transform_t< Exclude, storage_for > > |
Alias declaration for the most common use case. | |
using | flow = basic_flow<> |
Alias declaration for the most common use case. | |
using | meta_any_policy = any_policy |
Possible modes of a meta any object. | |
template<typename Type , typename It > | |
using | meta_range = iterable_adaptor< internal::meta_range_iterator< Type, It > > |
Iterable range to use to iterate all types of meta objects. | |
template<typename Type , typename Candidate > | |
using | meta_function_helper_t = typename meta_function_helper< Type, Candidate >::type |
Helper type. | |
template<typename Concept > | |
using | poly = basic_poly< Concept > |
Alias declaration for the most common use case. | |
using | scheduler = basic_scheduler<> |
Alias declaration for the most common use case. | |
using | dispatcher = basic_dispatcher<> |
Alias declaration for the most common use case. | |
Enumerations | |
enum class | any_policy : std::uint8_t { owner , ref , cref } |
Possible modes of an any object. More... | |
enum class | entity : id_type |
Default entity identifier. More... | |
enum class | deletion_policy : std::uint8_t { swap_and_pop = 0u , in_place = 1u , swap_only = 2u } |
Storage deletion policy. More... | |
Functions | |
template<typename Type , std::size_t Len, std::size_t Align> | |
Type | any_cast (const basic_any< Len, Align > &data) noexcept |
Performs type-safe access to the contained object. | |
template<typename Type , std::size_t Len, std::size_t Align> | |
Type | any_cast (basic_any< Len, Align > &data) noexcept |
Performs type-safe access to the contained object. | |
template<typename Type , std::size_t Len, std::size_t Align> | |
Type | any_cast (basic_any< Len, Align > &&data) noexcept |
Performs type-safe access to the contained object. | |
template<typename Type , std::size_t Len, std::size_t Align> | |
const Type * | any_cast (const basic_any< Len, Align > *data) noexcept |
Performs type-safe access to the contained object. | |
template<typename Type , std::size_t Len, std::size_t Align> | |
Type * | any_cast (basic_any< Len, Align > *data) noexcept |
Performs type-safe access to the contained object. | |
template<typename Type , std::size_t Len = basic_any<>::length, std::size_t Align = basic_any<Len>::alignment, typename... Args> | |
basic_any< Len, Align > | make_any (Args &&...args) |
Constructs a wrapper from a given type, passing it all arguments. | |
template<std::size_t Len = basic_any<>::length, std::size_t Align = basic_any<Len>::alignment, typename Type > | |
basic_any< Len, Align > | forward_as_any (Type &&value) |
Forwards its argument and avoids copies for lvalue references. | |
template<typename Type , typename Other > | |
compressed_pair (Type &&, Other &&) -> compressed_pair< std::decay_t< Type >, std::decay_t< Other > > | |
Deduction guide. | |
template<typename First , typename Second > | |
constexpr void | swap (compressed_pair< First, Second > &lhs, compressed_pair< First, Second > &rhs) |
Swaps two compressed pair objects. | |
template<typename Char > | |
basic_hashed_string (const Char *str, const std::size_t len) -> basic_hashed_string< Char > | |
Deduction guide. | |
template<typename Char , std::size_t N> | |
basic_hashed_string (const Char(&str)[N]) -> basic_hashed_string< Char > | |
Deduction guide. | |
template<typename Char > | |
constexpr bool | operator== (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
template<typename Char > | |
constexpr bool | operator!= (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
template<typename Char > | |
constexpr bool | operator< (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
template<typename Char > | |
constexpr bool | operator<= (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
template<typename Char > | |
constexpr bool | operator> (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
template<typename Char > | |
constexpr bool | operator>= (const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept |
Compares two hashed strings. | |
constexpr hashed_string | operator""_hs (const char *str, std::size_t) noexcept |
User defined literal for hashed strings. | |
constexpr hashed_wstring | operator""_hws (const wchar_t *str, std::size_t) noexcept |
User defined literal for hashed wstrings. | |
template<typename Type > | |
constexpr bool | operator== (const iota_iterator< Type > &lhs, const iota_iterator< Type > &rhs) noexcept |
Comparison operator. | |
template<typename Type > | |
constexpr bool | operator!= (const iota_iterator< Type > &lhs, const iota_iterator< Type > &rhs) noexcept |
Comparison operator. | |
constexpr bool | is_power_of_two (const std::size_t value) noexcept |
Checks whether a value is a power of two or not (waiting for C++20 and std::has_single_bit ). | |
constexpr std::size_t | next_power_of_two (const std::size_t value) noexcept |
Computes the smallest power of two greater than or equal to a value (waiting for C++20 and std::bit_ceil ). | |
constexpr std::size_t | fast_mod (const std::size_t value, const std::size_t mod) noexcept |
Fast module utility function (powers of two only). | |
template<typename Type > | |
constexpr auto | to_address (Type &&ptr) noexcept |
Unwraps fancy pointers, does nothing otherwise (waiting for C++20). | |
template<typename Allocator > | |
constexpr void | propagate_on_container_copy_assignment (Allocator &lhs, Allocator &rhs) noexcept |
Utility function to design allocation-aware containers. | |
template<typename Allocator > | |
constexpr void | propagate_on_container_move_assignment (Allocator &lhs, Allocator &rhs) noexcept |
Utility function to design allocation-aware containers. | |
template<typename Allocator > | |
constexpr void | propagate_on_container_swap (Allocator &lhs, Allocator &rhs) noexcept |
Utility function to design allocation-aware containers. | |
template<typename Type , typename Allocator , typename... Args> | |
constexpr auto | allocate_unique (Allocator &allocator, Args &&...args) |
Allows std::unique_ptr to use allocators (waiting for C++20). | |
template<typename Type , typename Allocator , typename... Args> | |
constexpr auto | uses_allocator_construction_args (const Allocator &allocator, Args &&...args) noexcept |
Uses-allocator construction utility (waiting for C++20). | |
template<typename Type , typename Allocator , typename... Args> | |
constexpr Type | make_obj_using_allocator (const Allocator &allocator, Args &&...args) |
Uses-allocator construction utility (waiting for C++20). | |
template<typename Type , typename Allocator , typename... Args> | |
constexpr Type * | uninitialized_construct_using_allocator (Type *value, const Allocator &allocator, Args &&...args) |
Uses-allocator construction utility (waiting for C++20). | |
template<typename Type > | |
constexpr decltype(auto) | unwrap_tuple (Type &&value) noexcept |
Utility function to unwrap tuples of a single element. | |
template<typename Func > | |
forward_apply (Func) -> forward_apply< std::remove_reference_t< std::remove_cv_t< Func > > > | |
Deduction guide. | |
constexpr bool | operator== (const type_info &lhs, const type_info &rhs) noexcept |
Compares the contents of two type info objects. | |
constexpr bool | operator!= (const type_info &lhs, const type_info &rhs) noexcept |
Compares the contents of two type info objects. | |
constexpr bool | operator< (const type_info &lhs, const type_info &rhs) noexcept |
Compares two type info objects. | |
constexpr bool | operator<= (const type_info &lhs, const type_info &rhs) noexcept |
Compares two type info objects. | |
constexpr bool | operator> (const type_info &lhs, const type_info &rhs) noexcept |
Compares two type info objects. | |
constexpr bool | operator>= (const type_info &lhs, const type_info &rhs) noexcept |
Compares two type info objects. | |
template<typename Type > | |
const type_info & | type_id () noexcept |
Returns the type info object associated to a given type. | |
template<typename Type > | |
const type_info & | type_id (Type &&) noexcept |
Returns the type info object associated to a given type. | |
template<typename... Type, typename... Other> | |
constexpr type_list< Type..., Other... > | operator+ (type_list< Type... >, type_list< Other... >) |
Concatenates multiple type lists. | |
template<auto... Value, auto... Other> | |
constexpr value_list< Value..., Other... > | operator+ (value_list< Value... >, value_list< Other... >) |
Concatenates multiple value lists. | |
template<typename Type , typename Class > | |
constexpr auto | overload (Type Class::*member) noexcept |
Constant utility to disambiguate overloaded members of a class. | |
template<typename Func > | |
constexpr auto | overload (Func *func) noexcept |
Constant utility to disambiguate overloaded functions. | |
template<typename... Func> | |
overloaded (Func...) -> overloaded< Func... > | |
Deduction guide. | |
template<typename Entity > | |
constexpr entt_traits< Entity >::entity_type | to_integral (const Entity value) noexcept |
Converts an entity to its underlying type. | |
template<typename Entity > | |
constexpr entt_traits< Entity >::entity_type | to_entity (const Entity value) noexcept |
Returns the entity part once converted to the underlying type. | |
template<typename Entity > | |
constexpr entt_traits< Entity >::version_type | to_version (const Entity value) noexcept |
Returns the version part once converted to the underlying type. | |
template<typename Entity > | |
constexpr bool | operator== (const Entity entity, const null_t other) noexcept |
Compares a null object and an identifier of any type. | |
template<typename Entity > | |
constexpr bool | operator!= (const Entity entity, const null_t other) noexcept |
Compares a null object and an identifier of any type. | |
template<typename Entity > | |
constexpr bool | operator== (const Entity entity, const tombstone_t other) noexcept |
Compares a tombstone object and an identifier of any type. | |
template<typename Entity > | |
constexpr bool | operator!= (const Entity entity, const tombstone_t other) noexcept |
Compares a tombstone object and an identifier of any type. | |
template<typename... Args, typename... Other> | |
bool | operator== (const basic_handle< Args... > &lhs, const basic_handle< Other... > &rhs) noexcept |
Compares two handles. | |
template<typename... Args, typename... Other> | |
bool | operator!= (const basic_handle< Args... > &lhs, const basic_handle< Other... > &rhs) noexcept |
Compares two handles. | |
template<auto Member, typename Registry = std::decay_t<nth_argument_t<0u, decltype(Member)>>> | |
void | invoke (Registry ®, const typename Registry::entity_type entt) |
Helper to create a listener that directly invokes a member function. | |
template<typename... Args> | |
auto | to_entity (const basic_storage< Args... > &storage, const typename basic_storage< Args... >::value_type &instance) -> typename basic_storage< Args... >::entity_type |
Returns the entity associated with a given component. | |
template<typename... Args, typename Component > | |
basic_registry< Args... >::entity_type | to_entity (const basic_registry< Args... > ®, const Component &instance) |
Returns the entity part once converted to the underlying type. | |
template<typename Registry > | |
sigh_helper (Registry &) -> sigh_helper< Registry > | |
Deduction guide. | |
template<typename... Type> | |
basic_view (Type &...storage) -> basic_view< get_t< Type... >, exclude_t<> > | |
Deduction guide. | |
template<typename... Get, typename... Exclude> | |
basic_view (std::tuple< Get &... >, std::tuple< Exclude &... >={}) -> basic_view< get_t< Get... >, exclude_t< Exclude... > > | |
Deduction guide. | |
template<typename Graph , typename Writer > | |
void | dot (std::ostream &out, const Graph &graph, Writer writer) |
Outputs a graph in dot format. | |
template<typename Graph > | |
void | dot (std::ostream &out, const Graph &graph) |
Outputs a graph in dot format. | |
template<typename Type > | |
decltype(auto) | dereference_meta_pointer_like (const Type &value) |
ADL based lookup function for dereferencing meta pointer-like types. | |
template<typename Type > | |
auto | meta (meta_ctx &ctx) noexcept |
Utility function to use for reflection. | |
template<typename Type > | |
auto | meta () noexcept |
Utility function to use for reflection. | |
void | meta_reset (meta_ctx &ctx, const id_type id) noexcept |
Resets a type and all its parts. | |
void | meta_reset (const id_type id) noexcept |
Resets a type and all its parts. | |
template<typename Type > | |
void | meta_reset (meta_ctx &ctx) noexcept |
Resets a type and all its parts. | |
template<typename Type > | |
void | meta_reset () noexcept |
Resets a type and all its parts. | |
void | meta_reset (meta_ctx &ctx) noexcept |
Resets all meta types. | |
void | meta_reset () noexcept |
Resets all meta types. | |
template<typename Type > | |
meta_any | forward_as_meta (const meta_ctx &ctx, Type &&value) |
Forwards its argument and avoids copies for lvalue references. | |
template<typename Type > | |
meta_any | forward_as_meta (Type &&value) |
Forwards its argument and avoids copies for lvalue references. | |
bool | operator!= (const meta_prop &lhs, const meta_prop &rhs) noexcept |
Checks if two objects refer to the same type. | |
bool | operator!= (const meta_data &lhs, const meta_data &rhs) noexcept |
Checks if two objects refer to the same type. | |
bool | operator!= (const meta_func &lhs, const meta_func &rhs) noexcept |
Checks if two objects refer to the same type. | |
bool | operator!= (const meta_type &lhs, const meta_type &rhs) noexcept |
Checks if two objects refer to the same type. | |
template<typename Type > | |
meta_type | resolve (const meta_ctx &ctx) noexcept |
Returns the meta type associated with a given type. | |
template<typename Type > | |
meta_type | resolve () noexcept |
Returns the meta type associated with a given type. | |
meta_range< meta_type, typename decltype(internal::meta_context::value)::const_iterator > | resolve (const meta_ctx &ctx) noexcept |
Returns a range to use to visit all meta types. | |
meta_range< meta_type, typename decltype(internal::meta_context::value)::const_iterator > | resolve () noexcept |
Returns a range to use to visit all meta types. | |
meta_type | resolve (const meta_ctx &ctx, const id_type id) noexcept |
Returns the meta type associated with a given identifier, if any. | |
meta_type | resolve (const id_type id) noexcept |
Returns the meta type associated with a given identifier, if any. | |
meta_type | resolve (const meta_ctx &ctx, const type_info &info) noexcept |
Returns the meta type associated with a given type info object. | |
meta_type | resolve (const type_info &info) noexcept |
Returns the meta type associated with a given type info object. | |
template<typename Policy = as_is_t, typename Type > | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_dispatch (const meta_ctx &ctx, Type &&value) |
Wraps a value depending on the given policy. | |
template<typename Policy = as_is_t, typename Type > | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_dispatch (Type &&value) |
Wraps a value depending on the given policy. | |
template<typename Type , auto Data> | |
bool | meta_setter (meta_handle instance, meta_any value) |
Sets the value of a given variable. | |
template<typename Type , auto Data, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_getter (const meta_ctx &ctx, meta_handle instance) |
Gets the value of a given variable. | |
template<typename Type , auto Data, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_getter (meta_handle instance) |
Gets the value of a given variable. | |
template<typename Type , typename Policy = as_is_t, typename Candidate > | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_invoke (const meta_ctx &ctx, meta_handle instance, Candidate &&candidate, meta_any *const args) |
Tries to invoke an object given a list of erased parameters. | |
template<typename Type , typename Policy = as_is_t, typename Candidate > | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_invoke (meta_handle instance, Candidate &&candidate, meta_any *const args) |
Tries to invoke an object given a list of erased parameters. | |
template<typename Type , auto Candidate, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_invoke (const meta_ctx &ctx, meta_handle instance, meta_any *const args) |
Tries to invoke a function given a list of erased parameters. | |
template<typename Type , auto Candidate, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_invoke (meta_handle instance, meta_any *const args) |
Tries to invoke a function given a list of erased parameters. | |
template<typename Type , typename... Args> | |
meta_any | meta_construct (const meta_ctx &ctx, meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<typename Type , typename... Args> | |
meta_any | meta_construct (meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<typename Type , typename Policy = as_is_t, typename Candidate > | |
meta_any | meta_construct (const meta_ctx &ctx, Candidate &&candidate, meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<typename Type , typename Policy = as_is_t, typename Candidate > | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_construct (Candidate &&candidate, meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<typename Type , auto Candidate, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_construct (const meta_ctx &ctx, meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<typename Type , auto Candidate, typename Policy = as_is_t> | |
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > | meta_construct (meta_any *const args) |
Tries to construct an instance given a list of erased parameters. | |
template<std::size_t Member, typename Poly , typename... Args> | |
decltype(auto) | poly_call (Poly &&self, Args &&...args) |
Shortcut for calling poly_base<Type>::invoke . | |
template<typename Lhs , typename Rhs > | |
bool | operator== (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Lhs , typename Rhs > | |
bool | operator!= (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Lhs , typename Rhs > | |
bool | operator< (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Lhs , typename Rhs > | |
bool | operator> (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Lhs , typename Rhs > | |
bool | operator<= (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Lhs , typename Rhs > | |
bool | operator>= (const resource< Lhs > &lhs, const resource< Rhs > &rhs) noexcept |
Compares two handles. | |
template<typename Ret , typename... Args> | |
bool | operator!= (const delegate< Ret(Args...)> &lhs, const delegate< Ret(Args...)> &rhs) noexcept |
Compares the contents of two delegates. | |
template<auto Candidate> | |
delegate (connect_arg_t< Candidate >) -> delegate< std::remove_pointer_t< internal::function_pointer_t< decltype(Candidate)> > > | |
Deduction guide. | |
template<auto Candidate, typename Type > | |
delegate (connect_arg_t< Candidate >, Type &&) -> delegate< std::remove_pointer_t< internal::function_pointer_t< decltype(Candidate), Type > > > | |
Deduction guide. | |
template<typename Ret , typename... Args> | |
delegate (Ret(*)(const void *, Args...), const void *=nullptr) -> delegate< Ret(Args...)> | |
Deduction guide. | |
template<typename Ret , typename... Args, typename Allocator > | |
sink (sigh< Ret(Args...), Allocator > &) -> sink< sigh< Ret(Args...), Allocator > > | |
Deduction guide. | |
Variables | |
template<typename Type > | |
constexpr bool | enum_as_bitmask_v = enum_as_bitmask<Type>::value |
Helper variable template. | |
template<id_type Value> | |
monostate< Value > | monostate_v = {} |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_tuple_v = is_tuple<Type>::value |
Helper variable template. | |
template<std::size_t N> | |
constexpr choice_t< N > | choice {} |
Variable template for the choice trick. | |
template<typename Type > | |
constexpr std::size_t | size_of_v = size_of<Type>::value |
Helper variable template. | |
template<auto Value, typename > | |
constexpr auto | unpack_as_value = Value |
Helper variable template to be used to repeat the same value a number of times equal to the size of a given parameter pack. | |
template<typename Type , typename List > | |
constexpr std::size_t | type_list_index_v = type_list_index<Type, List>::value |
Helper variable template. | |
template<typename List , typename Type > | |
constexpr bool | type_list_contains_v = type_list_contains<List, Type>::value |
Helper variable template. | |
template<std::size_t Index, typename List > | |
constexpr auto | value_list_element_v = value_list_element<Index, List>::value |
Helper type. | |
template<auto Value, typename List > | |
constexpr std::size_t | value_list_index_v = value_list_index<Value, List>::value |
Helper variable template. | |
template<typename List , auto Value> | |
constexpr bool | value_list_contains_v = value_list_contains<List, Value>::value |
Helper variable template. | |
template<typename Func , typename Args > | |
constexpr bool | is_applicable_v = is_applicable<Func, Args>::value |
Helper variable template. | |
template<typename Ret , typename Func , typename Args > | |
constexpr bool | is_applicable_r_v = is_applicable_r<Ret, Func, Args>::value |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_complete_v = is_complete<Type>::value |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_iterator_v = is_iterator<Type>::value |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_ebco_eligible_v = is_ebco_eligible<Type>::value |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_transparent_v = is_transparent<Type>::value |
Helper variable template. | |
template<typename Type > | |
constexpr bool | is_equality_comparable_v = is_equality_comparable<Type>::value |
Helper variable template. | |
constexpr null_t | null {} |
Compile-time constant for null entities. | |
constexpr tombstone_t | tombstone {} |
Compile-time constant for tombstone entities. | |
template<typename... Type> | |
constexpr exclude_t< Type... > | exclude {} |
Variable template for exclusion lists. | |
template<typename... Type> | |
constexpr get_t< Type... > | get {} |
Variable template for lists of observed components. | |
template<typename... Type> | |
constexpr owned_t< Type... > | owned {} |
Variable template for lists of owned components. | |
constexpr basic_collector | collector {} |
Variable template used to ease the definition of collectors. | |
constexpr meta_ctx_arg_t | meta_ctx_arg {} |
Constant of type meta_context_arg_t used to disambiguate calls. | |
template<typename Type > | |
constexpr bool | is_meta_policy_v = is_meta_policy<Type>::value |
Helper variable template. | |
template<typename Type > | |
constexpr auto | is_meta_pointer_like_v = is_meta_pointer_like<Type>::value |
Helper variable template. | |
template<auto Candidate> | |
constexpr connect_arg_t< Candidate > | connect_arg {} |
Constant of type connect_arg_t used to disambiguate calls. | |
EnTT
default namespace.
using entt::const_handle = typedef basic_handle<const registry> |
using entt::const_handle_view = typedef basic_handle<const registry, Args...> |
using entt::const_runtime_view = typedef basic_runtime_view<const sparse_set> |
using entt::constness_as_t = typedef typename constness_as<To, From>::type |
Alias template to facilitate the transcription of the constness.
To | The type to which to transcribe the constness. |
From | The type from which to transcribe the constness. |
Definition at line 844 of file type_traits.hpp.
using entt::continuous_loader = typedef basic_continuous_loader<registry> |
using entt::dispatcher = typedef basic_dispatcher<> |
using entt::flow = typedef basic_flow<> |
using entt::group = typedef basic_group<type_list_transform_t<Owned, storage_for>, type_list_transform_t<Get, storage_for>, type_list_transform_t<Exclude, storage_for> > |
using entt::handle = typedef basic_handle<registry> |
using entt::handle_view = typedef basic_handle<registry, Args...> |
using entt::hashed_string = typedef basic_hashed_string<char> |
Aliases for common character types.
Definition at line 297 of file hashed_string.hpp.
using entt::hashed_wstring = typedef basic_hashed_string<wchar_t> |
Aliases for common character types.
Definition at line 300 of file hashed_string.hpp.
using entt::id_type = typedef std::uint32_t |
using entt::integral_constant = typedef std::integral_constant<decltype(Value), Value> |
Wraps a static constant.
Value | A static constant. |
Definition at line 96 of file type_traits.hpp.
using entt::member_class_t = typedef typename member_class<Member>::type |
Helper type.
Member | A pointer to a non-static member object or function. |
Definition at line 873 of file type_traits.hpp.
using entt::meta_any_policy = typedef any_policy |
using entt::meta_function_helper_t = typedef typename meta_function_helper<Type, Candidate>::type |
Helper type.
Type | Reflected type to which the meta function is associated. |
Candidate | The actual function to associate with the reflected type. |
Definition at line 152 of file utility.hpp.
using entt::meta_range = typedef iterable_adaptor<internal::meta_range_iterator<Type, It> > |
using entt::nth_argument_t = typedef typename nth_argument<Index, Candidate>::type |
Helper type.
Index | The index of the argument to extract. |
Candidate | A valid function, member function or data member type. |
Definition at line 905 of file type_traits.hpp.
using entt::observer = typedef basic_observer<registry> |
using entt::organizer = typedef basic_organizer<registry> |
using entt::poly = typedef basic_poly<Concept> |
using entt::registry = typedef basic_registry<> |
using entt::runtime_view = typedef basic_runtime_view<sparse_set> |
using entt::scheduler = typedef basic_scheduler<> |
using entt::sigh_mixin = typedef basic_sigh_mixin<Type, basic_registry<typename Type::entity_type, typename Type::base_type::allocator_type> > |
using entt::snapshot = typedef basic_snapshot<registry> |
using entt::snapshot_loader = typedef basic_snapshot_loader<registry> |
using entt::sparse_set = typedef basic_sparse_set<> |
using entt::storage = typedef basic_storage<Type> |
using entt::storage_for_t = typedef typename storage_for<Args...>::type |
using entt::storage_type_t = typedef typename storage_type<Args...>::type |
using entt::tag = typedef integral_constant<Value> |
Alias template to facilitate the creation of named values.
Value | A constant value at least convertible to id_type . |
Definition at line 103 of file type_traits.hpp.
using entt::type_identity_t = typedef typename type_identity<Type>::type |
using entt::type_list_cat_t = typedef typename type_list_cat<List...>::type |
Helper type.
List | Type lists to concatenate. |
Definition at line 251 of file type_traits.hpp.
using entt::type_list_diff_t = typedef typename type_list_diff<List...>::type |
Helper type.
List | Type lists between which to compute the difference. |
Definition at line 334 of file type_traits.hpp.
using entt::type_list_element_t = typedef typename type_list_element<Index, List>::type |
Helper type.
Index | Index of the type to return. |
List | Type list to search into. |
Definition at line 148 of file type_traits.hpp.
using entt::type_list_transform_t = typedef typename type_list_transform<List, Op>::type |
Helper type.
List | Type list. |
Op | Unary operation as template class with a type member named type . |
Definition at line 357 of file type_traits.hpp.
using entt::type_list_unique_t = typedef typename type_list_unique<List>::type |
using entt::unpack_as_type = typedef Type |
Using declaration to be used to repeat the same type a number of times equal to the size of a given parameter pack.
Type | A type to repeat. |
Definition at line 81 of file type_traits.hpp.
using entt::value_list_cat_t = typedef typename value_list_cat<List...>::type |
Helper type.
List | Value lists to concatenate. |
Definition at line 515 of file type_traits.hpp.
using entt::value_list_diff_t = typedef typename value_list_diff<List...>::type |
Helper type.
List | Value lists between which to compute the difference. |
Definition at line 598 of file type_traits.hpp.
using entt::value_list_element_t = typedef typename value_list_element<Index, List>::type |
Helper type.
Index | Index of the type to return. |
List | Value list to search into. |
Definition at line 404 of file type_traits.hpp.
using entt::value_list_unique_t = typedef typename value_list_unique<Type>::type |
using entt::view = typedef basic_view<type_list_transform_t<Get, storage_for>, type_list_transform_t<Exclude, storage_for> > |
|
strong |
|
strong |
|
strong |
|
constexpr |
Allows std::unique_ptr
to use allocators (waiting for C++20).
Type | Type of object to allocate for and to construct. |
Allocator | Type of allocator used to manage memory and elements. |
Args | Types of arguments to use to construct the object. |
allocator | The allocator to use. |
args | Parameters to use to construct the object. |
Definition at line 148 of file memory.hpp.
|
noexcept |
Performs type-safe access to the contained object.
Type | Type to which conversion is required. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Alignment requirement. |
data | Target any object. |
|
noexcept |
Performs type-safe access to the contained object.
Type | Type to which conversion is required. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Alignment requirement. |
data | Target any object. |
|
noexcept |
Performs type-safe access to the contained object.
Type | Type to which conversion is required. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Alignment requirement. |
data | Target any object. |
|
noexcept |
Performs type-safe access to the contained object.
Type | Type to which conversion is required. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Alignment requirement. |
data | Target any object. |
|
noexcept |
Performs type-safe access to the contained object.
Type | Type to which conversion is required. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Alignment requirement. |
data | Target any object. |
entt::basic_hashed_string | ( | const Char * | str, |
const std::size_t | len | ||
) | -> basic_hashed_string< Char > |
Deduction guide.
Char | Character type. |
str | Human-readable identifier. |
len | Length of the string to hash. |
entt::basic_hashed_string | ( | const Char(&) | str[N] | ) | -> basic_hashed_string< Char > |
Deduction guide.
Char | Character type. |
N | Number of characters of the identifier. |
str | Human-readable identifier. |
entt::basic_view | ( | std::tuple< Get &... > | , |
std::tuple< Exclude &... > | = {} |
||
) | -> basic_view< get_t< Get... >, exclude_t< Exclude... > > |
Deduction guide.
Get | Types of components iterated by the view. |
Exclude | Types of components used to filter the view. |
entt::basic_view | ( | Type &... | storage | ) | -> basic_view< get_t< Type... >, exclude_t<> > |
Deduction guide.
Type | Type of storage classes used to create the view. |
storage | The storage for the types to iterate. |
entt::compressed_pair | ( | Type && | , |
Other && | |||
) | -> compressed_pair< std::decay_t< Type >, std::decay_t< Other > > |
Deduction guide.
Type | Type of value to use to initialize the first element. |
Other | Type of value to use to initialize the second element. |
entt::delegate | ( | connect_arg_t< Candidate > | ) | -> delegate< std::remove_pointer_t< internal::function_pointer_t< decltype(Candidate)> > > |
Deduction guide.
Candidate | Function or member to connect to the delegate. |
entt::delegate | ( | connect_arg_t< Candidate > | , |
Type && | |||
) | -> delegate< std::remove_pointer_t< internal::function_pointer_t< decltype(Candidate), Type > > > |
Deduction guide.
Candidate | Function or member to connect to the delegate. |
Type | Type of class or type of payload. |
entt::delegate | ( | Ret(*)(const void *, Args...) | , |
const void * | = nullptr |
||
) | -> delegate< Ret(Args...)> |
Deduction guide.
Ret | Return type of a function type. |
Args | Types of arguments of a function type. |
decltype(auto) entt::dereference_meta_pointer_like | ( | const Type & | value | ) |
ADL based lookup function for dereferencing meta pointer-like types.
Type | Element type. |
value | A pointer-like object. |
Definition at line 13 of file adl_pointer.hpp.
void entt::dot | ( | std::ostream & | out, |
const Graph & | graph | ||
) |
void entt::dot | ( | std::ostream & | out, |
const Graph & | graph, | ||
Writer | writer | ||
) |
|
inlineconstexprnoexcept |
Fast module utility function (powers of two only).
value | A value for which to calculate the modulus. |
mod | Modulus, it must be a power of two. |
Definition at line 47 of file memory.hpp.
entt::forward_apply | ( | Func | ) | -> forward_apply< std::remove_reference_t< std::remove_cv_t< Func > > > |
Deduction guide.
Func | Type of underlying invocable object. |
basic_any< Len, Align > entt::forward_as_any | ( | Type && | value | ) |
Forwards its argument and avoids copies for lvalue references.
Len | Size of the storage reserved for the small buffer optimization. |
Align | Optional alignment requirement. |
Type | Type of argument to use to construct the new instance. |
value | Parameter to use to construct the instance. |
Forwards its argument and avoids copies for lvalue references.
Type | Type of argument to use to construct the new instance. |
value | Parameter to use to construct the instance. |
ctx | The context from which to search for meta types. |
meta_any entt::forward_as_meta | ( | Type && | value | ) |
Forwards its argument and avoids copies for lvalue references.
Type | Type of argument to use to construct the new instance. |
value | Parameter to use to construct the instance. |
void entt::invoke | ( | Registry & | reg, |
const typename Registry::entity_type | entt | ||
) |
Helper to create a listener that directly invokes a member function.
Member | Member function to invoke on a component of the given type. |
Registry | Basic registry type. |
reg | A registry that contains the given entity and its components. |
entt | Entity from which to get the component. |
Definition at line 108 of file helper.hpp.
|
inlineconstexprnoexcept |
Checks whether a value is a power of two or not (waiting for C++20 and std::has_single_bit
).
value | A value that may or may not be a power of two. |
Definition at line 20 of file memory.hpp.
basic_any< Len, Align > entt::make_any | ( | Args &&... | args | ) |
Constructs a wrapper from a given type, passing it all arguments.
Type | Type of object to use to initialize the wrapper. |
Len | Size of the storage reserved for the small buffer optimization. |
Align | Optional alignment requirement. |
Args | Types of arguments to use to construct the new instance. |
args | Parameters to use to construct the instance. |
|
constexpr |
Uses-allocator construction utility (waiting for C++20).
Primarily intended for internal use. Creates an object of a given type by means of uses-allocator construction.
Type | Type of object to create. |
Allocator | Type of allocator used to manage memory and elements. |
Args | Types of arguments to use to construct the object. |
allocator | The allocator to use. |
args | Parameters to use to construct the object. |
Definition at line 258 of file memory.hpp.
|
noexcept |
Utility function to use for reflection.
This is the point from which everything starts.
By invoking this function with a type that is not yet reflected, a meta type is created to which it will be possible to attach meta objects through a dedicated factory.
Type | Type to reflect. |
Definition at line 484 of file factory.hpp.
|
noexcept |
Utility function to use for reflection.
This is the point from which everything starts.
By invoking this function with a type that is not yet reflected, a meta type is created to which it will be possible to attach meta objects through a dedicated factory.
Type | Type to reflect. |
ctx | The context into which to construct meta types. |
Definition at line 465 of file factory.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_construct | ( | Candidate && | candidate, |
meta_any *const | args | ||
) |
Tries to construct an instance given a list of erased parameters.
Type | Reflected type to which the object to invoke is associated. |
Policy | Optional policy (no policy set by default). |
Candidate | The type of the actual object to invoke. |
candidate | The actual object to invoke. |
args | Parameters to use to invoke the object. |
Definition at line 496 of file utility.hpp.
meta_any entt::meta_construct | ( | const meta_ctx & | ctx, |
Candidate && | candidate, | ||
meta_any *const | args | ||
) |
Tries to construct an instance given a list of erased parameters.
Type | Reflected type to which the object to invoke is associated. |
Policy | Optional policy (no policy set by default). |
Candidate | The type of the actual object to invoke. |
ctx | The context from which to search for meta types. |
candidate | The actual object to invoke. |
args | Parameters to use to invoke the object. |
Definition at line 478 of file utility.hpp.
meta_any entt::meta_construct | ( | const meta_ctx & | ctx, |
meta_any *const | args | ||
) |
Tries to construct an instance given a list of erased parameters.
Type | Actual type of the instance to construct. |
Args | Types of arguments expected. |
ctx | The context from which to search for meta types. |
args | Parameters to use to construct the instance. |
Definition at line 446 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_construct | ( | const meta_ctx & | ctx, |
meta_any *const | args | ||
) |
Tries to construct an instance given a list of erased parameters.
Type | Reflected type to which the function is associated. |
Candidate | The actual function to invoke. |
Policy | Optional policy (no policy set by default). |
ctx | The context from which to search for meta types. |
args | Parameters to use to invoke the function. |
Definition at line 515 of file utility.hpp.
Tries to construct an instance given a list of erased parameters.
Type | Actual type of the instance to construct. |
Args | Types of arguments expected. |
args | Parameters to use to construct the instance. |
Definition at line 458 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_construct | ( | meta_any *const | args | ) |
Tries to construct an instance given a list of erased parameters.
Type | Reflected type to which the function is associated. |
Candidate | The actual function to invoke. |
Policy | Optional policy (no policy set by default). |
args | Parameters to use to invoke the function. |
Definition at line 528 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_dispatch | ( | const meta_ctx & | ctx, |
Type && | value | ||
) |
Wraps a value depending on the given policy.
This function always returns a wrapped value in the requested context.
Therefore, if the passed value is itself a wrapped object with a different context, it undergoes a rebinding to the requested context.
Policy | Optional policy (no policy set by default). |
Type | Type of value to wrap. |
ctx | The context from which to search for meta types. |
value | Value to wrap. |
Definition at line 168 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_dispatch | ( | Type && | value | ) |
Wraps a value depending on the given policy.
Policy | Optional policy (no policy set by default). |
Type | Type of value to wrap. |
value | Value to wrap. |
Definition at line 189 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_getter | ( | const meta_ctx & | ctx, |
meta_handle | instance | ||
) |
Gets the value of a given variable.
Type | Reflected type to which the variable is associated. |
Data | The actual variable to get. |
Policy | Optional policy (no policy set by default). |
ctx | The context from which to search for meta types. |
instance | An opaque instance of the underlying type, if required. |
Definition at line 275 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_getter | ( | meta_handle | instance | ) |
Gets the value of a given variable.
Type | Reflected type to which the variable is associated. |
Data | The actual variable to get. |
Policy | Optional policy (no policy set by default). |
instance | An opaque instance of the underlying type, if required. |
Definition at line 312 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_invoke | ( | const meta_ctx & | ctx, |
meta_handle | instance, | ||
Candidate && | candidate, | ||
meta_any *const | args | ||
) |
Tries to invoke an object given a list of erased parameters.
Type | Reflected type to which the object to invoke is associated. |
Policy | Optional policy (no policy set by default). |
ctx | The context from which to search for meta types. |
Candidate | The type of the actual object to invoke. |
instance | An opaque instance of the underlying type, if required. |
candidate | The actual object to invoke. |
args | Parameters to use to invoke the object. |
Definition at line 379 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_invoke | ( | const meta_ctx & | ctx, |
meta_handle | instance, | ||
meta_any *const | args | ||
) |
Tries to invoke a function given a list of erased parameters.
Type | Reflected type to which the function is associated. |
Candidate | The actual function to invoke. |
Policy | Optional policy (no policy set by default). |
ctx | The context from which to search for meta types. |
instance | An opaque instance of the underlying type, if required. |
args | Parameters to use to invoke the function. |
Definition at line 414 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_invoke | ( | meta_handle | instance, |
Candidate && | candidate, | ||
meta_any *const | args | ||
) |
Tries to invoke an object given a list of erased parameters.
Type | Reflected type to which the object to invoke is associated. |
Policy | Optional policy (no policy set by default). |
Candidate | The type of the actual object to invoke. |
instance | An opaque instance of the underlying type, if required. |
candidate | The actual object to invoke. |
args | Parameters to use to invoke the object. |
Definition at line 394 of file utility.hpp.
std::enable_if_t< is_meta_policy_v< Policy >, meta_any > entt::meta_invoke | ( | meta_handle | instance, |
meta_any *const | args | ||
) |
Tries to invoke a function given a list of erased parameters.
Type | Reflected type to which the function is associated. |
Candidate | The actual function to invoke. |
Policy | Optional policy (no policy set by default). |
instance | An opaque instance of the underlying type, if required. |
args | Parameters to use to invoke the function. |
Definition at line 428 of file utility.hpp.
|
noexcept |
Resets a type and all its parts.
Type | Type to reset. |
Definition at line 548 of file factory.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Resets a type and all its parts.
Resets a type and all its data members, member functions and properties, as well as its constructors, destructors and conversion functions if any.
Base classes aren't reset but the link between the two types is removed.
The type is also removed from the set of searchable types.
id | Unique identifier. |
Definition at line 523 of file factory.hpp.
|
noexcept |
Resets a type and all its parts.
Type | Type to reset. |
ctx | The context from which to reset meta types. |
Definition at line 536 of file factory.hpp.
|
inlinenoexcept |
Resets all meta types.
ctx | The context from which to reset meta types. |
Definition at line 559 of file factory.hpp.
Resets a type and all its parts.
Resets a type and all its data members, member functions and properties, as well as its constructors, destructors and conversion functions if any.
Base classes aren't reset but the link between the two types is removed.
The type is also removed from the set of searchable types.
id | Unique identifier. |
ctx | The context from which to reset meta types. |
Definition at line 500 of file factory.hpp.
bool entt::meta_setter | ( | meta_handle | instance, |
meta_any | value | ||
) |
Sets the value of a given variable.
Type | Reflected type to which the variable is associated. |
Data | The actual variable to set. |
instance | An opaque instance of the underlying type, if required. |
value | Parameter to use to set the variable. |
Definition at line 226 of file utility.hpp.
|
inlineconstexprnoexcept |
Computes the smallest power of two greater than or equal to a value (waiting for C++20 and std::bit_ceil
).
value | The value to use. |
Definition at line 30 of file memory.hpp.
|
noexcept |
Compares two handles.
Args | Scope of the first handle. |
Other | Scope of the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 371 of file handle.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 241 of file hashed_string.hpp.
|
noexcept |
Compares the contents of two delegates.
Ret | Return type of a function type. |
Args | Types of arguments of a function type. |
lhs | A valid delegate object. |
rhs | A valid delegate object. |
Definition at line 311 of file delegate.hpp.
|
constexprnoexcept |
Compares a null object and an identifier of any type.
Entity | Type of identifier. |
entity | Identifier with which to compare. |
other | A null object yet to be converted. |
Definition at line 272 of file entity.hpp.
|
constexprnoexcept |
Compares a tombstone object and an identifier of any type.
Entity | Type of identifier. |
entity | Identifier with which to compare. |
other | A tombstone object yet to be converted. |
Definition at line 352 of file entity.hpp.
|
constexprnoexcept |
Comparison operator.
Type | Value type of the iota iterator. |
lhs | A properly initialized iota iterator. |
rhs | A properly initialized iota iterator. |
Definition at line 131 of file iterator.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 185 of file resource.hpp.
|
inlineconstexprnoexcept |
Compares the contents of two type info objects.
lhs | A type info object. |
rhs | A type info object. |
Definition at line 190 of file type_info.hpp.
|
constexprnoexcept |
User defined literal for hashed strings.
str | The literal without its suffix. |
Definition at line 309 of file hashed_string.hpp.
|
constexprnoexcept |
User defined literal for hashed wstrings.
str | The literal without its suffix. |
Definition at line 318 of file hashed_string.hpp.
|
constexpr |
Concatenates multiple type lists.
Type | Types provided by the first type list. |
Other | Types provided by the second type list. |
Definition at line 209 of file type_traits.hpp.
|
constexpr |
Concatenates multiple value lists.
Value | Values provided by the first value list. |
Other | Values provided by the second value list. |
Definition at line 473 of file type_traits.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 253 of file hashed_string.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 198 of file resource.hpp.
Compares two type info objects.
lhs | A valid type info object. |
rhs | A valid type info object. |
Definition at line 200 of file type_info.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 266 of file hashed_string.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 225 of file resource.hpp.
Compares two type info objects.
lhs | A valid type info object. |
rhs | A valid type info object. |
Definition at line 211 of file type_info.hpp.
|
noexcept |
Compares two handles.
Args | Scope of the first handle. |
Other | Scope of the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 357 of file handle.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 229 of file hashed_string.hpp.
|
constexprnoexcept |
Compares a null object and an identifier of any type.
Entity | Type of identifier. |
entity | Identifier with which to compare. |
other | A null object yet to be converted. |
Definition at line 260 of file entity.hpp.
|
constexprnoexcept |
Compares a tombstone object and an identifier of any type.
Entity | Type of identifier. |
entity | Identifier with which to compare. |
other | A tombstone object yet to be converted. |
Definition at line 340 of file entity.hpp.
|
constexprnoexcept |
Comparison operator.
Type | Value type of the iota iterator. |
lhs | A properly initialized iota iterator. |
rhs | A properly initialized iota iterator. |
Definition at line 119 of file iterator.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 172 of file resource.hpp.
|
inlineconstexprnoexcept |
Compares the contents of two type info objects.
lhs | A type info object. |
rhs | A type info object. |
Definition at line 180 of file type_info.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 279 of file hashed_string.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 211 of file resource.hpp.
Compares two type info objects.
lhs | A valid type info object. |
rhs | A valid type info object. |
Definition at line 222 of file type_info.hpp.
|
constexprnoexcept |
Compares two hashed strings.
Char | Character type. |
lhs | A valid hashed string. |
rhs | A valid hashed string. |
Definition at line 292 of file hashed_string.hpp.
|
noexcept |
Compares two handles.
Lhs | Type of resource managed by the first handle. |
Rhs | Type of resource managed by the second handle. |
lhs | A valid handle. |
rhs | A valid handle. |
Definition at line 239 of file resource.hpp.
Compares two type info objects.
lhs | A valid type info object. |
rhs | A valid type info object. |
Definition at line 233 of file type_info.hpp.
|
constexprnoexcept |
Constant utility to disambiguate overloaded functions.
Func | Function type of the desired overload. |
func | A valid pointer to a function. |
Definition at line 45 of file utility.hpp.
|
constexprnoexcept |
Constant utility to disambiguate overloaded members of a class.
Type | Type of the desired overload. |
Class | Type of class to which the member belongs. |
member | A valid pointer to a member. |
Definition at line 34 of file utility.hpp.
entt::overloaded | ( | Func... | ) | -> overloaded< Func... > |
Deduction guide.
Func | Types of function objects. |
decltype(auto) entt::poly_call | ( | Poly && | self, |
Args &&... | args | ||
) |
Shortcut for calling poly_base<Type>::invoke
.
Member | Index of the function to invoke. |
Poly | A fully defined poly object. |
Args | Types of arguments to pass to the function. |
self | A reference to the poly object that made the call. |
args | The arguments to pass to the function. |
|
constexprnoexcept |
Utility function to design allocation-aware containers.
Allocator | Type of allocator. |
lhs | A valid allocator. |
rhs | Another valid allocator. |
Definition at line 74 of file memory.hpp.
|
constexprnoexcept |
Utility function to design allocation-aware containers.
Allocator | Type of allocator. |
lhs | A valid allocator. |
rhs | Another valid allocator. |
Definition at line 87 of file memory.hpp.
|
constexprnoexcept |
Utility function to design allocation-aware containers.
Allocator | Type of allocator. |
lhs | A valid allocator. |
rhs | Another valid allocator. |
Definition at line 100 of file memory.hpp.
|
noexcept |
Returns the meta type associated with a given type.
Type | Type to use to search for a meta type. |
Definition at line 32 of file resolve.hpp.
|
inlinenoexcept |
Returns a range to use to visit all meta types.
Definition at line 50 of file resolve.hpp.
Returns the meta type associated with a given identifier, if any.
id | Unique identifier. |
Definition at line 75 of file resolve.hpp.
Returns the meta type associated with a given type.
Type | Type to use to search for a meta type. |
ctx | The context from which to search for meta types. |
Definition at line 21 of file resolve.hpp.
|
inlinenoexcept |
Returns a range to use to visit all meta types.
ctx | The context from which to search for meta types. |
Definition at line 41 of file resolve.hpp.
Returns the meta type associated with a given identifier, if any.
ctx | The context from which to search for meta types. |
id | Unique identifier. |
Definition at line 60 of file resolve.hpp.
Returns the meta type associated with a given type info object.
ctx | The context from which to search for meta types. |
info | The type info object of the requested type. |
Definition at line 85 of file resolve.hpp.
Returns the meta type associated with a given type info object.
info | The type info object of the requested type. |
Definition at line 96 of file resolve.hpp.
entt::sigh_helper | ( | Registry & | ) | -> sigh_helper< Registry > |
Deduction guide.
Registry | Basic registry type. |
entt::sink | ( | sigh< Ret(Args...), Allocator > & | ) | -> sink< sigh< Ret(Args...), Allocator > > |
Deduction guide.
It allows to deduce the signal handler type of a sink directly from the signal it refers to.
Ret | Return type of a function type. |
Args | Types of arguments of a function type. |
Allocator | Type of allocator used to manage memory and elements. |
|
inlineconstexpr |
Swaps two compressed pair objects.
First | The type of the first element that the pairs store. |
Second | The type of the second element that the pairs store. |
lhs | A valid compressed pair object. |
rhs | A valid compressed pair object. |
Definition at line 239 of file compressed_pair.hpp.
|
constexprnoexcept |
Unwraps fancy pointers, does nothing otherwise (waiting for C++20).
Type | Pointer type. |
ptr | Fancy or raw pointer. |
Definition at line 59 of file memory.hpp.
basic_registry< Args... >::entity_type entt::to_entity | ( | const basic_registry< Args... > & | reg, |
const Component & | instance | ||
) |
Returns the entity part once converted to the underlying type.
Args | Registry type template parameters. |
Component | Type of component. |
reg | A registry that contains the given entity and its components. |
instance | A valid component instance. |
Definition at line 151 of file helper.hpp.
auto entt::to_entity | ( | const basic_storage< Args... > & | storage, |
const typename basic_storage< Args... >::value_type & | instance | ||
) | -> typename basic_storage<Args...>::entity_type |
Returns the entity associated with a given component.
Args | Storage type template parameters. |
storage | A storage that contains the given component. |
instance | A valid component instance. |
Definition at line 128 of file helper.hpp.
|
constexprnoexcept |
Returns the entity part once converted to the underlying type.
Entity | The value type. |
value | The value to convert. |
Definition at line 181 of file entity.hpp.
|
constexprnoexcept |
Converts an entity to its underlying type.
Entity | The value type. |
value | The value to convert. |
Definition at line 170 of file entity.hpp.
|
constexprnoexcept |
Returns the version part once converted to the underlying type.
Entity | The value type. |
value | The value to convert. |
Definition at line 192 of file entity.hpp.
|
noexcept |
Returns the type info object associated to a given type.
The returned element refers to an object with static storage duration.
The type doesn't need to be a complete type. If the type is a reference, the result refers to the referenced type. In all cases, top-level cv-qualifiers are ignored.
Type | Type for which to generate a type info object. |
Definition at line 249 of file type_info.hpp.
|
noexcept |
Returns the type info object associated to a given type.
The returned element refers to an object with static storage duration.
The type doesn't need to be a complete type. If the type is a reference, the result refers to the referenced type. In all cases, top-level cv-qualifiers are ignored.
Type | Type for which to generate a type info object. |
Definition at line 260 of file type_info.hpp.
|
constexpr |
Uses-allocator construction utility (waiting for C++20).
Primarily intended for internal use. Creates an object of a given type by means of uses-allocator construction at an uninitialized memory location.
Type | Type of object to create. |
Allocator | Type of allocator used to manage memory and elements. |
Args | Types of arguments to use to construct the object. |
value | Memory location in which to place the object. |
allocator | The allocator to use. |
args | Parameters to use to construct the object. |
Definition at line 277 of file memory.hpp.
|
constexprnoexcept |
|
constexprnoexcept |
Uses-allocator construction utility (waiting for C++20).
Primarily intended for internal use. Prepares the argument list needed to create an object of a given type by means of uses-allocator construction.
Type | Type to return arguments for. |
Allocator | Type of allocator used to manage memory and elements. |
Args | Types of arguments to use to construct the object. |
allocator | The allocator to use. |
args | Parameters to use to construct the object. |
Definition at line 240 of file memory.hpp.
|
inlineconstexpr |
Variable template for the choice trick.
N | Number of choices available. |
Definition at line 33 of file type_traits.hpp.
|
inlineconstexpr |
Variable template used to ease the definition of collectors.
Definition at line 109 of file observer.hpp.
|
inlineconstexpr |
Constant of type connect_arg_t used to disambiguate calls.
Candidate | Element to connect (likely a free or member function). |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Helper variable template.
Ret | The type to which the return type of the function should be convertible. |
Func | A valid function type. |
Args | The list of arguments to use to probe the function type. |
Definition at line 652 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Func | A valid function type. |
Args | The list of arguments to use to probe the function type. |
Definition at line 628 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | The type to test. |
Definition at line 671 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | The type to test. |
Definition at line 719 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | The type to test. |
Definition at line 818 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | The type to test. |
Definition at line 703 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | Potentially pointer-like type. |
Definition at line 50 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
Type | Type to check. |
Definition at line 54 of file policy.hpp.
|
inlineconstexpr |
Helper variable template.
Type | The type to test. |
Definition at line 738 of file type_traits.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
Constant of type meta_context_arg_t used to disambiguate calls.
Definition at line 31 of file context.hpp.
Helper variable template.
Value | Value used to differentiate between different variables. |
Definition at line 52 of file monostate.hpp.
|
inlineconstexpr |
Compile-time constant for null entities.
There exist implicit conversions from this variable to identifiers of any allowed type. Similarly, there exist comparison operators between the null entity and any other identifier.
Definition at line 363 of file entity.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
Helper variable template.
Type | The type of which to return the size. |
Definition at line 73 of file type_traits.hpp.
|
inlineconstexpr |
Compile-time constant for tombstone entities.
There exist implicit conversions from this variable to identifiers of any allowed type. Similarly, there exist comparison operators between the tombstone entity and any other identifier.
Definition at line 372 of file entity.hpp.
|
inlineconstexpr |
Helper variable template.
List | Type list. |
Type | Type to look for. |
Definition at line 312 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
List | Type list. |
Type | Type to look for and for which to return the index. |
Definition at line 200 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template to be used to repeat the same value a number of times equal to the size of a given parameter pack.
Value | A value to repeat. |
Definition at line 89 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
List | Value list. |
Value | Value to look for. |
Definition at line 573 of file type_traits.hpp.
|
inlineconstexpr |
Helper type.
Index | Index of the value to return. |
List | Value list to search into. |
Definition at line 412 of file type_traits.hpp.
|
inlineconstexpr |
Helper variable template.
List | Value list. |
Value | Value to look for and for which to return the index. |
Definition at line 464 of file type_traits.hpp.