class
Query
- Module
- ECS
- Header
#include "ECS/Query.h"- Namespace
Mowo- Template
template<typename... Ts>
Constructors
| Signature | Name | Description |
|---|---|---|
explicit Query(World* world) : m_world(world) | Query |
Public functions
| Returns | Name | Description |
|---|---|---|
void | Each | The lambda receives EntityID followed by one T& per template parameter, in declaration order. |
size_t | Count | Match count without dispatching the callback. |
void | Invalidate | Forces a rebuild on the next Each(); normally the version-mismatch check does this. |
Function details
Query
C++
explicit Query(World* world) : m_world(world)Each
C++
template<typename Fn> void Each(Fn&& fn)The lambda receives EntityID followed by one T& per template parameter, in declaration order.
Count
C++
size_t Count()Match count without dispatching the callback.
Invalidate
C++
void Invalidate()Forces a rebuild on the next Each(); normally the version-mismatch check does this. For tests and code that knows something skipped a version bump.
Generated from ECS/Query.h via ecs.json · Nov 4, 2026Version 1.0.0