Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs.hpp
Go to the documentation of this file.
1
6#pragma once
7
8// STL includes
9#include <type_traits>
10
16namespace flecs
17{
18
19struct world;
20struct world_async_stage;
21struct iter;
22struct entity_view;
23struct entity;
24struct type;
25struct table;
26struct table_range;
27struct untyped_component;
28
29template <typename T>
30struct component;
31
32struct untyped_ref;
33template <typename T>
34struct ref;
35
36namespace _
37{
38template <typename T, typename U = int>
39struct type;
40
41template <typename Func, typename ... Components>
42struct each_delegate;
43
44} // namespace _
45} // namespace flecs
46
47// Types imported from C API
48#include "c_types.hpp"
49
50// C++ utilities
51#include "utils/utils.hpp"
52#include "utils/map.hpp"
53
54// Mixin forward declarations
55#include "mixins/id/decl.hpp"
56#include "mixins/term/decl.hpp"
57#include "mixins/query/decl.hpp"
58#include "mixins/event/decl.hpp"
60#ifdef FLECS_SYSTEM
62#endif
63#ifdef FLECS_PIPELINE
65#endif
66#ifdef FLECS_TIMER
67#include "mixins/timer/decl.hpp"
68#endif
69#ifdef FLECS_DOC
70#include "mixins/doc/decl.hpp"
71#endif
72#ifdef FLECS_REST
73#include "mixins/rest/decl.hpp"
74#endif
75#ifdef FLECS_META
76#include "mixins/meta/decl.hpp"
77#endif
78#ifdef FLECS_UNITS
79#include "mixins/units/decl.hpp"
80#endif
81#ifdef FLECS_STATS
82#include "mixins/stats/decl.hpp"
83#endif
84#ifdef FLECS_METRICS
86#endif
87#ifdef FLECS_ALERTS
89#endif
90#ifdef FLECS_JSON
91#include "mixins/json/decl.hpp"
92#endif
93#ifdef FLECS_APP
94#include "mixins/app/decl.hpp"
95#endif
96#ifdef FLECS_SCRIPT
98#endif
99
100#include "log.hpp"
101#include "pair.hpp"
102#include "lifecycle_traits.hpp"
103#include "world.hpp"
104#include "field.hpp"
105#include "iter.hpp"
106#include "ref.hpp"
107#include "entity.hpp"
108#include "delegate.hpp"
109#include "component.hpp"
111#include "type.hpp"
112#include "table.hpp"
113#include "utils/iterable.hpp"
114
115// Mixin implementations
116#include "mixins/id/impl.hpp"
117#ifdef FLECS_ENTITY_RANGES
119#endif
120#ifdef FLECS_FRAME
121#include "mixins/frame/impl.hpp"
122#endif
123#include "mixins/entity/impl.hpp"
124#ifdef FLECS_PREFAB
125#include "mixins/prefab/impl.hpp"
126#endif
128#include "mixins/term/impl.hpp"
129#include "mixins/query/impl.hpp"
131#include "mixins/event/impl.hpp"
132#include "mixins/enum/impl.hpp"
133#ifdef FLECS_MODULE
134#include "mixins/module/impl.hpp"
135#endif
136#ifdef FLECS_SYSTEM
137#include "mixins/system/impl.hpp"
138#endif
139#ifdef FLECS_PIPELINE
141#endif
142#ifdef FLECS_TIMER
143#include "mixins/timer/impl.hpp"
144#endif
145#ifdef FLECS_DOC
146#include "mixins/doc/impl.hpp"
147#endif
148#ifdef FLECS_REST
149#include "mixins/rest/impl.hpp"
150#endif
151#ifdef FLECS_META
152#include "mixins/meta/impl.hpp"
153#endif
154#ifdef FLECS_UNITS
155#include "mixins/units/impl.hpp"
156#endif
157#ifdef FLECS_STATS
158#include "mixins/stats/impl.hpp"
159#endif
160#ifdef FLECS_METRICS
162#endif
163#ifdef FLECS_ALERTS
164#include "mixins/alerts/impl.hpp"
165#endif
166#ifdef FLECS_SCRIPT
167#include "mixins/script/impl.hpp"
168#endif
169
170#include "impl/field.hpp"
171#include "impl/iter.hpp"
172#include "impl/world.hpp"
173
Alert declarations.
Alerts module implementation.
App addon declarations.
Aliases for types/constants from C API.
Component mixin implementation.
Registering/obtaining info from components.
Wrappers around C++ functions that provide callbacks for C APIs.
Doc mixin declarations.
Doc mixin implementation.
Entity implementation.
Entity class.
Entity ranges implementation.
Enum implementation.
Event declarations.
Event implementation.
Wrapper classes for fields returned by flecs::iter.
Frame implementation.
ID class.
ID class implementation.
Field implementation.
Iterator implementation.
World implementation.
Wrapper classes for ecs_iter_t and component arrays.
Base class for iterable objects, like queries.
JSON addon declarations.
Utilities for discovering and registering component lifecycle hooks.
Logging functions.
Minimal C++ wrapper for ecs_map_t iteration.
Meta declarations.
Meta implementation.
Metrics declarations.
Metrics module implementation.
Module implementation.
Observer declarations.
Observer implementation.
Utilities for working with compile-time pairs.
Pipeline module declarations.
Pipeline module implementation.
Prefab implementation.
Query declarations.
Query implementation.
Class that caches data to speed up get operations.
Rest module declarations.
Rest module implementation.
Script declarations.
Script implementation.
Direct iteration of sparse component storages.
Stats module declarations.
Stats module implementation.
System module declarations.
System module implementation.
Direct access to table data.
Term declarations.
Term implementation.
Timer module declarations.
Timer module implementation.
Utility functions for ID vector.
Units module declarations.
Units module implementation.
Flecs STL (FTL?)
World class.