Class ecs_query_iter_t
java.lang.Object
com.github.elebras1.flecs.ecs_query_iter_t
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 Summary
Modifier and TypeMethodDescriptionstatic intall_cur(MemorySegment struct) Getter for field:int32_t all_curstatic voidall_cur(MemorySegment struct, int fieldValue) Setter for field:int32_t all_curstatic final ValueLayout.OfIntLayout for field:int32_t all_curstatic final longOffset for field:int32_t all_curstatic MemorySegmentall_tables(MemorySegment struct) Getter for field:ecs_vec_t *all_tablesstatic voidall_tables(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_vec_t *all_tablesstatic final AddressLayoutLayout for field:ecs_vec_t *all_tablesstatic final longOffset for field:ecs_vec_t *all_tablesstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intcur(MemorySegment struct) Getter for field:int32_t curstatic voidcur(MemorySegment struct, int fieldValue) Setter for field:int32_t curstatic final ValueLayout.OfIntLayout for field:int32_t curstatic final longOffset for field:int32_t curstatic MemorySegmentelem(MemorySegment struct) Getter for field:ecs_query_cache_match_t *elemstatic voidelem(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_cache_match_t *elemstatic final AddressLayoutLayout for field:ecs_query_cache_match_t *elemstatic final longOffset for field:ecs_query_cache_match_t *elemstatic MemorySegmentgroup(MemorySegment struct) Getter for field:ecs_query_cache_group_t *groupstatic voidgroup(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_cache_group_t *groupstatic final AddressLayoutLayout for field:ecs_query_cache_group_t *groupstatic final longOffset for field:ecs_query_cache_group_t *groupstatic booleaniter_single_group(MemorySegment struct) Getter for field:_Bool iter_single_groupstatic voiditer_single_group(MemorySegment struct, boolean fieldValue) Setter for field:_Bool iter_single_groupstatic final ValueLayout.OfBooleanLayout for field:_Bool iter_single_groupstatic final longOffset for field:_Bool iter_single_groupstatic final GroupLayoutlayout()The layout of this structstatic shortop(MemorySegment struct) Getter for field:int16_t opstatic voidop(MemorySegment struct, short fieldValue) Setter for field:int16_t opstatic MemorySegmentop_ctx(MemorySegment struct) Getter for field:struct ecs_query_op_ctx_t *op_ctxstatic voidop_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct ecs_query_op_ctx_t *op_ctxstatic final AddressLayoutLayout for field:struct ecs_query_op_ctx_t *op_ctxstatic final longOffset for field:struct ecs_query_op_ctx_t *op_ctxstatic final ValueLayout.OfShortLayout for field:int16_t opstatic final longOffset for field:int16_t opstatic MemorySegmentops(MemorySegment struct) Getter for field:const struct ecs_query_op_t *opsstatic voidops(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct ecs_query_op_t *opsstatic final AddressLayoutLayout for field:const struct ecs_query_op_t *opsstatic final longOffset for field:const struct ecs_query_op_t *opsstatic MemorySegmentprofile(MemorySegment struct) Getter for field:ecs_query_op_profile_t *profilestatic voidprofile(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_op_profile_t *profilestatic final AddressLayoutLayout for field:ecs_query_op_profile_t *profilestatic final longOffset for field:ecs_query_op_profile_t *profilestatic MemorySegmentquery_vars(MemorySegment struct) Getter for field:const struct ecs_query_var_t *query_varsstatic voidquery_vars(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct ecs_query_var_t *query_varsstatic final AddressLayoutLayout for field:const struct ecs_query_var_t *query_varsstatic final longOffset for field:const struct ecs_query_var_t *query_varsstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic MemorySegmenttables(MemorySegment struct) Getter for field:ecs_vec_t *tablesstatic voidtables(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_vec_t *tablesstatic final AddressLayoutLayout for field:ecs_vec_t *tablesstatic final longOffset for field:ecs_vec_t *tablesstatic MemorySegmentvars(MemorySegment struct) Getter for field:struct ecs_var_t *varsstatic voidvars(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct ecs_var_t *varsstatic final AddressLayoutLayout for field:struct ecs_var_t *varsstatic final longOffset for field:struct ecs_var_t *varsstatic MemorySegmentwritten(MemorySegment struct) Getter for field:uint64_t *writtenstatic voidwritten(MemorySegment struct, MemorySegment fieldValue) Setter for field:uint64_t *writtenstatic final AddressLayoutLayout for field:uint64_t *writtenstatic final longOffset for field:uint64_t *written
-
Method Details
-
layout
The layout of this struct -
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
Getter for field:struct ecs_var_t *vars -
vars
Setter for field:struct ecs_var_t *vars -
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
Getter for field:const struct ecs_query_var_t *query_vars -
query_vars
Setter for field:const struct ecs_query_var_t *query_vars -
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
Getter for field:const struct ecs_query_op_t *ops -
ops
Setter for field:const struct ecs_query_op_t *ops -
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
Getter for field:struct ecs_query_op_ctx_t *op_ctx -
op_ctx
Setter for field:struct ecs_query_op_ctx_t *op_ctx -
written$layout
Layout for field:uint64_t *written -
written$offset
public static final long written$offset()Offset for field:uint64_t *written -
written
Getter for field:uint64_t *written -
written
Setter for field:uint64_t *written -
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
Getter for field:ecs_query_cache_group_t *group -
group
Setter for field:ecs_query_cache_group_t *group -
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
Getter for field:ecs_vec_t *tables -
tables
Setter for field:ecs_vec_t *tables -
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
Getter for field:ecs_vec_t *all_tables -
all_tables
Setter for field:ecs_vec_t *all_tables -
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
Getter for field:ecs_query_cache_match_t *elem -
elem
Setter for field:ecs_query_cache_match_t *elem -
cur$layout
Layout for field:int32_t cur -
cur$offset
public static final long cur$offset()Offset for field:int32_t cur -
cur
Getter for field:int32_t cur -
cur
Setter for field:int32_t cur -
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
Getter for field:int32_t all_cur -
all_cur
Setter for field:int32_t all_cur -
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
Getter for field:ecs_query_op_profile_t *profile -
profile
Setter for field:ecs_query_op_profile_t *profile -
op$layout
Layout for field:int16_t op -
op$offset
public static final long op$offset()Offset for field:int16_t op -
op
Getter for field:int16_t op -
op
Setter for field:int16_t op -
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
Getter for field:_Bool iter_single_group -
iter_single_group
Setter for field:_Bool iter_single_group -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-