Class world_filter

Synopsis

#include <include/flecs/cpp/filter_iterator.hpp>

class world_filter

Description

No description yet.

Methods

world_filter
begin
end

Source

Lines 94-111 in include/flecs/cpp/filter_iterator.hpp.

class world_filter {
public:
    world_filter(const world& world, const filter& filter) 
        : m_world( world )
        , m_filter( filter ) { }

    inline filter_iterator begin() const {
        return filter_iterator(m_world, m_filter, ecs_filter_next);
    }

    inline filter_iterator end() const {
        return filter_iterator(ecs_filter_next);
    }

private:
    const world& m_world;
    const filter& m_filter;
};