Class ecs_query_iter_t

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

public class ecs_query_iter_t extends Object
struct ecs_query_iter_t {
    struct ecs_var_t *vars;
    const struct ecs_query_var_t *query_vars;
    const struct ecs_query_op_t *ops;
    struct ecs_query_op_ctx_t *op_ctx;
    uint64_t *written;
    ecs_query_cache_group_t *group;
    ecs_vec_t *tables;
    ecs_vec_t *all_tables;
    ecs_query_cache_match_t *elem;
    int32_t cur;
    int32_t all_cur;
    ecs_query_op_profile_t *profile;
    int16_t op;
    _Bool iter_single_group;
}
  • Method Details

    • layout

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

      public static final AddressLayout vars$layout()
      Layout for field:
      struct ecs_var_t *vars
      
    • vars$offset

      public static final long vars$offset()
      Offset for field:
      struct ecs_var_t *vars
      
    • vars

      public static MemorySegment vars(MemorySegment struct)
      Getter for field:
      struct ecs_var_t *vars
      
    • vars

      public static void vars(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct ecs_var_t *vars
      
    • query_vars$layout

      public static final AddressLayout query_vars$layout()
      Layout for field:
      const struct ecs_query_var_t *query_vars
      
    • query_vars$offset

      public static final long query_vars$offset()
      Offset for field:
      const struct ecs_query_var_t *query_vars
      
    • query_vars

      public static MemorySegment query_vars(MemorySegment struct)
      Getter for field:
      const struct ecs_query_var_t *query_vars
      
    • query_vars

      public static void query_vars(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const struct ecs_query_var_t *query_vars
      
    • ops$layout

      public static final AddressLayout ops$layout()
      Layout for field:
      const struct ecs_query_op_t *ops
      
    • ops$offset

      public static final long ops$offset()
      Offset for field:
      const struct ecs_query_op_t *ops
      
    • ops

      public static MemorySegment ops(MemorySegment struct)
      Getter for field:
      const struct ecs_query_op_t *ops
      
    • ops

      public static void ops(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const struct ecs_query_op_t *ops
      
    • op_ctx$layout

      public static final AddressLayout op_ctx$layout()
      Layout for field:
      struct ecs_query_op_ctx_t *op_ctx
      
    • op_ctx$offset

      public static final long op_ctx$offset()
      Offset for field:
      struct ecs_query_op_ctx_t *op_ctx
      
    • op_ctx

      public static MemorySegment op_ctx(MemorySegment struct)
      Getter for field:
      struct ecs_query_op_ctx_t *op_ctx
      
    • op_ctx

      public static void op_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct ecs_query_op_ctx_t *op_ctx
      
    • written$layout

      public static final AddressLayout written$layout()
      Layout for field:
      uint64_t *written
      
    • written$offset

      public static final long written$offset()
      Offset for field:
      uint64_t *written
      
    • written

      public static MemorySegment written(MemorySegment struct)
      Getter for field:
      uint64_t *written
      
    • written

      public static void written(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      uint64_t *written
      
    • group$layout

      public static final AddressLayout group$layout()
      Layout for field:
      ecs_query_cache_group_t *group
      
    • group$offset

      public static final long group$offset()
      Offset for field:
      ecs_query_cache_group_t *group
      
    • group

      public static MemorySegment group(MemorySegment struct)
      Getter for field:
      ecs_query_cache_group_t *group
      
    • group

      public static void group(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_cache_group_t *group
      
    • tables$layout

      public static final AddressLayout tables$layout()
      Layout for field:
      ecs_vec_t *tables
      
    • tables$offset

      public static final long tables$offset()
      Offset for field:
      ecs_vec_t *tables
      
    • tables

      public static MemorySegment tables(MemorySegment struct)
      Getter for field:
      ecs_vec_t *tables
      
    • tables

      public static void tables(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_vec_t *tables
      
    • all_tables$layout

      public static final AddressLayout all_tables$layout()
      Layout for field:
      ecs_vec_t *all_tables
      
    • all_tables$offset

      public static final long all_tables$offset()
      Offset for field:
      ecs_vec_t *all_tables
      
    • all_tables

      public static MemorySegment all_tables(MemorySegment struct)
      Getter for field:
      ecs_vec_t *all_tables
      
    • all_tables

      public static void all_tables(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_vec_t *all_tables
      
    • elem$layout

      public static final AddressLayout elem$layout()
      Layout for field:
      ecs_query_cache_match_t *elem
      
    • elem$offset

      public static final long elem$offset()
      Offset for field:
      ecs_query_cache_match_t *elem
      
    • elem

      public static MemorySegment elem(MemorySegment struct)
      Getter for field:
      ecs_query_cache_match_t *elem
      
    • elem

      public static void elem(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_cache_match_t *elem
      
    • cur$layout

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

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

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

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

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

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

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

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

      public static final AddressLayout profile$layout()
      Layout for field:
      ecs_query_op_profile_t *profile
      
    • profile$offset

      public static final long profile$offset()
      Offset for field:
      ecs_query_op_profile_t *profile
      
    • profile

      public static MemorySegment profile(MemorySegment struct)
      Getter for field:
      ecs_query_op_profile_t *profile
      
    • profile

      public static void profile(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_op_profile_t *profile
      
    • op$layout

      public static final ValueLayout.OfShort op$layout()
      Layout for field:
      int16_t op
      
    • op$offset

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

      public static short op(MemorySegment struct)
      Getter for field:
      int16_t op
      
    • op

      public static void op(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t op
      
    • iter_single_group$layout

      public static final ValueLayout.OfBoolean iter_single_group$layout()
      Layout for field:
      _Bool iter_single_group
      
    • iter_single_group$offset

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

      public static boolean iter_single_group(MemorySegment struct)
      Getter for field:
      _Bool iter_single_group
      
    • iter_single_group

      public static void iter_single_group(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool iter_single_group
      
    • 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()