Function ecs_term_iter

Synopsis

#include <include/flecs.h>

FLECS_API ecs_iter_t ecs_term_iter(const ecs_world_t *world, ecs_term_t *term)

Description

Iterator for a single (component) id. A term iterator returns all entities (tables) that match a single (component) id. The search for the matching set of entities (tables) is performed in constant time.

Currently only trivial terms are supported (see ecs_term_is_trivial). Only the id field of the term needs to be initialized.

Parameters

world - The world.

term - The term.

Returns
The iterator.

Mentioned in

Source

Line 2306 in include/flecs.h.