Class child_iterator

Synopsis

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

class child_iterator

Description

No description yet.

Methods

child_iterator
begin
end

Source

Lines 144-161 in include/flecs/cpp/filter_iterator.hpp.

class child_iterator {
public:
    child_iterator(const flecs::entity_view& entity) 
        : m_world( entity.world().c_ptr() )
        , m_parent( entity.id() ) { }

    inline tree_iterator begin() const {
        return tree_iterator(m_world, m_parent);
    }

    inline tree_iterator end() const {
        return tree_iterator();
    }

private:
    flecs::world_t *m_world;
    flecs::entity_t m_parent;
};