Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::_ Namespace Reference

Int to enum. More...

Classes

struct  always_false
struct  arg_list
struct  builder
struct  component_binding_ctx
struct  delegate
struct  each_column_base
struct  each_delegate
struct  each_field
struct  each_field< T, if_t< !is_pointer< T >::value &&!is_empty< actual_type_t< T > >::value &&!is_actual< T >::value > >
struct  each_field< T, if_t< !is_pointer< T >::value &&!is_empty< actual_type_t< T > >::value &&is_actual< T >::value > >
struct  each_field< T, if_t< is_empty< actual_type_t< T > >::value &&!is_pointer< T >::value > >
struct  each_field< T, if_t< is_pointer< T >::value &&!is_empty< actual_type_t< T > >::value > >
struct  each_ref_field
struct  entity_observer_delegate
struct  entity_observer_factory
struct  entity_payload_observer_delegate
struct  entity_with_delegate
struct  entity_with_delegate< Func, if_t< is_callable< Func >::value > >
struct  entity_with_delegate_impl
struct  entity_with_delegate_impl< arg_list< Args ... > >
struct  enum_constant
 Enumeration constant data. More...
struct  enum_is_valid
struct  enum_reflection
 Provides utilities for enum reflection. More...
struct  enum_type
 Class that scans an enum for constants, extracts names & creates entities. More...
struct  event_from_func
struct  event_from_func< Func, if_t< arity< Func >::value==1 > >
struct  event_from_func< Func, if_t< arity< Func >::value==2 > >
struct  field_ptr
struct  field_ptrs
struct  find_delegate
struct  function_traits
struct  function_traits_defs
struct  function_traits_impl
struct  function_traits_impl< ReturnType(*)(Args...)>
struct  function_traits_impl< ReturnType(Args...)>
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const & >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const && >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const volatile & >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const volatile && >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) const volatile >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) volatile & >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) volatile && >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...) volatile >
struct  function_traits_impl< ReturnType(ClassType::*)(Args...)>
struct  function_traits_no_cv
struct  function_traits_no_cv< T, decltype((void)&T::operator())>
struct  has_operator_equal
struct  has_operator_equal< T, void_t< decltype(std::declval< const T & >()==std::declval< const T & >())> >
struct  has_operator_greater
struct  has_operator_greater< T, void_t< decltype(std::declval< const T & >() > std::declval< const T & >())> >
struct  has_operator_less
struct  has_operator_less< T, void_t< decltype(std::declval< const T & >()< std::declval< const T & >())> >
struct  node_builder
struct  pair_base
struct  placement_new_tag_t
struct  query_delegate
struct  query_delegate< Func, if_not_t< is_same< first_arg_t< Func >, flecs::entity >::value > >
struct  query_delegate< Func, if_t< is_same< first_arg_t< Func >, flecs::entity >::value > >
struct  query_delegate_no_ent
struct  query_delegate_no_ent< Func, arg_list< Args ... > >
struct  query_delegate_w_ent
struct  query_delegate_w_ent< Func, arg_list< E, Args ... > >
struct  range_iterator
 Iterate over an integer range (used to iterate over entity range). More...
struct  run_delegate
struct  sig
struct  to_constant
struct  type
struct  type< T, if_not_t< is_pair< T >::value > >
struct  type< T, if_t< is_pair< T >::value > >
struct  type_impl

Typedefs

template<typename...>
using void_t = void
template<typename ... Components>
using alert_builder_base
template<typename Func>
using event_from_func_t = typename event_from_func<Func>::type
template<typename ... Components>
using observer_builder_base
template<typename ... Components>
using pipeline_builder_base
template<typename ... Components>
using query_builder_base
template<typename ... Components>
using system_builder_base

Functions

