Struct query

Synopsis

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

template<typename ... Components>
struct query final : query_base, iterable<Components...>

Description

No description yet.

Mentioned in

Methods

query_base overload
world

Source

Lines 113-137 in include/flecs/addons/cpp/mixins/query/impl.hpp.

template<typename ... Components>
struct query final : query_base, iterable<Components...> {
public:
    flecs::world world() const {
        return flecs::world(m_world);
    }

private:
    using Terms = typename _::term_ptrs<Components...>::array;

    ecs_iter_t get_iter() const override {
        return ecs_query_iter(m_world, m_query);
    }

    ecs_iter_next_action_t next_action() const override {
        return ecs_query_next;
    }

    ecs_iter_next_action_t next_each_action() const override {
        return ecs_query_next_instanced;
    }

public:
    using query_base::query_base;
};