Skip to content
Flecs v4.1
mixin.inl
Go to the documentation of this file.
1/**
2 * @file addons/cpp/mixins/id/mixin.inl
3 * @brief ID world mixin.
4 */
5
6/** Get ID from a type.
7 *
8 * @memberof flecs::world
9 */
10template <typename T>
11flecs::id id() const;
12
13/** ID factory.
14 *
15 * @memberof flecs::world
16 */
17template <typename ... Args>
18flecs::id id(Args&&... args) const;
19
20/** Get pair ID from relationship and object.
21 *
22 * @memberof flecs::world
23 */
24template <typename First, typename Second>
26
27/** Get pair ID from relationship and object.
28 *
29 * @memberof flecs::world
30 */
31template <typename First>
33
34/** Get pair ID from relationship and object.
35 *
36 * @memberof flecs::world
37 */
ecs_entity_t entity_t
Entity type.
Definition c_types.hpp:21
Class that wraps around a flecs::id_t.
Definition decl.hpp:27
flecs::id pair(entity_t o) const
Get pair ID from relationship and object.
flecs::id pair() const
Get pair ID from relationship and object.
flecs::id id() const
Get ID from a type.
flecs::id id(Args &&... args) const
ID factory.
flecs::id pair(entity_t r, entity_t o) const
Get pair ID from relationship and object.