Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::_::component_id< T, Sparse, Owner, Construct > Struct Template Reference

Public Types

using type = T
 
using construct_type = Construct
 

Public Member Functions

flecs::entity_t owner (world_t *world) const
 

Public Attributes

flecs::id_t id
 
flecs::entity_t entity
 

Static Public Attributes

static constexpr bool sparse = Sparse
 

Detailed Description

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
struct flecs::_::component_id< T, Sparse, Owner, Construct >

Definition at line 7 of file component_id.hpp.

Member Typedef Documentation

◆ construct_type

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
using flecs::_::component_id< T, Sparse, Owner, Construct >::construct_type = Construct

Definition at line 9 of file component_id.hpp.

◆ type

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
using flecs::_::component_id< T, Sparse, Owner, Construct >::type = T

Definition at line 8 of file component_id.hpp.

Member Function Documentation

◆ owner()

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
flecs::entity_t flecs::_::component_id< T, Sparse, Owner, Construct >::owner ( world_t * world) const
inline

Definition at line 14 of file component_id.hpp.

Member Data Documentation

◆ entity

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
flecs::entity_t flecs::_::component_id< T, Sparse, Owner, Construct >::entity

Definition at line 12 of file component_id.hpp.

◆ id

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
flecs::id_t flecs::_::component_id< T, Sparse, Owner, Construct >::id

Definition at line 11 of file component_id.hpp.

◆ sparse

template<typename T = void, bool Sparse = false, typename Owner = void, typename Construct = T>
constexpr bool flecs::_::component_id< T, Sparse, Owner, Construct >::sparse = Sparse
staticconstexpr

Definition at line 10 of file component_id.hpp.


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