Function entity

Synopsis

#include <include/flecs/addons/cpp/iter.hpp>

flecs::entity entity(size_t row) const

Description

Obtain mutable handle to entity being iterated over.

Parameters

row - Row being iterated over.

Source

Lines 21-25 in include/flecs/addons/cpp/impl/iter.hpp. Line 232 in include/flecs/addons/cpp/iter.hpp.

inline flecs::entity iter::entity(size_t row) const {
    ecs_assert(row < static_cast<size_t>(m_iter->count), 
        ECS_COLUMN_INDEX_OUT_OF_RANGE, NULL);
    return flecs::entity(m_iter->world, m_iter->entities[row]);
}