Flecs v4.0
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
32namespace _
33{
34template <typename T, typename U = int>
35struct type;
36
37template <typename Func, typename ... Components>
38struct each_delegate;
39
40} // namespace _
41} // namespace flecs
42
43// Types imported from C API
44#include "c_types.hpp"
45
46// C++ utilities
47#include "utils/utils.hpp"
48
49// Mixin forward declarations
50#include "mixins/id/decl.hpp"
51#include "mixins/term/decl.hpp"
52#include "mixins/query/decl.hpp"
53#include "mixins/event/decl.hpp"
55#ifdef FLECS_SYSTEM
57#endif
58#ifdef FLECS_PIPELINE
60#endif
61#ifdef FLECS_TIMER
62#include "mixins/timer/decl.hpp"
63#endif
64#ifdef FLECS_DOC
65#include "mixins/doc/decl.hpp"
66#endif
67#ifdef FLECS_REST
68#include "mixins/rest/decl.hpp"
69#endif
70#ifdef FLECS_META
71#include "mixins/meta/decl.hpp"
72#endif
73#ifdef FLECS_UNITS
74#include "mixins/units/decl.hpp"
75#endif
76#ifdef FLECS_STATS
77#include "mixins/stats/decl.hpp"
78#endif
79#ifdef FLECS_METRICS
81#endif
82#ifdef FLECS_ALERTS
84#endif
85#ifdef FLECS_JSON
86#include "mixins/json/decl.hpp"
87#endif
88#ifdef FLECS_APP
89#include "mixins/app/decl.hpp"
90#endif
91#ifdef FLECS_SCRIPT
93#endif
94
95#include "log.hpp"
96#include "pair.hpp"
97#include "lifecycle_traits.hpp"
98#include "ref.hpp"
99#include "world.hpp"
100#include "field.hpp"
101#include "iter.hpp"
102#include "entity.hpp"
103#include "delegate.hpp"
104#include "component.hpp"
105#include "type.hpp"
106#include "table.hpp"
107#include "utils/iterable.hpp"
108
109// Mixin implementations
110#include "mixins/id/impl.hpp"
111#include "mixins/entity/impl.hpp"
113#include "mixins/term/impl.hpp"
114#include "mixins/query/impl.hpp"
116#include "mixins/event/impl.hpp"
117#include "mixins/enum/impl.hpp"
118#ifdef FLECS_MODULE
119#include "mixins/module/impl.hpp"
120#endif
121#ifdef FLECS_SYSTEM
122#include "mixins/system/impl.hpp"
123#endif
124#ifdef FLECS_PIPELINE
126#endif
127#ifdef FLECS_TIMER
128#include "mixins/timer/impl.hpp"
129#endif
130#ifdef FLECS_DOC
131#include "mixins/doc/impl.hpp"
132#endif
133#ifdef FLECS_DOC
134#include "mixins/doc/impl.hpp"
135#endif
136#ifdef FLECS_REST
137#include "mixins/rest/impl.hpp"
138#endif
139#ifdef FLECS_META
140#include "mixins/meta/impl.hpp"
141#endif
142#ifdef FLECS_UNITS
143#include "mixins/units/impl.hpp"
144#endif
145#ifdef FLECS_STATS
146#include "mixins/stats/impl.hpp"
147#endif
148#ifdef FLECS_METRICS
150#endif
151#ifdef FLECS_ALERTS
152#include "mixins/alerts/impl.hpp"
153#endif
154#ifdef FLECS_SCRIPT
155#include "mixins/script/impl.hpp"
156#endif
157
158#include "impl/field.hpp"
159#include "impl/iter.hpp"
160#include "impl/world.hpp"
161
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.
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 speedup get operations.
Rest module declarations.
Rest module implementation.
Script declarations.
Script implementation.
Stats module declarations.
Monitor 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.