Class ecs_iter_t

java.lang.Object
com.github.elebras1.flecs.ecs_iter_t

public class ecs_iter_t extends Object
struct ecs_iter_t {
    ecs_world_t *world;
    ecs_world_t *real_world;
    int32_t offset;
    int32_t count;
    const ecs_entity_t *entities;
    void **ptrs;
    const ecs_table_record_t **trs;
    const ecs_size_t *sizes;
    ecs_table_t *table;
    ecs_table_t *other_table;
    ecs_id_t *ids;
    ecs_entity_t *sources;
    ecs_flags64_t constrained_vars;
    ecs_flags32_t set_fields;
    ecs_flags32_t ref_fields;
    ecs_flags32_t row_fields;
    ecs_flags32_t up_fields;
    ecs_entity_t system;
    ecs_entity_t event;
    ecs_id_t event_id;
    int32_t event_cur;
    int8_t field_count;
    int8_t term_index;
    const ecs_query_t *query;
    void *param;
    void *ctx;
    void *binding_ctx;
    void *callback_ctx;
    void *run_ctx;
    float delta_time;
    float delta_system_time;
    int32_t frame_offset;
    ecs_flags32_t flags;
    ecs_entity_t interrupted_by;
    ecs_iter_private_t priv_;
    ecs_iter_next_action_t next;
    ecs_iter_action_t callback;
    ecs_iter_fini_action_t fini;
    ecs_iter_t *chain_it;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • world$layout

      public static final AddressLayout world$layout()
      Layout for field:
      ecs_world_t *world
      
    • world$offset

      public static final long world$offset()
      Offset for field:
      ecs_world_t *world
      
    • world

      public static MemorySegment world(MemorySegment struct)
      Getter for field:
      ecs_world_t *world
      
    • world

