Function each_term

Synopsis

#include <include/flecs/addons/cpp/mixins/query/impl.hpp>

template <typename Func>
void each_term(const Func &func)

Description

No description yet.

Source

Lines 70-79 in include/flecs/addons/cpp/mixins/query/impl.hpp.

template <typename Func>
void each_term(const Func& func) {
    const ecs_filter_t *f = ecs_query_get_filter(m_query);
    ecs_assert(f != NULL, ECS_INVALID_PARAMETER, NULL);
    for (int i = 0; i < f->term_count; i ++) {
        flecs::term t(m_world, f->terms[i]);
        func(t);
    }
}