Class snapshot_filter

Synopsis

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

class snapshot_filter

Description

No description yet.

Methods

snapshot_filter
begin
end

Source

Lines 118-137 in include/flecs/cpp/filter_iterator.hpp.

class snapshot_filter {
public:
    snapshot_filter(const world& world, const snapshot& snapshot, const filter& filter) 
        : m_world( world )
        , m_snapshot( snapshot )
        , m_filter( filter ) { }

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

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

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