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

Functor for sorting terms in a query before compilation. More...

#include <query_common.h>

Public Member Functions

constexpr bool operator() (const QueryTerm &lhs, const QueryTerm &rhs) const
 Orders two terms by their canonical lookup representation.
 

Detailed Description

Functor for sorting terms in a query before compilation.

Member Function Documentation

◆ operator()()

constexpr bool gaia::ecs::query_sort_cond::operator() ( const QueryTerm lhs,
const QueryTerm rhs 
) const
inlineconstexpr

Orders two terms by their canonical lookup representation.

Parameters
lhsFirst term.
rhsSecond term.
Returns
True when lhs precedes rhs.

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