22 type() : m_world(
nullptr), m_type(
nullptr) { }
51 ecs_assert(m_type != NULL, ECS_INVALID_PARAMETER, NULL);
52 ecs_assert(m_type->count > index, ECS_OUT_OF_RANGE, NULL);
56 return flecs::id(m_world, m_type->array[index]);
59 flecs::id_t* begin()
const {
63 flecs::id_t* end()
const {
64 return &m_type->array[m_type->count];
#define ecs_assert(condition, error_code,...)
Assert.
flecs::id_t * array() const
Return pointer to array.
int32_t count() const
Return number of ids in type.
flecs::string str() const
Convert type to comma-separated string.
flecs::id get(int32_t index) const
Get id at specified index in type.
char * ecs_type_str(const ecs_world_t *world, const ecs_type_t *type)
Convert type to string.
An array with (component) ids.
Class that wraps around a flecs::id_t.