Function filter_base

Summary

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

(1) filter_base()

(2) filter_base(world_t *world, const ecs_filter_t *filter)

(3) filter_base(world_t *world, ecs_filter_t *filter)

(4) filter_base(world_t *world, ecs_filter_desc_t *desc)

(5) filter_base(const filter_base &obj)

(6) filter_base(filter_base &&obj)

Function overload

Synopsis

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

filter_base()

Description

No description yet.

Source

Lines 9-12 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base()
    : m_world(nullptr)
    , m_filter({})
    , m_filter_ptr(nullptr) { }

Synopsis

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

filter_base(world_t *world, const ecs_filter_t *filter)

Description

No description yet.

Source

Lines 14-17 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base(world_t *world, const ecs_filter_t *filter)
    : m_world(world)
    , m_filter({})
    , m_filter_ptr(filter) { }

Synopsis

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

filter_base(world_t *world, ecs_filter_t *filter)

Description

No description yet.

Source

Lines 19-23 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base(world_t *world, ecs_filter_t *filter)
    : m_world(world)
    , m_filter_ptr(&m_filter) {
        ecs_filter_move(&m_filter, filter);
    }

Synopsis

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

filter_base(world_t *world, ecs_filter_desc_t *desc)

Description

No description yet.

Source

Lines 25-39 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base(world_t *world, ecs_filter_desc_t *desc) 
    : m_world(world)
{
    desc->storage = &m_filter;
    if (ecs_filter_init(world, desc) == NULL) {
        ecs_abort(ECS_INVALID_PARAMETER, NULL);
    }
    if (desc->terms_buffer) {
        ecs_os_free(desc->terms_buffer);
    }
    m_filter_ptr = &m_filter;
}

Synopsis

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

filter_base(const filter_base &obj)

Description

No description yet.

Source

Lines 41-49 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base(const filter_base& obj) {
    this->m_world = obj.m_world;
    if (obj.m_filter_ptr) {
        this->m_filter_ptr = &this->m_filter;
    } else {
        this->m_filter_ptr = nullptr;
    }
    ecs_filter_copy(&m_filter, &obj.m_filter);
}

Synopsis

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

filter_base(filter_base &&obj)

Description

No description yet.

Source

Lines 62-70 in include/flecs/addons/cpp/mixins/filter/impl.hpp.

filter_base(filter_base&& obj) {
    this->m_world = obj.m_world;
    if (obj.m_filter_ptr) {
        this->m_filter_ptr = &this->m_filter;
    } else {
        this->m_filter_ptr = nullptr;
    }
    ecs_filter_move(&m_filter, &obj.m_filter);
}