      public static void world(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_world_t *world
      
    • real_world$layout

      public static final AddressLayout real_world$layout()
      Layout for field:
      ecs_world_t *real_world
      
    • real_world$offset

      public static final long real_world$offset()
      Offset for field:
      ecs_world_t *real_world
      
    • real_world

      public static MemorySegment real_world(MemorySegment struct)
      Getter for field:
      ecs_world_t *real_world
      
    • real_world

      public static void real_world(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_world_t *real_world
      
    • offset$layout

      public static final ValueLayout.OfInt offset$layout()
      Layout for field:
      int32_t offset
      
    • offset$offset

      public static final long offset$offset()
      Offset for field:
      int32_t offset
      
    • offset

      public static int offset(MemorySegment struct)
      Getter for field:
      int32_t offset
      
    • offset

      public static void offset(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t offset
      
    • count$layout

      public static final ValueLayout.OfInt count$layout()
      Layout for field:
      int32_t count
      
    • count$offset

      public static final long count$offset()
      Offset for field:
      int32_t count
      
    • count

      public static int count(MemorySegment struct)
      Getter for field:
      int32_t count
      
    • count

      public static void count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t count
      
    • entities$layout

      public static final AddressLayout entities$layout()
      Layout for field:
      const ecs_entity_t *entities
      
    • entities$offset

      public static final long entities$offset()
      Offset for field:
      const ecs_entity_t *entities
      
    • entities

      public static MemorySegment entities(MemorySegment struct)
      Getter for field:
      const ecs_entity_t *entities
      
    • entities

      public static void entities(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_entity_t *entities
      
    • ptrs$layout

      public static final AddressLayout ptrs$layout()
      Layout for field:
      void **ptrs
      
    • ptrs$offset

      public static final long ptrs$offset()
      Offset for field:
      void **ptrs
      
    • ptrs

      public static MemorySegment ptrs(MemorySegment struct)
      Getter for field:
      void **ptrs
      
    • ptrs

      public static void ptrs(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void **ptrs
      
    • trs$layout

      public static final AddressLayout trs$layout()
      Layout for field:
      const ecs_table_record_t **trs
      
    • trs$offset

      public static final long trs$offset()
      Offset for field:
      const ecs_table_record_t **trs
      
    • trs

      public static MemorySegment trs(MemorySegment struct)
      Getter for field:
      const ecs_table_record_t **trs
      
    • trs

      public static void trs(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_table_record_t **trs
      
    • sizes$layout

      public static final AddressLayout sizes$layout()
      Layout for field:
      const ecs_size_t *sizes
      
    • sizes$offset

      public static final long sizes$offset()
      Offset for field:
      const ecs_size_t *sizes
      
    • sizes

      public static MemorySegment sizes(MemorySegment struct)
      Getter for field:
      const ecs_size_t *sizes
      
    • sizes

      public static void sizes(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_size_t *sizes
      
    • table$layout

      public static final AddressLayout table$layout()
      Layout for field:
      ecs_table_t *table
      
    • table$offset

      public static final long table$offset()
      Offset for field:
      ecs_table_t *table
      
    • table

      public static MemorySegment table(MemorySegment struct)
      Getter for field:
      ecs_table_t *table
      
    • table

      public static void table(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_t *table
      
    • other_table$layout

      public static final AddressLayout other_table$layout()
      Layout for field:
      ecs_table_t *other_table
      
    • other_table$offset

      public static final long other_table$offset()
      Offset for field:
      ecs_table_t *other_table
      
    • other_table

      public static MemorySegment other_table(MemorySegment struct)
      Getter for field:
      ecs_table_t *other_table
      
    • other_table

      public static void other_table(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_t *other_table
      
    • ids$layout

      public static final AddressLayout ids$layout()
      Layout for field:
      ecs_id_t *ids
      
    • ids$offset

      public static final long ids$offset()
      Offset for field:
      ecs_id_t *ids
      
    • ids

      public static MemorySegment ids(MemorySegment struct)
      Getter for field:
      ecs_id_t *ids
      
    • ids

      public static void ids(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_id_t *ids
      
    • sources$layout

      public static final AddressLayout sources$layout()
      Layout for field:
      ecs_entity_t *sources
      
    • sources$offset

      public static final long sources$offset()
      Offset for field:
      ecs_entity_t *sources
      
    • sources

      public static MemorySegment sources(MemorySegment struct)
      Getter for field:
      ecs_entity_t *sources
      
    • sources

      public static void sources(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entity_t *sources
      
    • constrained_vars$layout

      public static final ValueLayout.OfLong constrained_vars$layout()
      Layout for field:
      ecs_flags64_t constrained_vars
      
    • constrained_vars$offset

      public static final long constrained_vars$offset()
      Offset for field:
      ecs_flags64_t constrained_vars
      
    • constrained_vars

      public static long constrained_vars(MemorySegment struct)
      Getter for field:
      ecs_flags64_t constrained_vars
      
    • constrained_vars

      public static void constrained_vars(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_flags64_t constrained_vars
      
    • set_fields$layout

      public static final ValueLayout.OfInt set_fields$layout()
      Layout for field:
      ecs_flags32_t set_fields
      
    • set_fields$offset

      public static final long set_fields$offset()
      Offset for field:
      ecs_flags32_t set_fields
      
    • set_fields

      public static int set_fields(MemorySegment struct)
      Getter for field:
      ecs_flags32_t set_fields
      
    • set_fields

      public static void set_fields(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t set_fields
      
    • ref_fields$layout

      public static final ValueLayout.OfInt ref_fields$layout()
      Layout for field:
      ecs_flags32_t ref_fields
      
    • ref_fields$offset

      public static final long ref_fields$offset()
      Offset for field:
      ecs_flags32_t ref_fields
      
    • ref_fields

      public static int ref_fields(MemorySegment struct)
      Getter for field:
      ecs_flags32_t ref_fields
      
    • ref_fields

      public static void ref_fields(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t ref_fields
      
    • row_fields$layout

      public static final ValueLayout.OfInt row_fields$layout()
      Layout for field:
      ecs_flags32_t row_fields
      
    • row_fields$offset

      public static final long row_fields$offset()
      Offset for field:
      ecs_flags32_t row_fields
      
    • row_fields

      public static int row_fields(MemorySegment struct)
      Getter for field:
      ecs_flags32_t row_fields
      
    • row_fields

      public static void row_fields(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t row_fields
      
    • up_fields$layout

      public static final ValueLayout.OfInt up_fields$layout()
      Layout for field:
      ecs_flags32_t up_fields
      
    • up_fields$offset

      public static final long up_fields$offset()
      Offset for field:
      ecs_flags32_t up_fields
      
    • up_fields

      public static int up_fields(MemorySegment struct)
      Getter for field:
      ecs_flags32_t up_fields
      
    • up_fields

      public static void up_fields(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t up_fields
      
    • system$layout

      public static final ValueLayout.OfLong system$layout()
      Layout for field:
      ecs_entity_t system
      
    • system$offset

      public static final long system$offset()
      Offset for field:
      ecs_entity_t system
      
    • system

      public static long system(MemorySegment struct)
      Getter for field:
      ecs_entity_t system
      
    • system

      public static void system(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t system
      
    • event$layout

      public static final ValueLayout.OfLong event$layout()
      Layout for field:
      ecs_entity_t event
      
    • event$offset

      public static final long event$offset()
      Offset for field:
      ecs_entity_t event
      
    • event

      public static long event(MemorySegment struct)
      Getter for field:
      ecs_entity_t event
      
    • event

      public static void event(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t event
      
    • event_id$layout

      public static final ValueLayout.OfLong event_id$layout()
      Layout for field:
      ecs_id_t event_id
      
    • event_id$offset

      public static final long event_id$offset()
      Offset for field:
      ecs_id_t event_id
      
    • event_id

      public static long event_id(MemorySegment struct)
      Getter for field:
      ecs_id_t event_id
      
    • event_id

      public static void event_id(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_id_t event_id
      
    • event_cur$layout

      public static final ValueLayout.OfInt event_cur$layout()
      Layout for field:
      int32_t event_cur
      
    • event_cur$offset

      public static final long event_cur$offset()
      Offset for field:
      int32_t event_cur
      
    • event_cur

      public static int event_cur(MemorySegment struct)
      Getter for field:
      int32_t event_cur
      
    • event_cur

      public static void event_cur(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t event_cur
      
    • field_count$layout

      public static final ValueLayout.OfByte field_count$layout()
      Layout for field:
      int8_t field_count
      
    • field_count$offset

      public static final long field_count$offset()
      Offset for field:
      int8_t field_count
      
    • field_count

      public static byte field_count(MemorySegment struct)
      Getter for field:
      int8_t field_count
      
    • field_count

      public static void field_count(MemorySegment struct, byte fieldValue)
      Setter for field:
      int8_t field_count
      
    • term_index$layout

      public static final ValueLayout.OfByte term_index$layout()
      Layout for field:
      int8_t term_index
      
    • term_index$offset

      public static final long term_index$offset()
      Offset for field:
      int8_t term_index
      
    • term_index

      public static byte term_index(MemorySegment struct)
      Getter for field:
      int8_t term_index
      
    • term_index

      public static void term_index(MemorySegment struct, byte fieldValue)
      Setter for field:
      int8_t term_index
      
    • query$layout

      public static final AddressLayout query$layout()
      Layout for field:
      const ecs_query_t *query
      
    • query$offset

      public static final long query$offset()
      Offset for field:
      const ecs_query_t *query
      
    • query

      public static MemorySegment query(MemorySegment struct)
      Getter for field:
      const ecs_query_t *query
      
    • query

      public static void query(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_query_t *query
      
    • param$layout

      public static final AddressLayout param$layout()
      Layout for field:
      void *param
      
    • param$offset

      public static final long param$offset()
      Offset for field:
      void *param
      
    • param

      public static MemorySegment param(MemorySegment struct)
      Getter for field:
      void *param
      
    • param

      public static void param(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *param
      
    • ctx$layout

      public static final AddressLayout ctx$layout()
      Layout for field:
      void *ctx
      
    • ctx$offset

      public static final long ctx$offset()
      Offset for field:
      void *ctx
      
    • ctx

      public static MemorySegment ctx(MemorySegment struct)
      Getter for field:
      void *ctx
      
    • ctx

      public static void ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ctx
      
    • binding_ctx$layout

      public static final AddressLayout binding_ctx$layout()
      Layout for field:
      void *binding_ctx
      
    • binding_ctx$offset

      public static final long binding_ctx$offset()
      Offset for field:
      void *binding_ctx
      
    • binding_ctx

      public static MemorySegment binding_ctx(MemorySegment struct)
      Getter for field:
      void *binding_ctx
      
    • binding_ctx

      public static void binding_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *binding_ctx
      
    • callback_ctx$layout

      public static final AddressLayout callback_ctx$layout()
      Layout for field:
      void *callback_ctx
      
    • callback_ctx$offset

      public static final long callback_ctx$offset()
      Offset for field:
      void *callback_ctx
      
    • callback_ctx

      public static MemorySegment callback_ctx(MemorySegment struct)
      Getter for field:
      void *callback_ctx
      
    • callback_ctx

      public static void callback_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *callback_ctx
      
    • run_ctx$layout

      public static final AddressLayout run_ctx$layout()
      Layout for field:
      void *run_ctx
      
    • run_ctx$offset

      public static final long run_ctx$offset()
      Offset for field:
      void *run_ctx
      
    • run_ctx

      public static MemorySegment run_ctx(MemorySegment struct)
      Getter for field:
      void *run_ctx
      
    • run_ctx

      public static void run_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *run_ctx
      
    • delta_time$layout

      public static final ValueLayout.OfFloat delta_time$layout()
      Layout for field:
      float delta_time
      
    • delta_time$offset

      public static final long delta_time$offset()
      Offset for field:
      float delta_time
      
    • delta_time

      public static float delta_time(MemorySegment struct)
      Getter for field:
      float delta_time
      
    • delta_time

      public static void delta_time(MemorySegment struct, float fieldValue)
      Setter for field:
      float delta_time
      
    • delta_system_time$layout

      public static final ValueLayout.OfFloat delta_system_time$layout()
      Layout for field:
      float delta_system_time
      
    • delta_system_time$offset

      public static final long delta_system_time$offset()
      Offset for field:
      float delta_system_time
      
    • delta_system_time

      public static float delta_system_time(MemorySegment struct)
      Getter for field:
      float delta_system_time
      
    • delta_system_time

      public static void delta_system_time(MemorySegment struct, float fieldValue)
      Setter for field:
      float delta_system_time
      
    • frame_offset$layout

      public static final ValueLayout.OfInt frame_offset$layout()
      Layout for field:
      int32_t frame_offset
      
    • frame_offset$offset

      public static final long frame_offset$offset()
      Offset for field:
      int32_t frame_offset
      
    • frame_offset

      public static int frame_offset(MemorySegment struct)
      Getter for field:
      int32_t frame_offset
      
    • frame_offset

      public static void frame_offset(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t frame_offset
      
    • flags$layout

      public static final ValueLayout.OfInt flags$layout()
      Layout for field:
      ecs_flags32_t flags
      
    • flags$offset

      public static final long flags$offset()
      Offset for field:
      ecs_flags32_t flags
      
    • flags

      public static int flags(MemorySegment struct)
      Getter for field:
      ecs_flags32_t flags
      
    • flags

      public static void flags(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t flags
      
    • interrupted_by$layout

      public static final ValueLayout.OfLong interrupted_by$layout()
      Layout for field:
      ecs_entity_t interrupted_by
      
    • interrupted_by$offset

      public static final long interrupted_by$offset()
      Offset for field:
      ecs_entity_t interrupted_by
      
    • interrupted_by

      public static long interrupted_by(MemorySegment struct)
      Getter for field:
      ecs_entity_t interrupted_by
      
    • interrupted_by

      public static void interrupted_by(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t interrupted_by
      
    • priv_$layout

      public static final GroupLayout priv_$layout()
      Layout for field:
      ecs_iter_private_t priv_
      
    • priv_$offset

      public static final long priv_$offset()
      Offset for field:
      ecs_iter_private_t priv_
      
    • priv_

      public static MemorySegment priv_(MemorySegment struct)
      Getter for field:
      ecs_iter_private_t priv_
      
    • priv_

      public static void priv_(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_private_t priv_
      
    • next$layout

      public static final AddressLayout next$layout()
      Layout for field:
      ecs_iter_next_action_t next
      
    • next$offset

      public static final long next$offset()
      Offset for field:
      ecs_iter_next_action_t next
      
    • next

      public static MemorySegment next(MemorySegment struct)
      Getter for field:
      ecs_iter_next_action_t next
      
    • next

      public static void next(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_next_action_t next
      
    • callback$layout

      public static final AddressLayout callback$layout()
      Layout for field:
      ecs_iter_action_t callback
      
    • callback$offset

      public static final long callback$offset()
      Offset for field:
      ecs_iter_action_t callback
      
    • callback

      public static MemorySegment callback(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t callback
      
    • callback

      public static void callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t callback
      
    • fini$layout

      public static final AddressLayout fini$layout()
      Layout for field:
      ecs_iter_fini_action_t fini
      
    • fini$offset

      public static final long fini$offset()
      Offset for field:
      ecs_iter_fini_action_t fini
      
    • fini

      public static MemorySegment fini(MemorySegment struct)
      Getter for field:
      ecs_iter_fini_action_t fini
      
    • fini

      public static void fini(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_fini_action_t fini
      
    • chain_it$layout

      public static final AddressLayout chain_it$layout()
      Layout for field:
      ecs_iter_t *chain_it
      
    • chain_it$offset

      public static final long chain_it$offset()
      Offset for field:
      ecs_iter_t *chain_it
      
    • chain_it

      public static MemorySegment chain_it(MemorySegment struct)
      Getter for field:
      ecs_iter_t *chain_it
      
    • chain_it

      public static void chain_it(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_t *chain_it
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()