Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Flecs reflection framework. More...
Classes | |
struct | flecs::cursor |
Class for reading/writing dynamic values. More... | |
struct | flecs::bitmask |
Base type for bitmasks. More... | |
struct | flecs::opaque< T, ElemType > |
Type safe interface for opaque types. More... | |
Variables | |
uint32_t | flecs::bitmask::value |
const Self & | flecs::entity_view::unit (const char *symbol, flecs::entity_t prefix=0, flecs::entity_t base=0, flecs::entity_t over=0, int32_t factor=0, int32_t power=0) const |
Make entity a unit. | |
const Self & | unit (flecs::entity_t prefix=0, flecs::entity_t base=0, flecs::entity_t over=0, int32_t factor=0, int32_t power=0) const |
Make entity a derived unit. | |
const Self & | unit_prefix (const char *symbol, int32_t factor=0, int32_t power=0) const |
Make entity a derived unit. | |
const Self & | quantity (flecs::entity_t quantity) const |
Add quantity to unit. | |
template<typename Quantity > | |
const Self & | quantity () const |
Make entity a unity prefix. | |
const Self & | quantity () const |
Make entity a quantity. | |
untyped_component & | member (flecs::entity_t type_id, flecs::entity_t unit, const char *name, int32_t count=0) |
Add member with unit. | |
untyped_component & | member (flecs::entity_t type_id, flecs::entity_t unit, const char *name, int32_t count, size_t offset) |
Add member with unit, count and offset. | |
untyped_component & | member (flecs::entity_t type_id, const char *name, int32_t count=0) |
Add member. | |
untyped_component & | member (flecs::entity_t type_id, const char *name, int32_t count, size_t offset) |
Add member with count and offset. | |
template<typename MemberType > | |
untyped_component & | member (const char *name, int32_t count=0) |
Add member. | |
template<typename MemberType > | |
untyped_component & | member (const char *name, int32_t count, size_t offset) |
Add member. | |
template<typename MemberType > | |
untyped_component & | member (flecs::entity_t unit, const char *name, int32_t count=0) |
Add member with unit. | |
template<typename MemberType > | |
untyped_component & | member (flecs::entity_t unit, const char *name, int32_t count, size_t offset) |
Add member with unit. | |
template<typename MemberType , typename UnitType > | |
untyped_component & | member (const char *name, int32_t count=0) |
Add member with unit. | |
template<typename MemberType , typename UnitType > | |
untyped_component & | member (const char *name, int32_t count, size_t offset) |
Add member with unit. | |
template<typename MemberType , typename ComponentType , typename RealType = typename std::remove_extent<MemberType>::type> | |
untyped_component & | member (const char *name, const MemberType ComponentType::*ptr) |
Add member using pointer-to-member. | |
template<typename MemberType , typename ComponentType , typename RealType = typename std::remove_extent<MemberType>::type> | |
untyped_component & | member (flecs::entity_t unit, const char *name, const MemberType ComponentType::*ptr) |
Add member with unit using pointer-to-member. | |
template<typename UnitType , typename MemberType , typename ComponentType , typename RealType = typename std::remove_extent<MemberType>::type> | |
untyped_component & | member (const char *name, const MemberType ComponentType::*ptr) |
Add member with unit using pointer-to-member. | |
untyped_component & | constant (const char *name, int32_t value) |
Add constant. | |
untyped_component & | bit (const char *name, uint32_t value) |
Add bitmask constant. | |
template<typename Elem > | |
untyped_component & | array (int32_t elem_count) |
Register array metadata for component. | |
untyped_component & | range (double min, double max) |
Add member value range. | |
untyped_component & | warning_range (double min, double max) |
Add member warning range. | |
untyped_component & | error_range (double min, double max) |
Add member error range. | |
flecs::cursor | flecs::world::cursor (flecs::entity_t tid, void *ptr) |
Return meta cursor to value. | |
template<typename T > | |
flecs::cursor | cursor (void *ptr) |
Return meta cursor to value. | |
flecs::entity | primitive (flecs::meta::primitive_kind_t kind) |
Create primitive type. | |
flecs::entity | array (flecs::entity_t elem_id, int32_t array_count) |
Create array type. | |
template<typename T > | |
flecs::entity | array (int32_t array_count) |
Create array type. | |
flecs::entity | vector (flecs::entity_t elem_id) |
Create vector type. | |
template<typename T > | |
flecs::entity | vector () |
Create vector type. | |
Flecs reflection framework.
Flecs reflection framework.
Flecs reflection framework.
using flecs::Array = EcsArray |
using flecs::Bitmask = EcsBitmask |
using flecs::bool_t = ecs_bool_t |
using flecs::char_t = ecs_char_t |
using flecs::Enum = EcsEnum |
using flecs::iptr_t = ecs_iptr_t |
using flecs::Member = EcsMember |
using flecs::member_t = ecs_member_t |
using flecs::MemberRanges = EcsMemberRanges |
using flecs::Primitive = EcsPrimitive |
using flecs::serialize = int(*)(const serializer *, const T*) |
Type safe variant of serializer function.
Definition at line 28 of file opaque.hpp.
Serializer function, used to serialize opaque types.
Definition at line 24 of file opaque.hpp.
using flecs::serializer = ecs_serializer_t |
Serializer object, used for serializing opaque types.
Definition at line 21 of file opaque.hpp.
using flecs::Struct = EcsStruct |
using flecs::Type = EcsType |
using flecs::Unit = EcsUnit |
using flecs::uptr_t = ecs_uptr_t |
using flecs::Vector = EcsVector |
|
related |
Register array metadata for component.
Definition at line 232 of file untyped_component.inl.
|
related |
Add bitmask constant.
Definition at line 211 of file untyped_component.inl.
|
related |
Add constant.
Definition at line 191 of file untyped_component.inl.
flecs::cursor cursor | ( | flecs::entity_t | tid, |
void * | ptr ) |
|
related |
|
related |
Add member error range.
Definition at line 288 of file untyped_component.inl.
|
related |
Add member using pointer-to-member.
Definition at line 155 of file untyped_component.inl.
|
related |
Add member with unit using pointer-to-member.
Definition at line 180 of file untyped_component.inl.
|
related |
Add member.
Definition at line 97 of file untyped_component.inl.
|
related |
Add member with unit.
Definition at line 142 of file untyped_component.inl.
|
related |
Add member.
Definition at line 87 of file untyped_component.inl.
|
related |
Add member with unit.
Definition at line 131 of file untyped_component.inl.
|
related |
Add member with count and offset.
Definition at line 76 of file untyped_component.inl.
|
related |
Add member.
Definition at line 67 of file untyped_component.inl.
|
related |
Add member with unit, count and offset.
Definition at line 56 of file untyped_component.inl.
|
related |
Add member with unit.
Definition at line 46 of file untyped_component.inl.
|
related |
Add member with unit using pointer-to-member.
Definition at line 167 of file untyped_component.inl.
|
related |
Add member with unit.
Definition at line 119 of file untyped_component.inl.
|
related |
Add member with unit.
Definition at line 108 of file untyped_component.inl.
|
related |
Make entity a unity prefix.
Definition at line 79 of file entity_builder.inl.
|
related |
Make entity a quantity.
Definition at line 84 of file entity_builder.inl.
|
related |
Add quantity to unit.
Definition at line 72 of file entity_builder.inl.
|
related |
Add member value range.
Definition at line 244 of file untyped_component.inl.
const Self & unit | ( | const char * | symbol, |
flecs::entity_t | prefix = 0, | ||
flecs::entity_t | base = 0, | ||
flecs::entity_t | over = 0, | ||
int32_t | factor = 0, | ||
int32_t | power = 0 ) const |
Make entity a unit.
Definition at line 14 of file entity_builder.inl.
|
related |
Make entity a derived unit.
Definition at line 36 of file entity_builder.inl.
|
related |
Make entity a derived unit.
Definition at line 56 of file entity_builder.inl.
|
related |
Add member warning range.
Definition at line 266 of file untyped_component.inl.