Flecs v3.2
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)
 
 term (const term &t)
 
 term (term &&t) noexcept
 
termoperator= (const term &t)
 
termoperator= (term &&t) noexcept
 
void reset ()
 
int finalize ()
 
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 ()
 
ecs_term_t move ()
 
- 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)
 
termrole (id_t role)
 Set role of 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_id_builder_i< Base >
Base & self ()
 
Base & up (flecs::entity_t trav=0)
 
template<typename Trav >
Base & up ()
 
Base & cascade (flecs::entity_t trav=0)
 
template<typename Trav >
Base & cascade ()
 
Base & desc ()
 
Base & parent ()
 
Base & trav (flecs::entity_t trav, flecs::flags32_t flags=0)
 
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

ecs_term_t value
 
- Public Attributes inherited from flecs::term_builder_i< term >
ecs_term_tm_term
 
- Public Attributes inherited from flecs::term_id_builder_i< Base >
ecs_term_id_tm_term_id
 

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)
 

Detailed Description

Class that describes a term.

Definition at line 16 of file impl.hpp.

Constructor & Destructor Documentation

◆ term() [1/9]

flecs::term::term ( )
inline

Definition at line 17 of file impl.hpp.

◆ term() [2/9]

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

Definition at line 22 of file impl.hpp.

◆ term() [3/9]

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

Definition at line 27 of file impl.hpp.

◆ term() [4/9]

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

Definition at line 36 of file impl.hpp.

◆ term() [5/9]

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

Definition at line 49 of file impl.hpp.

◆ term() [6/9]

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

Definition at line 58 of file impl.hpp.

◆ term() [7/9]

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

Definition at line 70 of file impl.hpp.

◆ term() [8/9]

flecs::term::term ( const term & t)
inline

Definition at line 78 of file impl.hpp.

◆ term() [9/9]

flecs::term::term ( term && t)
inlinenoexcept

Definition at line 84 of file impl.hpp.

◆ ~term()

flecs::term::~term ( )
inline

Definition at line 108 of file impl.hpp.

Member Function Documentation

◆ finalize()

int flecs::term::finalize ( )
inline

Definition at line 117 of file impl.hpp.

◆ get_first()

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

Definition at line 141 of file impl.hpp.

◆ get_second()

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

Definition at line 145 of file impl.hpp.

◆ get_src()

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

Definition at line 137 of file impl.hpp.

◆ id()

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

Definition at line 125 of file impl.hpp.

◆ inout()

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

Definition at line 129 of file impl.hpp.

◆ is_set()

bool flecs::term::is_set ( )
inline

Definition at line 121 of file impl.hpp.

◆ move()

ecs_term_t flecs::term::move ( )
inline

Definition at line 149 of file impl.hpp.

◆ oper()

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

Definition at line 133 of file impl.hpp.

◆ operator=() [1/2]

term & flecs::term::operator= ( const term & t)
inline

Definition at line 91 of file impl.hpp.

◆ operator=() [2/2]

term & flecs::term::operator= ( term && t)
inlinenoexcept

Definition at line 99 of file impl.hpp.

◆ reset()

void flecs::term::reset ( )
inline

Definition at line 112 of file impl.hpp.

◆ world_v()

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

Implements flecs::term_builder_i< term >.

Definition at line 156 of file impl.hpp.

Member Data Documentation

◆ value

ecs_term_t flecs::term::value

Definition at line 153 of file impl.hpp.


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