Function term_at

Synopsis

#include <include/flecs/addons/cpp/mixins/filter/builder_i.hpp>

Base & term_at(int32_t term_index)

Description

No description yet.

Source

Lines 140-149 in include/flecs/addons/cpp/mixins/filter/builder_i.hpp.

Base& term_at(int32_t term_index) {
    ecs_assert(term_index > 0, ECS_INVALID_PARAMETER, NULL);
    int32_t prev_index = m_term_index;
    m_term_index = term_index - 1;
    this->term();
    m_term_index = prev_index;
    ecs_assert(ecs_term_is_initialized(this->m_term), 
        ECS_INVALID_PARAMETER, NULL);
    return *this;
}