EnTT 4.0.0
Loading...
Searching...
No Matches
entt::component_traits< Type, Entity > Struct Template Reference

Common way to access various properties of components. More...

#include <component.hpp>

Public Types

using element_type = Type
 Element type.
using entity_type = Entity
 Underlying entity identifier.

Static Public Attributes

static constexpr bool in_place_delete = internal::in_place_delete<Type>::value
 Pointer stability, default is false.
static constexpr stl::size_t page_size = internal::page_size<Type>::value
 Page size, default is ENTT_PACKED_PAGE for non-empty types.

Detailed Description

template<cvref_unqualified Type, typename Entity>
struct entt::component_traits< Type, Entity >

Common way to access various properties of components.

Template Parameters
TypeElement type.
EntityA valid entity type.

Definition at line 45 of file component.hpp.

Member Typedef Documentation

◆ element_type

template<cvref_unqualified Type, typename Entity>
using entt::component_traits< Type, Entity >::element_type = Type

Element type.

Definition at line 47 of file component.hpp.

◆ entity_type

template<cvref_unqualified Type, typename Entity>
using entt::component_traits< Type, Entity >::entity_type = Entity

Underlying entity identifier.

Definition at line 49 of file component.hpp.

Member Data Documentation

◆ in_place_delete

template<cvref_unqualified Type, typename Entity>
bool entt::component_traits< Type, Entity >::in_place_delete = internal::in_place_delete<Type>::value
staticconstexpr

Pointer stability, default is false.

Definition at line 52 of file component.hpp.

◆ page_size

template<cvref_unqualified Type, typename Entity>
stl::size_t entt::component_traits< Type, Entity >::page_size = internal::page_size<Type>::value
staticconstexpr

Page size, default is ENTT_PACKED_PAGE for non-empty types.

Definition at line 54 of file component.hpp.


The documentation for this struct was generated from the following file: