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

Interned component-cache symbol identifier. More...

#include <component_desc.h>

Public Member Functions

GAIA_NODISCARD constexpr bool valid () const noexcept
 Checks whether the identifier refers to an interned string.
 
GAIA_NODISCARD constexpr bool operator== (SymbolId other) const noexcept
 Compares two interned identifiers.
 
GAIA_NODISCARD constexpr bool operator!= (SymbolId other) const noexcept
 Compares two interned identifiers for inequality.
 

Public Attributes

uint32_t value = UINT32_MAX
 Zero-based index in the owning component cache symbol table, or UINT32_MAX when unset.
 

Detailed Description

Interned component-cache symbol identifier.

Member Function Documentation

◆ operator!=()

GAIA_NODISCARD constexpr bool gaia::ecs::SymbolId::operator!= ( SymbolId  other) const
inlineconstexprnoexcept

Compares two interned identifiers for inequality.

Parameters
otherIdentifier to compare.

◆ operator==()

GAIA_NODISCARD constexpr bool gaia::ecs::SymbolId::operator== ( SymbolId  other) const
inlineconstexprnoexcept

Compares two interned identifiers.

Parameters
otherIdentifier to compare.

◆ valid()

GAIA_NODISCARD constexpr bool gaia::ecs::SymbolId::valid ( ) const
inlineconstexprnoexcept

Checks whether the identifier refers to an interned string.

Returns
True when the identifier refers to an interned string.

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