class

Query

Module
ECS
Header
#include "ECS/Query.h"
Namespace
Mowo
Template
template<typename... Ts>

Constructors

SignatureNameDescription
explicit Query(World* world) : m_world(world)Query

Public functions

ReturnsNameDescription
voidEachThe lambda receives EntityID followed by one T& per template parameter, in declaration order.
size_tCountMatch count without dispatching the callback.
voidInvalidateForces 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