Definition at line 13 of file impl.hpp.
◆ query_base() [1/6]
flecs::query_base::query_base |
( |
| ) |
|
|
inline |
◆ query_base() [2/6]
flecs::query_base::query_base |
( |
query_t * | q | ) |
|
|
inline |
◆ query_base() [3/6]
flecs::query_base::query_base |
( |
const query_t * | q | ) |
|
|
inline |
◆ query_base() [4/6]
◆ query_base() [5/6]
flecs::query_base::query_base |
( |
const query_base & | obj | ) |
|
|
inline |
◆ query_base() [6/6]
flecs::query_base::query_base |
( |
query_base && | obj | ) |
|
|
inlinenoexcept |
◆ ~query_base()
flecs::query_base::~query_base |
( |
| ) |
|
|
inline |
◆ c_ptr()
◆ changed()
bool flecs::query_base::changed |
( |
| ) |
const |
|
inline |
Returns whether the query data changed since the last iteration.
This operation must be invoked before obtaining the iterator, as this will reset the changed state. The operation will return true after:
- new entities have been matched with
- matched entities were deleted
- matched components were changed
- Returns
- true if entities changed, otherwise false.
Definition at line 112 of file impl.hpp.
◆ destruct()
void flecs::query_base::destruct |
( |
| ) |
|
|
inline |
Free persistent query.
A persistent query is a query that is associated with an entity, such as system queries and named queries. Persistent queries must be deleted with destruct(), or will be deleted automatically at world cleanup.
Definition at line 83 of file impl.hpp.
◆ each_term()
template<typename Func >
void flecs::query_base::each_term |
( |
const Func & | func | ) |
|
|
inline |
◆ entity()
◆ field_count()
int32_t flecs::query_base::field_count |
( |
| ) |
|
|
inline |
◆ find_var()
int32_t flecs::query_base::find_var |
( |
const char * | name | ) |
|
|
inline |
◆ group_ctx()
void * flecs::query_base::group_ctx |
( |
uint64_t | group_id | ) |
const |
|
inline |
Get context for group.
- Parameters
-
group_id | The group id for which to retrieve the context. |
- Returns
- The group context.
Definition at line 130 of file impl.hpp.
◆ group_info()
Get info for group.
- Parameters
-
group_id | The group id for which to retrieve the info. |
- Returns
- The group info.
Definition at line 121 of file impl.hpp.
◆ operator bool()
flecs::query_base::operator bool |
( |
| ) |
const |
|
inline |
◆ operator const flecs::query_t *()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ plan()
Returns a string representing the query plan.
This can be used to analyze the behavior & performance of the query.
- See also
- ecs_query_plan
Definition at line 173 of file impl.hpp.
◆ str()
◆ term()
◆ term_count()
int32_t flecs::query_base::term_count |
( |
| ) |
|
|
inline |
◆ query_
query_t* flecs::query_base::query_ = nullptr |
|
protected |
The documentation for this struct was generated from the following file:
- include/flecs/addons/cpp/mixins/query/impl.hpp