Function var

Summary

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

(1) Base & var(flecs::var_kind_t var=flecs::VarIsVariable)

(2) Base & var(const char *name)

Function overload

Synopsis

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

Base & var(flecs::var_kind_t var=flecs::VarIsVariable)

Description

No description yet.

Source

Lines 32-35 in include/flecs/addons/cpp/builder.hpp.

Base& var(flecs::var_kind_t var = flecs::VarIsVariable) {
    m_term_id->var = static_cast<ecs_var_kind_t>(var);
    return *this;
}

Synopsis

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

Base & var(const char *name)

Description

No description yet.

Source

Lines 37-43 in include/flecs/addons/cpp/builder.hpp.

Base& var(const char *name) {
    ecs_assert(m_term_id != NULL, ECS_INVALID_PARAMETER, NULL);
    // Const cast is safe, when the value is actually used to construct a
    // query, it will be duplicated.
    m_term_id->name = const_cast<char*>(name);
    return var(); // Default to VarIsVariable
}