Definition at line 16 of file impl.hpp.
◆ query_base() [1/3]
flecs::query_base::query_base |
( |
| ) |
|
|
inline |
◆ query_base() [2/3]
flecs::query_base::query_base |
( |
world_t * | world, |
|
|
query_t * | query = nullptr ) |
|
inline |
◆ query_base() [3/3]
◆ 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 52 of file impl.hpp.
◆ destruct()
void flecs::query_base::destruct |
( |
| ) |
|
|
inline |
Free the query.
Definition at line 92 of file impl.hpp.
◆ each_term()
template<typename Func >
void flecs::query_base::each_term |
( |
const Func & | func | ) |
const |
|
inline |
◆ entity()
◆ field_count()
int32_t flecs::query_base::field_count |
( |
| ) |
const |
|
inline |
◆ filter()
◆ 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 81 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 72 of file impl.hpp.
◆ operator query<>()
flecs::query_base::operator query<> |
( |
| ) |
const |
|
inline |
◆ operator query_t *()
flecs::query_base::operator query_t * |
( |
| ) |
const |
|
inline |
◆ orphaned()
bool flecs::query_base::orphaned |
( |
| ) |
const |
|
inline |
Returns whether query is orphaned.
When the parent query of a subquery is deleted, it is left in an orphaned state. The only valid operation on an orphaned query is deleting it. Only subqueries can be orphaned.
- Returns
- true if query is orphaned, otherwise false.
Definition at line 63 of file impl.hpp.
◆ str()
◆ term()
flecs::term flecs::query_base::term |
( |
int32_t | index | ) |
const |
|
inline |
◆ m_query
query_t* flecs::query_base::m_query |
|
protected |
◆ m_world
world_t* flecs::query_base::m_world |
|
protected |
The documentation for this struct was generated from the following file:
- include/flecs/addons/cpp/mixins/query/impl.hpp