![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Class that describes a term. More...
#include <impl.hpp>
Public Member Functions | |
| term () | |
| Default constructor. | |
| term (flecs::world_t *world_ptr) | |
| Construct from a world. | |
| term (flecs::world_t *world_ptr, ecs_term_t t) | |
| Construct from a world and an existing term descriptor. | |
| term (flecs::world_t *world_ptr, id_t component_id) | |
| Construct from a world and a component ID. | |
| term (flecs::world_t *world_ptr, entity_t first, entity_t second) | |
| Construct from a world and a pair of entity IDs. | |
| term (id_t component_id) | |
| Construct from a component ID (no world). | |
| term (id_t first, id_t second) | |
| Construct from a pair of IDs (no world). | |
| void | reset () |
| Reset the term to its default state. | |
| bool | is_set () |
| Check if the term is initialized. | |
| flecs::id | id () |
| Get the term ID. | |
| flecs::inout_kind_t | inout () |
| Get the inout kind of the term. | |
| flecs::oper_kind_t | oper () |
| Get the operator kind of the term. | |
| flecs::entity | get_src () |
| Get the source entity of the term. | |
| flecs::entity | get_first () |
| Get the first element of the term. | |
| flecs::entity | get_second () |
| Get the second element of the term. | |
| operator flecs::term_t () const | |
| Convert to the underlying term_t. | |
| Public Member Functions inherited from flecs::term_builder_i< term > | |
| term_builder_i () | |
| Default constructor. | |
| term & | term (id_t id) |
| Set the term ID. | |
| term & | src () |
| Call prior to setting values for the src identifier. | |
| term & | first () |
| Call prior to setting values for the first identifier. | |
| term & | second () |
| Call prior to setting values for the second identifier. | |
| term & | up (flecs::entity_t trav=0) |
| The up flag indicates that the term identifier may be substituted by traversing a relationship upwards. | |
| term & | cascade (flecs::entity_t trav=0) |
| The cascade flag is like up(), but returns results in breadth-first order. | |
| term & | desc () |
| Use with cascade() to iterate results in descending (bottom-to-top) order. | |
| term & | parent () |
| Same as up(). | |
| term & | trav (flecs::entity_t trav, flecs::flags32_t flags=0) |
| Specify the relationship to traverse, and flags to indicate direction. | |
| term & | id_flags (id_t flags) |
| Set ID flags for the term. | |
| term & | inout (flecs::inout_kind_t inout) |
| Set read/write access of the term. | |
| term & | inout_stage (flecs::inout_kind_t inout) |
| Set read/write access for a stage. | |
| term & | write () |
| Short for inout_stage(flecs::Out). | |
| term & | read () |
| Short for inout_stage(flecs::In). | |
| term & | read_write () |
| Short for inout_stage(flecs::InOut). | |
| term & | in () |
| Short for inout(flecs::In). | |
| term & | out () |
| Short for inout(flecs::Out). | |
| term & | inout_none () |
| Short for inout(flecs::InOutNone). | |
| term & | oper (flecs::oper_kind_t oper) |
| Set the operator of the term. | |
| term & | and_ () |
| Short for oper(flecs::And). | |
| term & | or_ () |
| Short for oper(flecs::Or). | |
| term & | not_ () |
| Short for oper(flecs::Not). | |
| term & | optional () |
| Short for oper(flecs::Optional). | |
| term & | and_from () |
| Short for oper(flecs::AndFrom). | |
| term & | or_from () |
| Short for oper(flecs::OrFrom). | |
| term & | not_from () |
| Short for oper(flecs::NotFrom). | |
| term & | filter () |
| Mark the term as a filter. | |
| Public Member Functions inherited from flecs::term_ref_builder_i< term > | |
| term_ref_builder_i () | |
| Default constructor. | |
| virtual | ~term_ref_builder_i () |
| Destructor. | |
| term & | self () |
| The self flag indicates that the term identifier itself is used. | |
| term & | id (flecs::entity_t id) |
| Specify the value of the identifier by ID. | |
| term & | entity (flecs::entity_t entity) |
| Specify the value of the identifier by ID. | |
| term & | name (const char *name) |
| Specify the value of the identifier by name. | |
| term & | var (const char *var_name) |
| Specify that the identifier is a variable (resolved at query evaluation time). | |
| term & | flags (flecs::flags64_t flags) |
| Override the term ID flags. | |
Public Attributes | |
| flecs::term_t | value |
| The underlying term value. | |
| Public Attributes inherited from flecs::term_builder_i< term > | |
| ecs_term_t * | term_ |
| Pointer to the current term. | |
| Public Attributes inherited from flecs::term_ref_builder_i< term > | |
| ecs_term_ref_t * | term_ref_ |
| Pointer to the current term reference. | |
Protected Member Functions | |
| flecs::world_t * | world_v () override |
| Protected Member Functions inherited from flecs::term_builder_i< term > | |
| void | set_term (ecs_term_t *term) |
| Set the current term pointer. | |
| Protected Member Functions inherited from flecs::term_ref_builder_i< term > | |
| void | assert_term_ref () |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverrideprotectedvirtual |
Implements flecs::term_builder_i< term >.
| flecs::term_t flecs::term::value |