Skip to content
Flecs v4.1
flecs::_::enum_constant< T > Struct Template Reference

Enumeration constant data. More...

#include <enum.hpp>

Public Member Functions

bool discovered () const

Public Attributes

int32_t index
 Global index used to obtain a world-local entity ID.
T value
 The constant value.
const char * name
 The constant name.

Detailed Description

template<typename T>
struct flecs::_::enum_constant< T >

Enumeration constant data.

Template Parameters
TThe underlying type of the enum.

Definition at line 168 of file enum.hpp.

Member Function Documentation

◆ discovered()

template<typename T>
bool flecs::_::enum_constant< T >::discovered ( ) const
inline

Definition at line 181 of file enum.hpp.

Member Data Documentation

◆ index

template<typename T>
int32_t flecs::_::enum_constant< T >::index

Global index used to obtain a world-local entity ID.

Definition at line 171 of file enum.hpp.

◆ name

template<typename T>
const char* flecs::_::enum_constant< T >::name

The constant name.

Definition at line 179 of file enum.hpp.

◆ value

template<typename T>
T flecs::_::enum_constant< T >::value

The constant value.

Definition at line 177 of file enum.hpp.


The documentation for this struct was generated from the following file:
  • include/flecs/addons/cpp/utils/enum.hpp