Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::EntityLookupKey Struct Reference

Hashmap lookup structure used for Entity. More...

#include <id.h>

Public Types

using LookupHash = core::direct_hash_key< uint64_t >
 Direct hash type used for entity lookups.
 

Public Member Functions

 EntityLookupKey (Entity entity)
 
 EntityLookupKey (const EntityLookupKey &)=default
 
 EntityLookupKey (EntityLookupKey &&) noexcept=default
 
EntityLookupKeyoperator= (const EntityLookupKey &)=default
 
EntityLookupKeyoperator= (EntityLookupKey &&) noexcept=default
 
Entity entity () const
 Entity held by this lookup key.
 
size_t hash () const
 Hash of the entity value.
 
bool operator== (const EntityLookupKey &other) const
 
bool operator!= (const EntityLookupKey &other) const
 

Static Public Attributes

static constexpr bool IsDirectHashKey = true
 Marks this key as a direct hash key.
 

Detailed Description

Hashmap lookup structure used for Entity.

Member Function Documentation

◆ entity()

Entity gaia::ecs::EntityLookupKey::entity ( ) const
inline

Entity held by this lookup key.

Returns
Entity held by this lookup key.

◆ hash()

size_t gaia::ecs::EntityLookupKey::hash ( ) const
inline

Hash of the entity value.

Returns
Hash of the entity value.

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