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"
110#include "type.hpp"
111#include "table.hpp"
112#include "utils/iterable.hpp"
113
114// Mixin implementations
115#include "mixins/id/impl.hpp"
116#include "mixins/entity/impl.hpp"
118#include "mixins/term/impl.hpp"
119#include "mixins/query/impl.hpp"
121#include "mixins/event/impl.hpp"
122#include "mixins/enum/impl.hpp"
123#ifdef FLECS_MODULE
124#include "mixins/module/impl.hpp"
125#endif
126#ifdef FLECS_SYSTEM
127#include "mixins/system/impl.hpp"
128#endif
129#ifdef FLECS_PIPELINE
131#endif
132#ifdef FLECS_TIMER
133#include "mixins/timer/impl.hpp"
134#endif
135#ifdef FLECS_DOC
136#include "mixins/doc/impl.hpp"
137#endif
138#ifdef FLECS_REST
139#include "mixins/rest/impl.hpp"
140#endif
141#ifdef FLECS_META
142#include "mixins/meta/impl.hpp"
143#endif
144#ifdef FLECS_UNITS
145#include "mixins/units/impl.hpp"
146#endif
147#ifdef FLECS_STATS
148#include "mixins/stats/impl.hpp"
149#endif
150#ifdef FLECS_METRICS
152#endif
153#ifdef FLECS_ALERTS
154#include "mixins/alerts/impl.hpp"
155#endif
156#ifdef FLECS_SCRIPT
157#include "mixins/script/impl.hpp"
158#endif
159
160#include "impl/field.hpp"
161#include "impl/iter.hpp"
162#include "impl/world.hpp"
163
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.
Enum implementation.
Event declarations.
Event implementation.
Wrapper classes for fields returned by flecs::iter.
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.
Query declarations.
Query implementation.
Class that caches data to speed up get operations.
Rest module declarations.
Rest module implementation.
Script declarations.
Script implementation.
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.