Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::term Struct Referencefinal

Class that describes a term. More...

#include <impl.hpp>

Inheritance diagram for flecs::term:
[legend]

Public Member Functions

 term (flecs::world_t *world_ptr)
 
 term (flecs::world_t *world_ptr, ecs_term_t t)
 
 term (flecs::world_t *world_ptr, id_t id)
 
 term (flecs::world_t *world_ptr, entity_t r, entity_t o)
 
 term (id_t id)
 
 term (id_t r, id_t o)
 
void reset ()
 
bool is_set ()
 
flecs::id id ()
 
flecs::inout_kind_t inout ()
 
flecs::oper_kind_t oper ()
 
flecs::entity get_src ()
 
flecs::entity get_first ()
 
flecs::entity get_second ()
 
 operator flecs::term_t () const
 
- Public Member Functions inherited from flecs::term_builder_i< term >
 term_builder_i (ecs_term_t *term_ptr)
 
termterm (id_t id)
 
termsrc ()
 
termsrc (flecs::entity_t id)
 
termsrc ()
 
termsrc (const char *name)
 
termfirst ()
 
termfirst (flecs::entity_t id)
 
termfirst ()
 
termfirst (const char *name)
 
termsecond ()
 
termsecond (flecs::entity_t id)
 
termsecond ()
 
termsecond (const char *name)
 
termup (flecs::entity_t trav=0)
 
termup ()
 
termcascade (flecs::entity_t trav=0)
 
termcascade ()
 
termdesc ()
 
termparent ()
 
termtrav (flecs::entity_t trav, flecs::flags32_t flags=0)
 
termid_flags (id_t flags)
 Set id flags for term.
 
terminout (flecs::inout_kind_t inout)
 Set read/write access of term.
 
terminout ()
 Short for inout(flecs::InOut)
 
terminout_stage (flecs::inout_kind_t inout)
 Set read/write access for stage.
 
termwrite ()
 Short for inout_stage(flecs::Out).
 
termread ()
 Short for inout_stage(flecs::In).
 
termread_write ()
 Short for inout_stage(flecs::InOut).
 
termin ()
 Short for inout(flecs::In)
 
termout ()
 Short for inout(flecs::Out)
 
terminout_none ()
 Short for inout(flecs::In)
 
termoper (flecs::oper_kind_t oper)
 Set operator of term.
 
termand_ ()
 
termor_ ()
 
termnot_ ()
 
termoptional ()
 
termand_from ()
 
termor_from ()
 
termnot_from ()
 
termsingleton ()
 Match singleton.
 
termfilter ()
 
- Public Member Functions inherited from flecs::term_ref_builder_i< Base >
Base & self ()
 
Base & id (flecs::entity_t id)
 
Base & entity (flecs::entity_t entity)
 
Base & name (const char *name)
 
Base & var (const char *var_name)
 
Base & flags (flecs::flags32_t flags)
 

Public Attributes

flecs::term_t value
 
- Public Attributes inherited from flecs::term_builder_i< term >
ecs_term_tterm_
 
- Public Attributes inherited from flecs::term_ref_builder_i< Base >
ecs_term_ref_tterm_ref_
 

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)
 
- Protected Member Functions inherited from flecs::term_ref_builder_i< Base >
void assert_term_ref ()
 

Detailed Description

Class that describes a term.

Definition at line 16 of file impl.hpp.

Constructor & Destructor Documentation

◆ term() [1/7]

flecs::term::term ( )
inline

Definition at line 17 of file impl.hpp.

◆ term() [2/7]

flecs::term::term ( flecs::world_t * world_ptr)
inline

Definition at line 22 of file impl.hpp.

◆ term() [3/7]

flecs::term::term ( flecs::world_t * world_ptr,
ecs_term_t t )
inline

Definition at line 27 of file impl.hpp.

◆ term() [4/7]

flecs::term::term ( flecs::world_t * world_ptr,
id_t id )
inline

Definition at line 35 of file impl.hpp.

◆ term() [5/7]

flecs::term::term ( flecs::world_t * world_ptr,
entity_t r,
entity_t o )
inline

Definition at line 47 of file impl.hpp.

◆ term() [6/7]

flecs::term::term ( id_t id)
inline

Definition at line 55 of file impl.hpp.

◆ term() [7/7]

flecs::term::term ( id_t r,
id_t o )
inline

Definition at line 66 of file impl.hpp.

Member Function Documentation

◆ get_first()

flecs::entity flecs::term::get_first ( )
inline

Definition at line 98 of file impl.hpp.

◆ get_second()

flecs::entity flecs::term::get_second ( )
inline

Definition at line 102 of file impl.hpp.

◆ get_src()

flecs::entity flecs::term::get_src ( )
inline

Definition at line 94 of file impl.hpp.

◆ id()

flecs::id flecs::term::id ( )
inline

Definition at line 82 of file impl.hpp.

◆ inout()

flecs::inout_kind_t flecs::term::inout ( )
inline

Definition at line 86 of file impl.hpp.

◆ is_set()

bool flecs::term::is_set ( )
inline

Definition at line 78 of file impl.hpp.

◆ oper()

flecs::oper_kind_t flecs::term::oper ( )
inline

Definition at line 90 of file impl.hpp.

◆ operator flecs::term_t()

flecs::term::operator flecs::term_t ( ) const
inline

Definition at line 106 of file impl.hpp.

◆ reset()

void flecs::term::reset ( )
inline

Definition at line 73 of file impl.hpp.

◆ world_v()

flecs::world_t * flecs::term::world_v ( )
inlineoverrideprotectedvirtual

Implements flecs::term_builder_i< term >.

Definition at line 113 of file impl.hpp.

Member Data Documentation

◆ value

flecs::term_t flecs::term::value

Definition at line 110 of file impl.hpp.


The documentation for this struct was generated from the following file: