![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Term identifier builder. More...
#include <builder_i.hpp>
Public Member Functions | |
| term_ref_builder_i () | |
| Default constructor. | |
| virtual | ~term_ref_builder_i () |
| Destructor. | |
| Base & | self () |
| The self flag indicates that the term identifier itself is used. | |
| Base & | id (flecs::entity_t id) |
| Specify the value of the identifier by ID. | |
| Base & | entity (flecs::entity_t entity) |
| Specify the value of the identifier by ID. | |
| Base & | name (const char *name) |
| Specify the value of the identifier by name. | |
| Base & | var (const char *var_name) |
| Specify that the identifier is a variable (resolved at query evaluation time). | |
| Base & | flags (flecs::flags64_t flags) |
| Override the term ID flags. | |
Public Attributes | |
| ecs_term_ref_t * | term_ref_ |
| Pointer to the current term reference. | |
Protected Member Functions | |
| virtual flecs::world_t * | world_v ()=0 |
| void | assert_term_ref () |
Term identifier builder.
A term identifier describes a single identifier in a term. Identifier descriptions can reference entities by ID, name, or by variable, which means the entity will be resolved when the term is evaluated.
Definition at line 22 of file builder_i.hpp.
|
inline |
Default constructor.
Definition at line 24 of file builder_i.hpp.
|
inlinevirtual |
Destructor.
Definition at line 27 of file builder_i.hpp.
|
inlineprotected |
Definition at line 86 of file builder_i.hpp.
|
inline |
Specify the value of the identifier by ID.
Almost the same as id(entity_t), but this operation explicitly sets the flecs::IsEntity flag. This forces the ID to be interpreted as an entity, whereas not setting the flag would implicitly convert IDs for built-in variables such as flecs::This to a variable.
This function can also be used to disambiguate id(0), which would match both id(entity_t) and id(const char*).
Definition at line 51 of file builder_i.hpp.
|
inline |
Override the term ID flags.
Definition at line 74 of file builder_i.hpp.
|
inline |
Specify the value of the identifier by ID.
Definition at line 37 of file builder_i.hpp.
|
inline |
Specify the value of the identifier by name.
Definition at line 58 of file builder_i.hpp.
|
inline |
The self flag indicates that the term identifier itself is used.
Definition at line 30 of file builder_i.hpp.
|
inline |
Specify that the identifier is a variable (resolved at query evaluation time).
Definition at line 66 of file builder_i.hpp.
| ecs_term_ref_t* flecs::term_ref_builder_i< Base >::term_ref_ |
Pointer to the current term reference.
Definition at line 81 of file builder_i.hpp.