Struct query_builder

Synopsis

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

template <typename ... Components>
struct query_builder final : _::query_builder_base<Components...>

Description

No description yet.

Inheritance

Ancestors: builder

Methods

query_builder

Source

Lines 14-27 in include/flecs/addons/cpp/mixins/query/builder.hpp.

template <typename ... Components>
struct query_builder final : _::query_builder_base<Components...> {
    query_builder(flecs::world_t* world, const char *name = nullptr)
        : _::query_builder_base<Components...>(world)
    {
        _::sig<Components...>(world).populate(this);
        if (name != nullptr) {
            ecs_entity_desc_t entity_desc = {};
            entity_desc.name = name;
            this->m_desc.entity = ecs_entity_init(world, &entity_desc);
        }

    }
};