OpenLexocad  27.1
entt::entt_traits< std::uint32_t > Struct Template Reference

Entity traits for a 32 bits entity identifier. More...

#include <entt.hpp>

Public Types

using entity_type = std::uint32_t
 Underlying entity type. More...
 
using version_type = std::uint16_t
 Underlying version type. More...
 
using difference_type = std::int64_t
 Difference type. More...
 

Static Public Attributes

static constexpr std::uint32_t entity_mask = 0xFFFFF
 Mask to use to get the entity number out of an identifier. More...
 
static constexpr std::uint32_t version_mask = 0xFFF
 Mask to use to get the version out of an identifier. More...
 
static constexpr auto entity_shift = 20
 Extent of the entity number within an identifier. More...
 

Detailed Description

template<>
struct entt::entt_traits< std::uint32_t >

Entity traits for a 32 bits entity identifier.

A 32 bits entity identifier guarantees:

  • 20 bits for the entity number (suitable for almost all the games).
  • 12 bit for the version (resets in [0-4095]).

Member Typedef Documentation

◆ difference_type

using entt::entt_traits< std::uint32_t >::difference_type = std::int64_t

Difference type.

◆ entity_type

using entt::entt_traits< std::uint32_t >::entity_type = std::uint32_t

Underlying entity type.

◆ version_type

using entt::entt_traits< std::uint32_t >::version_type = std::uint16_t

Underlying version type.

Member Data Documentation

◆ entity_mask

constexpr std::uint32_t entt::entt_traits< std::uint32_t >::entity_mask = 0xFFFFF
static

Mask to use to get the entity number out of an identifier.

◆ entity_shift

constexpr auto entt::entt_traits< std::uint32_t >::entity_shift = 20
static

Extent of the entity number within an identifier.

◆ version_mask

constexpr std::uint32_t entt::entt_traits< std::uint32_t >::version_mask = 0xFFF
static

Mask to use to get the version out of an identifier.


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