Function rule_base

Summary

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

(1) rule_base()

(2) rule_base(world_t *world, rule_t *rule=nullptr)

(3) rule_base(world_t *world, ecs_filter_desc_t *desc)

Function overload

Synopsis

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

rule_base()

Description

No description yet.

Source

Lines 12-14 in include/flecs/addons/cpp/mixins/rule/impl.hpp.

rule_base()
    : m_world(nullptr)
    , m_rule(nullptr) { }    

Synopsis

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

rule_base(world_t *world, rule_t *rule=nullptr)

Description

No description yet.

Source

Lines 16-18 in include/flecs/addons/cpp/mixins/rule/impl.hpp.

rule_base(world_t *world, rule_t *rule = nullptr)
    : m_world(world)
    , m_rule(rule) { }

Synopsis

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

rule_base(world_t *world, ecs_filter_desc_t *desc)

Description

No description yet.

Source

Lines 20-32 in include/flecs/addons/cpp/mixins/rule/impl.hpp.

rule_base(world_t *world, ecs_filter_desc_t *desc) 
    : m_world(world)
{
    m_rule = ecs_rule_init(world, desc);
    if (!m_rule) {
        ecs_abort(ECS_INVALID_PARAMETER, NULL);
    }
    if (desc->terms_buffer) {
        ecs_os_free(desc->terms_buffer);
    }
}