template<typename T>
const char * symbol_name ()
template<>
const char * symbol_name< uint8_t > ()
template<>
const char * symbol_name< uint16_t > ()
template<>
const char * symbol_name< uint32_t > ()
template<>
const char * symbol_name< uint64_t > ()
template<>
const char * symbol_name< int8_t > ()
template<>
const char * symbol_name< int16_t > ()
template<>
const char * symbol_name< int32_t > ()
template<>
const char * symbol_name< int64_t > ()
template<>
const char * symbol_name< float > ()
template<>
const char * symbol_name< double > ()
template<typename T, enable_if_t< std::is_trivial< T >::value==true > * = nullptr>
void register_lifecycle_actions (ecs_world_t *, ecs_entity_t)
template<typename T, enable_if_t< std::is_trivial< T >::value==false > * = nullptr>
void register_lifecycle_actions (ecs_world_t *world, ecs_entity_t component)
template<typename T>
void ctor_impl (void *ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void dtor_impl (void *ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void copy_impl (void *dst_ptr, const void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void move_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void copy_ctor_impl (void *dst_ptr, const void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void move_ctor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T>
void ctor_move_dtor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T, if_not_t< std::is_trivially_move_assignable< T >::value > = 0>
void move_dtor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T, if_t< std::is_trivially_move_assignable< T >::value > = 0>
void move_dtor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info)
template<typename T, if_t< std::is_trivially_constructible< T >::value > = 0>
ecs_xtor_t ctor (ecs_flags32_t &)
template<typename T, if_t< ! std::is_default_constructible< T >::value > = 0>
ecs_xtor_t ctor (ecs_flags32_t &flags)
template<typename T, if_t< ! std::is_trivially_constructible< T >::value &&std::is_default_constructible< T >::value > = 0>
ecs_xtor_t ctor (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_destructible< T >::value > = 0>
ecs_xtor_t dtor (ecs_flags32_t &)
template<typename T, if_t< std::is_destructible< T >::value &&! std::is_trivially_destructible< T >::value > = 0>
ecs_xtor_t dtor (ecs_flags32_t &)
template<typename T, if_not_t< std::is_destructible< T >::value > = 0>
ecs_xtor_t dtor (ecs_flags32_t &flags)
template<typename T, if_t< std::is_trivially_copyable< T >::value > = 0>
ecs_copy_t copy (ecs_flags32_t &)
template<typename T, if_t< ! std::is_trivially_copyable< T >::value &&! std::is_copy_assignable< T >::value > = 0>
ecs_copy_t copy (ecs_flags32_t &flags)
template<typename T, if_t< std::is_copy_assignable< T >::value &&! std::is_trivially_copyable< T >::value > = 0>
ecs_copy_t copy (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_move_assignable< T >::value > = 0>
ecs_move_t move (ecs_flags32_t &)
template<typename T, if_not_t< std::is_move_assignable< T >::value > = 0>
ecs_move_t move (ecs_flags32_t &flags)
template<typename T, if_t< std::is_move_assignable< T >::value &&! std::is_trivially_move_assignable< T >::value > = 0>
ecs_move_t move (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_copy_constructible< T >::value > = 0>
ecs_copy_t copy_ctor (ecs_flags32_t &)
template<typename T, if_t< ! std::is_copy_constructible< T >::value > = 0>
ecs_copy_t copy_ctor (ecs_flags32_t &flags)
template<typename T, if_t< std::is_copy_constructible< T >::value &&! std::is_trivially_copy_constructible< T >::value > = 0>
ecs_copy_t copy_ctor (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_move_constructible< T >::value > = 0>
ecs_move_t move_ctor (ecs_flags32_t &)
template<typename T, if_not_t< std::is_move_constructible< T >::value > = 0>
ecs_move_t move_ctor (ecs_flags32_t &flags)
template<typename T, if_t< std::is_move_constructible< T >::value &&! std::is_trivially_move_constructible< T >::value > = 0>
ecs_move_t move_ctor (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_move_constructible< T >::value &&std::is_trivially_destructible< T >::value > = 0>
ecs_move_t ctor_move_dtor (ecs_flags32_t &)
template<typename T, if_t< ! std::is_move_constructible< T >::value||! std::is_destructible< T >::value > = 0>
ecs_move_t ctor_move_dtor (ecs_flags32_t &flags)
template<typename T, if_t< !(std::is_trivially_move_constructible< T >::value &&std::is_trivially_destructible< T >::value) &&std::is_move_constructible< T >::value &&std::is_destructible< T >::value > = 0>
ecs_move_t ctor_move_dtor (ecs_flags32_t &)
template<typename T, if_t< std::is_trivially_move_assignable< T >::value &&std::is_trivially_destructible< T >::value > = 0>
ecs_move_t move_dtor (ecs_flags32_t &)
template<typename T, if_t< ! std::is_move_assignable< T >::value||! std::is_destructible< T >::value > = 0>
ecs_move_t move_dtor (ecs_flags32_t &flags)
template<typename T, if_t< !(std::is_trivially_move_assignable< T >::value &&std::is_trivially_destructible< T >::value) &&std::is_move_assignable< T >::value &&std::is_destructible< T >::value > = 0>
ecs_move_t move_dtor (ecs_flags32_t &)
template<typename T, if_t< has_operator_less< T >::value &&has_operator_greater< T >::value &&!has_operator_equal< T >::value > = 0>
int compare_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_less< T >::value &&has_operator_equal< T >::value > = 0>
int compare_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_greater< T >::value &&has_operator_equal< T >::value &&!has_operator_less< T >::value > = 0>
int compare_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_less< T >::value &&!has_operator_greater< T >::value &&!has_operator_equal< T >::value > = 0>
int compare_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_greater< T >::value &&!has_operator_less< T >::value &&!has_operator_equal< T >::value > = 0>
int compare_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_less< T >::value||has_operator_greater< T >::value > = 0>
ecs_cmp_t compare ()
template<typename T, if_t< !has_operator_less< T >::value &&!has_operator_greater< T >::value > = 0>
ecs_cmp_t compare ()
template<typename T, if_t< has_operator_equal< T >::value > = 0>
bool equals_impl (const void *a, const void *b, const ecs_type_info_t *)
template<typename T, if_t< has_operator_equal< T >::value > = 0>
ecs_equals_t equals ()
template<typename T, if_t< !has_operator_equal< T >::value > = 0>
ecs_equals_t equals ()
void entity_observer_create (flecs::world_t *world, flecs::entity_t event, flecs::entity_t entity, ecs_iter_action_t callback, void *callback_ctx, ecs_ctx_free_t callback_ctx_free)
template<typename T>
ecs_entity_t do_import (world &world, const char *symbol)
template<typename T>
flecs::entity import (world &world)
void system_init (flecs::world &world)
void timer_init (flecs::world &world)
template<typename E>
constexpr size_t enum_type_len ()
template<typename E, E C>
constexpr bool enum_constant_is_valid ()
 Test if value is valid for enumeration.
template<typename E, underlying_type_t< E > C>
constexpr bool enum_constant_is_valid_wrap ()
template<typename T, if_t< is_const_p< T >::value > = 0>
constexpr flecs::inout_kind_t type_to_inout ()
template<typename T, if_t< is_reference< T >::value > = 0>
constexpr flecs::inout_kind_t type_to_inout ()
template<typename T, if_not_t< is_const_p< T >::value||is_reference< T >::value > = 0>
constexpr flecs::inout_kind_t type_to_inout ()
template<typename T, if_t< is_pointer< T >::value > = 0>
constexpr flecs::oper_kind_t type_to_oper ()
template<typename T, if_not_t< is_pointer< T >::value > = 0>
constexpr flecs::oper_kind_t type_to_oper ()
template<class Ty>
void destruct_obj (Ty *_ptr)
template<class Ty>
void free_obj (void *_ptr)

Variables

template<typename T>
int32_t type_impl< T >::s_index
template<typename T>
size_t type_impl< T >::s_size
template<typename T>
size_t type_impl< T >::s_alignment
template<typename E, underlying_type_t< E > Value>
constexpr E to_constant< E, Value >::value
constexpr placement_new_tag_t placement_new_tag {}

Detailed Description

Int to enum.

Typedef Documentation

◆ alert_builder_base

template<typename ... Components>
using flecs::_::alert_builder_base
Initial value:
alert_builder_i, Components ...>
Alert descriptor, used with ecs_alert_init().
Definition alerts.h:77
Alert builder interface.
Definition builder_i.hpp:17
Alert builder.
Definition builder.hpp:24

Definition at line 14 of file builder.hpp.

◆ event_from_func_t

template<typename Func>
using flecs::_::event_from_func_t = typename event_from_func<Func>::type

Definition at line 30 of file decl.hpp.

◆ observer_builder_base

template<typename ... Components>
using flecs::_::observer_builder_base
Initial value:
observer_builder_i, Components ...>
Used with ecs_observer_init().
Definition flecs.h:1318
Observer builder interface.
Definition builder_i.hpp:17
Observer builder.
Definition builder.hpp:24

Definition at line 14 of file builder.hpp.

◆ pipeline_builder_base

template<typename ... Components>
using flecs::_::pipeline_builder_base
Initial value:
pipeline_builder_i, Components ...>
Pipeline descriptor, used with ecs_pipeline_init().
Definition pipeline.h:88
Pipeline builder interface.
Definition builder_i.hpp:17
Pipeline builder.
Definition builder.hpp:24

Definition at line 14 of file builder.hpp.

◆ query_builder_base

template<typename ... Components>
using flecs::_::query_builder_base
Initial value:
query_builder_i, Components ...>
Used with ecs_query_init().
Definition flecs.h:1244
Query builder interface.
Definition builder_i.hpp:18
Query builder.
Definition builder.hpp:24

Definition at line 14 of file builder.hpp.

◆ system_builder_base

template<typename ... Components>
using flecs::_::system_builder_base
Initial value:
system_builder_i, Components ...>
Use with ecs_system_init() to create or update a system.
Definition system.h:38
System builder interface.
Definition builder_i.hpp:18
System builder.
Definition builder.hpp:24

Definition at line 14 of file builder.hpp.

◆ void_t

template<typename...>
using flecs::_::void_t = void

Definition at line 353 of file lifecycle_traits.hpp.

Function Documentation

◆ compare() [1/2]

template<typename T, if_t< has_operator_less< T >::value||has_operator_greater< T >::value > = 0>
ecs_cmp_t flecs::_::compare ( )

Definition at line 463 of file lifecycle_traits.hpp.

◆ compare() [2/2]

template<typename T, if_t< !has_operator_less< T >::value &&!has_operator_greater< T >::value > = 0>
ecs_cmp_t flecs::_::compare ( )

Definition at line 470 of file lifecycle_traits.hpp.

◆ compare_impl() [1/5]

template<typename T, if_t< has_operator_less< T >::value &&has_operator_greater< T >::value &&!has_operator_equal< T >::value > = 0>
int flecs::_::compare_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 398 of file lifecycle_traits.hpp.

◆ compare_impl() [2/5]

template<typename T, if_t< has_operator_less< T >::value &&has_operator_equal< T >::value > = 0>
int flecs::_::compare_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 411 of file lifecycle_traits.hpp.

◆ compare_impl() [3/5]

template<typename T, if_t< has_operator_greater< T >::value &&has_operator_equal< T >::value &&!has_operator_less< T >::value > = 0>
int flecs::_::compare_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 424 of file lifecycle_traits.hpp.

◆ compare_impl() [4/5]

template<typename T, if_t< has_operator_less< T >::value &&!has_operator_greater< T >::value &&!has_operator_equal< T >::value > = 0>
int flecs::_::compare_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 437 of file lifecycle_traits.hpp.

◆ compare_impl() [5/5]

template<typename T, if_t< has_operator_greater< T >::value &&!has_operator_less< T >::value &&!has_operator_equal< T >::value > = 0>
int flecs::_::compare_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 450 of file lifecycle_traits.hpp.

◆ copy() [1/3]

template<typename T, if_t< std::is_trivially_copyable< T >::value > = 0>
ecs_copy_t flecs::_::copy ( ecs_flags32_t & )

Definition at line 210 of file lifecycle_traits.hpp.

◆ copy() [2/3]

template<typename T, if_t< std::is_copy_assignable< T >::value &&! std::is_trivially_copyable< T >::value > = 0>
ecs_copy_t flecs::_::copy ( ecs_flags32_t & )

Definition at line 227 of file lifecycle_traits.hpp.

◆ copy() [3/3]

template<typename T, if_t< ! std::is_trivially_copyable< T >::value &&! std::is_copy_assignable< T >::value > = 0>
ecs_copy_t flecs::_::copy ( ecs_flags32_t & flags)

Definition at line 218 of file lifecycle_traits.hpp.

◆ copy_ctor() [1/3]

template<typename T, if_t< std::is_trivially_copy_constructible< T >::value > = 0>
ecs_copy_t flecs::_::copy_ctor ( ecs_flags32_t & )

Definition at line 255 of file lifecycle_traits.hpp.

◆ copy_ctor() [2/3]

template<typename T, if_t< std::is_copy_constructible< T >::value &&! std::is_trivially_copy_constructible< T >::value > = 0>
ecs_copy_t flecs::_::copy_ctor ( ecs_flags32_t & )

Definition at line 271 of file lifecycle_traits.hpp.

◆ copy_ctor() [3/3]

template<typename T, if_t< ! std::is_copy_constructible< T >::value > = 0>
ecs_copy_t flecs::_::copy_ctor ( ecs_flags32_t & flags)

Definition at line 261 of file lifecycle_traits.hpp.

◆ copy_ctor_impl()

template<typename T>
void flecs::_::copy_ctor_impl ( void * dst_ptr,
const void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 67 of file lifecycle_traits.hpp.

◆ copy_impl()

template<typename T>
void flecs::_::copy_impl ( void * dst_ptr,
const void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 39 of file lifecycle_traits.hpp.

◆ ctor() [1/3]

template<typename T, if_t< std::is_trivially_constructible< T >::value > = 0>
ecs_xtor_t flecs::_::ctor ( ecs_flags32_t & )

Definition at line 165 of file lifecycle_traits.hpp.

◆ ctor() [2/3]

template<typename T, if_t< ! std::is_trivially_constructible< T >::value &&std::is_default_constructible< T >::value > = 0>
ecs_xtor_t flecs::_::ctor ( ecs_flags32_t & )

Definition at line 181 of file lifecycle_traits.hpp.

◆ ctor() [3/3]

template<typename T, if_t< ! std::is_default_constructible< T >::value > = 0>
ecs_xtor_t flecs::_::ctor ( ecs_flags32_t & flags)

Definition at line 172 of file lifecycle_traits.hpp.

◆ ctor_impl()

template<typename T>
void flecs::_::ctor_impl ( void * ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 17 of file lifecycle_traits.hpp.

◆ ctor_move_dtor() [1/3]

template<typename T, if_t< std::is_trivially_move_constructible< T >::value &&std::is_trivially_destructible< T >::value > = 0>
ecs_move_t flecs::_::ctor_move_dtor ( ecs_flags32_t & )

Definition at line 301 of file lifecycle_traits.hpp.

◆ ctor_move_dtor() [2/3]

template<typename T, if_t< !(std::is_trivially_move_constructible< T >::value &&std::is_trivially_destructible< T >::value) &&std::is_move_constructible< T >::value &&std::is_destructible< T >::value > = 0>
ecs_move_t flecs::_::ctor_move_dtor ( ecs_flags32_t & )

Definition at line 320 of file lifecycle_traits.hpp.

◆ ctor_move_dtor() [3/3]

template<typename T, if_t< ! std::is_move_constructible< T >::value||! std::is_destructible< T >::value > = 0>
ecs_move_t flecs::_::ctor_move_dtor ( ecs_flags32_t & flags)

Definition at line 309 of file lifecycle_traits.hpp.

◆ ctor_move_dtor_impl()

template<typename T>
void flecs::_::ctor_move_dtor_impl ( void * dst_ptr,
void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 96 of file lifecycle_traits.hpp.

◆ destruct_obj()

template<class Ty>
void flecs::_::destruct_obj ( Ty * _ptr)
inline

Definition at line 48 of file utils.hpp.

◆ do_import()

template<typename T>
ecs_entity_t flecs::_::do_import ( world & world,
const char * symbol )

Definition at line 13 of file impl.hpp.

◆ dtor() [1/3]

template<typename T, if_t< std::is_trivially_destructible< T >::value > = 0>
ecs_xtor_t flecs::_::dtor ( ecs_flags32_t & )

Definition at line 187 of file lifecycle_traits.hpp.

◆ dtor() [2/3]

template<typename T, if_t< std::is_destructible< T >::value &&! std::is_trivially_destructible< T >::value > = 0>
ecs_xtor_t flecs::_::dtor ( ecs_flags32_t & )

Definition at line 195 of file lifecycle_traits.hpp.

◆ dtor() [3/3]

template<typename T, if_not_t< std::is_destructible< T >::value > = 0>
ecs_xtor_t flecs::_::dtor ( ecs_flags32_t & flags)

Definition at line 201 of file lifecycle_traits.hpp.

◆ dtor_impl()

template<typename T>
void flecs::_::dtor_impl ( void * ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 28 of file lifecycle_traits.hpp.

◆ entity_observer_create()

void flecs::_::entity_observer_create ( flecs::world_t * world,
flecs::entity_t event,
flecs::entity_t entity,
ecs_iter_action_t callback,
void * callback_ctx,
ecs_ctx_free_t callback_ctx_free )
inline

Definition at line 25 of file impl.hpp.

◆ enum_constant_is_valid()

template<typename E, E C>
bool flecs::_::enum_constant_is_valid ( )
constexpr

Test if value is valid for enumeration.

This function leverages that when a valid value is provided, PRETTY_FUNCTION contains the enumeration name, whereas if a value is invalid, the string contains a number or a negative (-) symbol.

Definition at line 153 of file enum.hpp.

◆ enum_constant_is_valid_wrap()

template<typename E, underlying_type_t< E > C>
bool flecs::_::enum_constant_is_valid_wrap ( )
constexpr

Definition at line 161 of file enum.hpp.

◆ enum_type_len()

template<typename E>
size_t flecs::_::enum_type_len ( )
constexpr

Definition at line 114 of file enum.hpp.

◆ equals() [1/2]

template<typename T, if_t< has_operator_equal< T >::value > = 0>
ecs_equals_t flecs::_::equals ( )

Definition at line 485 of file lifecycle_traits.hpp.

◆ equals() [2/2]

template<typename T, if_t< !has_operator_equal< T >::value > = 0>
ecs_equals_t flecs::_::equals ( )

Definition at line 491 of file lifecycle_traits.hpp.

◆ equals_impl()

template<typename T, if_t< has_operator_equal< T >::value > = 0>
bool flecs::_::equals_impl ( const void * a,
const void * b,
const ecs_type_info_t *  )

Definition at line 477 of file lifecycle_traits.hpp.

◆ free_obj()

template<class Ty>
void flecs::_::free_obj ( void * _ptr)
inline

Definition at line 49 of file utils.hpp.

◆ import()

template<typename T>
flecs::entity flecs::_::import ( world & world)

Definition at line 45 of file impl.hpp.

◆ move() [1/3]

template<typename T, if_t< std::is_trivially_move_assignable< T >::value > = 0>
ecs_move_t flecs::_::move ( ecs_flags32_t & )

Definition at line 233 of file lifecycle_traits.hpp.

◆ move() [2/3]

template<typename T, if_t< std::is_move_assignable< T >::value &&! std::is_trivially_move_assignable< T >::value > = 0>
ecs_move_t flecs::_::move ( ecs_flags32_t & )

Definition at line 248 of file lifecycle_traits.hpp.

◆ move() [3/3]

template<typename T, if_not_t< std::is_move_assignable< T >::value > = 0>
ecs_move_t flecs::_::move ( ecs_flags32_t & flags)

Definition at line 239 of file lifecycle_traits.hpp.

◆ move_ctor() [1/3]

template<typename T, if_t< std::is_trivially_move_constructible< T >::value > = 0>
ecs_move_t flecs::_::move_ctor ( ecs_flags32_t & )

Definition at line 278 of file lifecycle_traits.hpp.

◆ move_ctor() [2/3]

template<typename T, if_t< std::is_move_constructible< T >::value &&! std::is_trivially_move_constructible< T >::value > = 0>
ecs_move_t flecs::_::move_ctor ( ecs_flags32_t & )

Definition at line 293 of file lifecycle_traits.hpp.

◆ move_ctor() [3/3]

template<typename T, if_not_t< std::is_move_constructible< T >::value > = 0>
ecs_move_t flecs::_::move_ctor ( ecs_flags32_t & flags)

Definition at line 284 of file lifecycle_traits.hpp.

◆ move_ctor_impl()

template<typename T>
void flecs::_::move_ctor_impl ( void * dst_ptr,
void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 81 of file lifecycle_traits.hpp.

◆ move_dtor() [1/3]

template<typename T, if_t< std::is_trivially_move_assignable< T >::value &&std::is_trivially_destructible< T >::value > = 0>
ecs_move_t flecs::_::move_dtor ( ecs_flags32_t & )

Definition at line 328 of file lifecycle_traits.hpp.

◆ move_dtor() [2/3]

template<typename T, if_t< !(std::is_trivially_move_assignable< T >::value &&std::is_trivially_destructible< T >::value) &&std::is_move_assignable< T >::value &&std::is_destructible< T >::value > = 0>
ecs_move_t flecs::_::move_dtor ( ecs_flags32_t & )

Definition at line 347 of file lifecycle_traits.hpp.

◆ move_dtor() [3/3]

template<typename T, if_t< ! std::is_move_assignable< T >::value||! std::is_destructible< T >::value > = 0>
ecs_move_t flecs::_::move_dtor ( ecs_flags32_t & flags)

Definition at line 336 of file lifecycle_traits.hpp.

◆ move_dtor_impl() [1/2]

template<typename T, if_not_t< std::is_trivially_move_assignable< T >::value > = 0>
void flecs::_::move_dtor_impl ( void * dst_ptr,
void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 113 of file lifecycle_traits.hpp.

◆ move_dtor_impl() [2/2]

template<typename T, if_t< std::is_trivially_move_assignable< T >::value > = 0>
void flecs::_::move_dtor_impl ( void * dst_ptr,
void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 133 of file lifecycle_traits.hpp.

◆ move_impl()

template<typename T>
void flecs::_::move_impl ( void * dst_ptr,
void * src_ptr,
int32_t count,
const ecs_type_info_t * info )

Definition at line 53 of file lifecycle_traits.hpp.

◆ register_lifecycle_actions() [1/2]

template<typename T, enable_if_t< std::is_trivial< T >::value==true > * = nullptr>
void flecs::_::register_lifecycle_actions ( ecs_world_t * ,
ecs_entity_t  )

Definition at line 89 of file component.hpp.

◆ register_lifecycle_actions() [2/2]

template<typename T, enable_if_t< std::is_trivial< T >::value==false > * = nullptr>
void flecs::_::register_lifecycle_actions ( ecs_world_t * world,
ecs_entity_t component )

Definition at line 96 of file component.hpp.

◆ symbol_name()

template<typename T>
const char * flecs::_::symbol_name ( )
inline

Definition at line 44 of file component.hpp.

◆ symbol_name< double >()

template<>
const char * flecs::_::symbol_name< double > ( )
inline

Definition at line 78 of file component.hpp.

◆ symbol_name< float >()

template<>
const char * flecs::_::symbol_name< float > ( )
inline

Definition at line 75 of file component.hpp.

◆ symbol_name< int16_t >()

template<>
const char * flecs::_::symbol_name< int16_t > ( )
inline

Definition at line 66 of file component.hpp.

◆ symbol_name< int32_t >()

template<>
const char * flecs::_::symbol_name< int32_t > ( )
inline

Definition at line 69 of file component.hpp.

◆ symbol_name< int64_t >()

template<>
const char * flecs::_::symbol_name< int64_t > ( )
inline

Definition at line 72 of file component.hpp.

◆ symbol_name< int8_t >()

template<>
const char * flecs::_::symbol_name< int8_t > ( )
inline

Definition at line 63 of file component.hpp.

◆ symbol_name< uint16_t >()

template<>
const char * flecs::_::symbol_name< uint16_t > ( )
inline

Definition at line 54 of file component.hpp.

◆ symbol_name< uint32_t >()

template<>
const char * flecs::_::symbol_name< uint32_t > ( )
inline

Definition at line 57 of file component.hpp.

◆ symbol_name< uint64_t >()

template<>
const char * flecs::_::symbol_name< uint64_t > ( )
inline

Definition at line 60 of file component.hpp.

◆ symbol_name< uint8_t >()

template<>
const char * flecs::_::symbol_name< uint8_t > ( )
inline

Definition at line 51 of file component.hpp.

◆ timer_init()

void flecs::_::timer_init ( flecs::world & world)
inline

Definition at line 99 of file impl.hpp.

◆ type_to_inout() [1/3]

template<typename T, if_t< is_const_p< T >::value > = 0>
flecs::inout_kind_t flecs::_::type_to_inout ( )
constexpr

Definition at line 12 of file signature.hpp.

◆ type_to_inout() [2/3]

template<typename T, if_t< is_reference< T >::value > = 0>
flecs::inout_kind_t flecs::_::type_to_inout ( )
constexpr

Definition at line 17 of file signature.hpp.

◆ type_to_inout() [3/3]

template<typename T, if_not_t< is_const_p< T >::value||is_reference< T >::value > = 0>
flecs::inout_kind_t flecs::_::type_to_inout ( )
constexpr

Definition at line 23 of file signature.hpp.

◆ type_to_oper() [1/2]

template<typename T, if_t< is_pointer< T >::value > = 0>
flecs::oper_kind_t flecs::_::type_to_oper ( )
constexpr

Definition at line 28 of file signature.hpp.

◆ type_to_oper() [2/2]

template<typename T, if_not_t< is_pointer< T >::value > = 0>
flecs::oper_kind_t flecs::_::type_to_oper ( )
constexpr

Definition at line 33 of file signature.hpp.

Variable Documentation

◆ placement_new_tag

placement_new_tag_t flecs::_::placement_new_tag {}
constexpr

Definition at line 47 of file utils.hpp.

◆ to_constant< E, Value >::value

template<typename E, underlying_type_t< E > Value>
E flecs::_::to_constant< E, Value >::value
constexpr

Definition at line 53 of file enum.hpp.

◆ type_impl< T >::s_alignment

template<typename T>
size_t flecs::_::type_impl< T >::s_alignment

Definition at line 263 of file component.hpp.

◆ type_impl< T >::s_index

template<typename T>
int32_t flecs::_::type_impl< T >::s_index

Definition at line 261 of file component.hpp.

◆ type_impl< T >::s_size

template<typename T>
size_t flecs::_::type_impl< T >::s_size

Definition at line 262 of file component.hpp.