Flecs: Iterator API
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Iterator API
C API » Macro API » Type Safe API
Collaboration diagram for Iterator API:

## Macros
#define | ecs_field(it, T, index)
#define | ecs_field_self(it, T, index)
#define | ecs_field_at(it, T, index, row)

## Detailed Description

## Macro Definition Documentation

## ◆ ecs_field

#define ecs_field | ( |  | it,
|  |  | T,
|  |  | index )

Value:
(ECS_CAST(T*, ecs_field_w_size(it, sizeof(T), index)))
ecs_field_w_size
void * ecs_field_w_size(const ecs_iter_t *it, size_t size, int8_t index)
Get data for field.

Definition at line 663 of file flecs_c.h.

## ◆ ecs_field_at

#define ecs_field_at | ( |  | it,
|  |  | T,
|  |  | index,
|  |  | row )

Value:
(ECS_CAST(T*, ecs_field_at_w_size(it, sizeof(T), index, row)))
ecs_field_at_w_size
void * ecs_field_at_w_size(const ecs_iter_t *it, size_t size, int8_t index, int32_t row)
Get data for field at specified row.

Definition at line 669 of file flecs_c.h.

## ◆ ecs_field_self

#define ecs_field_self | ( |  | it,
|  |  | T,
|  |  | index )

Value:
(ECS_CAST(T*, ecs_field_self_w_size(it, sizeof(T), index)))

Definition at line 666 of file flecs_c.h.