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

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

#include <entt.hpp>

Public Types

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

Static Public Attributes

static constexpr std::uint64_t entity_mask = 0xFFFFFFFF
 Mask to use to get the entity number out of an identifier. More...
 
static constexpr std::uint64_t version_mask = 0xFFFFFFFF
 Mask to use to get the version out of an identifier. More...
 
static constexpr auto entity_shift = 32
 Extent of the entity number within an identifier. More...
 

Detailed Description

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

Entity traits for a 64 bits entity identifier.

A 64 bits entity identifier guarantees:

  • 32 bits for the entity number (an indecently large number).
  • 32 bit for the version (an indecently large number).

Member Typedef Documentation

◆ difference_type

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

Difference type.

◆ entity_type

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

Underlying entity type.

◆ version_type

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

Underlying version type.

Member Data Documentation

◆ entity_mask

constexpr std::uint64_t entt::entt_traits< std::uint64_t >::entity_mask = 0xFFFFFFFF
static

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

◆ entity_shift

constexpr auto entt::entt_traits< std::uint64_t >::entity_shift = 32
static

Extent of the entity number within an identifier.

◆ version_mask

constexpr std::uint64_t entt::entt_traits< std::uint64_t >::version_mask = 0xFFFFFFFF
static

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


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