Class ecs_query_t
java.lang.Object
com.github.elebras1.flecs.ecs_query_t
struct ecs_query_t {
ecs_header_t hdr;
ecs_term_t *terms;
int32_t *sizes;
ecs_id_t *ids;
uint64_t bloom_filter;
ecs_flags32_t flags;
int8_t var_count;
int8_t term_count;
int8_t field_count;
ecs_flags32_t fixed_fields;
ecs_flags32_t var_fields;
ecs_flags32_t static_id_fields;
ecs_flags32_t data_fields;
ecs_flags32_t write_fields;
ecs_flags32_t read_fields;
ecs_flags32_t row_fields;
ecs_flags32_t shared_readonly_fields;
ecs_flags32_t set_fields;
ecs_query_cache_kind_t cache_kind;
char **vars;
void *ctx;
void *binding_ctx;
ecs_entity_t entity;
ecs_world_t *real_world;
ecs_world_t *world;
int32_t eval_count;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 MemorySegmentbinding_ctx(MemorySegment struct) Getter for field:void *binding_ctxstatic voidbinding_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *binding_ctxstatic final AddressLayoutLayout for field:void *binding_ctxstatic final longOffset for field:void *binding_ctxstatic longbloom_filter(MemorySegment struct) Getter for field:uint64_t bloom_filterstatic voidbloom_filter(MemorySegment struct, long fieldValue) Setter for field:uint64_t bloom_filterstatic final ValueLayout.OfLongLayout for field:uint64_t bloom_filterstatic final longOffset for field:uint64_t bloom_filterstatic intcache_kind(MemorySegment struct) Getter for field:ecs_query_cache_kind_t cache_kindstatic voidcache_kind(MemorySegment struct, int fieldValue) Setter for field:ecs_query_cache_kind_t cache_kindstatic final ValueLayout.OfIntLayout for field:ecs_query_cache_kind_t cache_kindstatic final longOffset for field:ecs_query_cache_kind_t cache_kindstatic MemorySegmentctx(MemorySegment struct) Getter for field:void *ctxstatic voidctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxstatic final AddressLayoutLayout for field:void *ctxstatic final longOffset for field:void *ctxstatic intdata_fields(MemorySegment struct) Getter for field:ecs_flags32_t data_fieldsstatic voiddata_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t data_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t data_fieldsstatic final longOffset for field:ecs_flags32_t data_fieldsstatic longentity(MemorySegment struct) Getter for field:ecs_entity_t entitystatic voidentity(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t entitystatic final ValueLayout.OfLongLayout for field:ecs_entity_t entitystatic final longOffset for field:ecs_entity_t entitystatic inteval_count(MemorySegment struct) Getter for field:int32_t eval_countstatic voideval_count(MemorySegment struct, int fieldValue) Setter for field:int32_t eval_countstatic final ValueLayout.OfIntLayout for field:int32_t eval_countstatic final longOffset for field:int32_t eval_countstatic bytefield_count(MemorySegment struct) Getter for field:int8_t field_countstatic voidfield_count(MemorySegment struct, byte fieldValue) Setter for field:int8_t field_countstatic final ValueLayout.OfByteLayout for field:int8_t field_countstatic final longOffset for field:int8_t field_countstatic intfixed_fields(MemorySegment struct) Getter for field:ecs_flags32_t fixed_fieldsstatic voidfixed_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t fixed_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t fixed_fieldsstatic final longOffset for field:ecs_flags32_t fixed_fieldsstatic intflags(MemorySegment struct) Getter for field:ecs_flags32_t flagsstatic voidflags(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t flagsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t flagsstatic final longOffset for field:ecs_flags32_t flagsstatic MemorySegmenthdr(MemorySegment struct) Getter for field:ecs_header_t hdrstatic voidhdr(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_header_t hdrstatic final GroupLayoutLayout for field:ecs_header_t hdrstatic final longOffset for field:ecs_header_t hdrstatic MemorySegmentids(MemorySegment struct) Getter for field:ecs_id_t *idsstatic voidids(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_id_t *idsstatic final AddressLayoutLayout for field:ecs_id_t *idsstatic final longOffset for field:ecs_id_t *idsstatic final GroupLayoutlayout()The layout of this structstatic intread_fields(MemorySegment struct) Getter for field:ecs_flags32_t read_fieldsstatic voidread_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t read_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t read_fieldsstatic final longOffset for field:ecs_flags32_t read_fieldsstatic MemorySegmentreal_world(MemorySegment struct) Getter for field:ecs_world_t *real_worldstatic voidreal_world(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_world_t *real_worldstatic final AddressLayoutLayout for field:ecs_world_t *real_worldstatic final longOffset for field:ecs_world_t *real_worldstatic 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 introw_fields(MemorySegment struct) Getter for field:ecs_flags32_t row_fieldsstatic voidrow_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t row_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t row_fieldsstatic final longOffset for field:ecs_flags32_t row_fieldsstatic intset_fields(MemorySegment struct) Getter for field:ecs_flags32_t set_fieldsstatic voidset_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t set_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t set_fieldsstatic final longOffset for field:ecs_flags32_t set_fieldsstatic intshared_readonly_fields(MemorySegment struct) Getter for field:ecs_flags32_t shared_readonly_fieldsstatic voidshared_readonly_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t shared_readonly_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t shared_readonly_fieldsstatic final longOffset for field:ecs_flags32_t shared_readonly_fieldsstatic longsizeof()The size (in bytes) of this structstatic MemorySegmentsizes(MemorySegment struct) Getter for field:int32_t *sizesstatic voidsizes(MemorySegment struct, MemorySegment fieldValue) Setter for field:int32_t *sizesstatic final AddressLayoutLayout for field:int32_t *sizesstatic final longOffset for field:int32_t *sizesstatic intstatic_id_fields(MemorySegment struct) Getter for field:ecs_flags32_t static_id_fieldsstatic voidstatic_id_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t static_id_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t static_id_fieldsstatic final longOffset for field:ecs_flags32_t static_id_fieldsstatic byteterm_count(MemorySegment struct) Getter for field:int8_t term_countstatic voidterm_count(MemorySegment struct, byte fieldValue) Setter for field:int8_t term_countstatic final ValueLayout.OfByteLayout for field:int8_t term_countstatic final longOffset for field:int8_t term_countstatic MemorySegmentterms(MemorySegment struct) Getter for field:ecs_term_t *termsstatic voidterms(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_term_t *termsstatic final AddressLayoutLayout for field:ecs_term_t *termsstatic final longOffset for field:ecs_term_t *termsstatic bytevar_count(MemorySegment struct) Getter for field:int8_t var_countstatic voidvar_count(MemorySegment struct, byte fieldValue) Setter for field:int8_t var_countstatic final ValueLayout.OfByteLayout for field:int8_t var_countstatic final longOffset for field:int8_t var_countstatic intvar_fields(MemorySegment struct) Getter for field:ecs_flags32_t var_fieldsstatic voidvar_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t var_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t var_fieldsstatic final longOffset for field:ecs_flags32_t var_fieldsstatic MemorySegmentvars(MemorySegment struct) Getter for field:char **varsstatic voidvars(MemorySegment struct, MemorySegment fieldValue) Setter for field:char **varsstatic final AddressLayoutLayout for field:char **varsstatic final longOffset for field:char **varsstatic MemorySegmentworld(MemorySegment struct) Getter for field:ecs_world_t *worldstatic voidworld(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_world_t *worldstatic final AddressLayoutLayout for field:ecs_world_t *worldstatic final longOffset for field:ecs_world_t *worldstatic intwrite_fields(MemorySegment struct) Getter for field:ecs_flags32_t write_fieldsstatic voidwrite_fields(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t write_fieldsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t write_fieldsstatic final longOffset for field:ecs_flags32_t write_fields
-
Method Details
-
layout
The layout of this struct -
hdr$layout
Layout for field:ecs_header_t hdr -
hdr$offset
public static final long hdr$offset()Offset for field:ecs_header_t hdr -
hdr
Getter for field:ecs_header_t hdr -
hdr
Setter for field:ecs_header_t hdr -
terms$layout
Layout for field:ecs_term_t *terms -
terms$offset
public static final long terms$offset()Offset for field:ecs_term_t *terms -
terms
Getter for field:ecs_term_t *terms -
terms
Setter for field:ecs_term_t *terms -
sizes$layout
Layout for field:int32_t *sizes -
sizes$offset
public static final long sizes$offset()Offset for field:int32_t *sizes -
sizes
Getter for field:int32_t *sizes -
sizes
Setter for field:int32_t *sizes -
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
Getter for field:ecs_id_t *ids -
ids
Setter for field:ecs_id_t *ids -
bloom_filter$layout
Layout for field:uint64_t bloom_filter -
bloom_filter$offset
public static final long bloom_filter$offset()Offset for field:uint64_t bloom_filter -
bloom_filter
Getter for field:uint64_t bloom_filter -
bloom_filter
Setter for field:uint64_t bloom_filter -
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
Getter for field:ecs_flags32_t flags -
flags
Setter for field:ecs_flags32_t flags -
var_count$layout
Layout for field:int8_t var_count -
var_count$offset
public static final long var_count$offset()Offset for field:int8_t var_count -
var_count
Getter for field:int8_t var_count -
var_count
Setter for field:int8_t var_count -
term_count$layout
Layout for field:int8_t term_count -
term_count$offset
public static final long term_count$offset()Offset for field:int8_t term_count -
term_count
Getter for field:int8_t term_count -
term_count
Setter for field:int8_t term_count -
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
Getter for field:int8_t field_count -
field_count
Setter for field:int8_t field_count -
fixed_fields$layout
Layout for field:ecs_flags32_t fixed_fields -
fixed_fields$offset
public static final long fixed_fields$offset()Offset for field:ecs_flags32_t fixed_fields -
fixed_fields
Getter for field:ecs_flags32_t fixed_fields -
fixed_fields
Setter for field:ecs_flags32_t fixed_fields -
var_fields$layout
Layout for field:ecs_flags32_t var_fields -
var_fields$offset
public static final long var_fields$offset()Offset for field:ecs_flags32_t var_fields -
var_fields
Getter for field:ecs_flags32_t var_fields -
var_fields
Setter for field:ecs_flags32_t var_fields -
static_id_fields$layout
Layout for field:ecs_flags32_t static_id_fields -
static_id_fields$offset
public static final long static_id_fields$offset()Offset for field:ecs_flags32_t static_id_fields -
static_id_fields
Getter for field:ecs_flags32_t static_id_fields -
static_id_fields
Setter for field:ecs_flags32_t static_id_fields -
data_fields$layout
Layout for field:ecs_flags32_t data_fields -
data_fields$offset
public static final long data_fields$offset()Offset for field:ecs_flags32_t data_fields -
data_fields
Getter for field:ecs_flags32_t data_fields -
data_fields
Setter for field:ecs_flags32_t data_fields -
write_fields$layout
Layout for field:ecs_flags32_t write_fields -
write_fields$offset
public static final long write_fields$offset()Offset for field:ecs_flags32_t write_fields -
write_fields
Getter for field:ecs_flags32_t write_fields -
write_fields
Setter for field:ecs_flags32_t write_fields -
read_fields$layout
Layout for field:ecs_flags32_t read_fields -
read_fields$offset
public static final long read_fields$offset()Offset for field:ecs_flags32_t read_fields -
read_fields
Getter for field:ecs_flags32_t read_fields -
read_fields
Setter for field:ecs_flags32_t read_fields -
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
Getter for field:ecs_flags32_t row_fields -
row_fields
Setter for field:ecs_flags32_t row_fields -
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
Getter for field:ecs_flags32_t set_fields -
set_fields
Setter for field:ecs_flags32_t set_fields -
cache_kind$layout
Layout for field:ecs_query_cache_kind_t cache_kind -
cache_kind$offset
public static final long cache_kind$offset()Offset for field:ecs_query_cache_kind_t cache_kind -
cache_kind
Getter for field:ecs_query_cache_kind_t cache_kind -
cache_kind
Setter for field:ecs_query_cache_kind_t cache_kind -
vars$layout
Layout for field:char **vars -
vars$offset
public static final long vars$offset()Offset for field:char **vars -
vars
Getter for field:char **vars -
vars
Setter for field:char **vars -
ctx$layout
Layout for field:void *ctx -
ctx$offset
public static final long ctx$offset()Offset for field:void *ctx -
ctx
Getter for field:void *ctx -
ctx
Setter for field:void *ctx -
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
Getter for field:void *binding_ctx -
binding_ctx
Setter for field:void *binding_ctx -
entity$layout
Layout for field:ecs_entity_t entity -
entity$offset
public static final long entity$offset()Offset for field:ecs_entity_t entity -
entity
Getter for field:ecs_entity_t entity -
entity
Setter for field:ecs_entity_t entity -
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
Getter for field:ecs_world_t *real_world -
real_world
Setter for field:ecs_world_t *real_world -
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
Getter for field:ecs_world_t *world -
world
Setter for field:ecs_world_t *world -
eval_count$layout
Layout for field:int32_t eval_count -
eval_count$offset
public static final long eval_count$offset()Offset for field:int32_t eval_count -
eval_count
Getter for field:int32_t eval_count -
eval_count
Setter for field:int32_t eval_count -
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()
-