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

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

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

## Macros
#define | ecs_table_get(world, table, T, offset)
#define | ecs_table_get_pair(world, table, First, second, offset)
#define | ecs_table_get_pair_second(world, table, first, Second, offset)

## Detailed Description

## Macro Definition Documentation

## ◆ ecs_table_get

#define ecs_table_get | ( |  | world,
|  |  | table,
|  |  | T,
|  |  | offset )

Value:
(ECS_CAST(T*, ecs_table_get_id(world, table, ecs_id(T), offset)))
ecs_id
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
ecs_table_get_id
void * ecs_table_get_id(const ecs_world_t *world, const ecs_table_t *table, ecs_id_t component, int32_t offset)
Get column from table by component.

Definition at line 682 of file flecs_c.h.

## ◆ ecs_table_get_pair

#define ecs_table_get_pair | ( |  | world,
|  |  | table,
|  |  | First,
|  |  | second,
|  |  | offset )

Value:
(ECS_CAST(First*, ecs_table_get_id(world, table, ecs_pair(ecs_id(First), second), offset)))

Definition at line 685 of file flecs_c.h.

## ◆ ecs_table_get_pair_second

#define ecs_table_get_pair_second | ( |  | world,
|  |  | table,
|  |  | first,
|  |  | Second,
|  |  | offset )

Value:
(ECS_CAST(Second*, ecs_table_get_id(world, table, ecs_pair(first, ecs_id(Second)), offset)))

Definition at line 688 of file flecs_c.h.