Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::QueryTerm Struct Reference

Internal representation of QueryInput. More...

#include <query_common.h>

Public Member Functions

bool operator== (const QueryTerm &other) const
 Compares the matching identity of two compiled terms.
 
bool operator!= (const QueryTerm &other) const
 Compares the matching identity of two compiled terms for inequality.
 

Public Attributes

Entity id
 Queried id.
 
Entity src
 Source of where the queried id is looked up at.
 
Entity entTrav
 Optional traversal relation for source lookups.
 
QueryTravKind travKind
 Source traversal filter.
 
uint8_t travDepth
 Maximum number of traversal steps.
 
QueryMatchKind matchKind
 Match semantics for this term.
 
Archetype * srcArchetype
 Archetype of the src entity.
 
QueryOpKind op
 Operation to perform with the term.
 
uint8_t fieldIndex = 0
 Stable execution field index matching the user-defined query field order.
 
QueryAccess access = QueryAccess::None
 Resolved payload access, retained when query identity is canonicalized.
 

Detailed Description

Internal representation of QueryInput.

Member Function Documentation

◆ operator!=()

bool gaia::ecs::QueryTerm::operator!= ( const QueryTerm &  other) const
inline

Compares the matching identity of two compiled terms for inequality.

Parameters
otherTerm to compare.
Returns
True when a matching-relevant field differs.

◆ operator==()

bool gaia::ecs::QueryTerm::operator== ( const QueryTerm &  other) const
inline

Compares the matching identity of two compiled terms.

Parameters
otherTerm to compare.
Returns
True when matching-relevant fields are equal.

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