Class ecs_expr_eval_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_expr_eval_desc_t
struct ecs_expr_eval_desc_t {
const char *name;
const char *expr;
const ecs_script_vars_t *vars;
ecs_entity_t type;
ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *);
void *lookup_ctx;
_Bool disable_folding;
_Bool disable_dynamic_variable_binding;
_Bool allow_unresolved_identifiers;
ecs_script_runtime_t *runtime;
void *script_visitor;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *) -
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 booleanGetter for field:_Bool allow_unresolved_identifiersstatic voidallow_unresolved_identifiers(MemorySegment struct, boolean fieldValue) Setter for field:_Bool allow_unresolved_identifiersstatic final ValueLayout.OfBooleanLayout for field:_Bool allow_unresolved_identifiersstatic final longOffset for field:_Bool allow_unresolved_identifiersstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static booleanGetter for field:_Bool disable_dynamic_variable_bindingstatic voiddisable_dynamic_variable_binding(MemorySegment struct, boolean fieldValue) Setter for field:_Bool disable_dynamic_variable_bindingstatic final ValueLayout.OfBooleanLayout for field:_Bool disable_dynamic_variable_bindingstatic final longOffset for field:_Bool disable_dynamic_variable_bindingstatic booleandisable_folding(MemorySegment struct) Getter for field:_Bool disable_foldingstatic voiddisable_folding(MemorySegment struct, boolean fieldValue) Setter for field:_Bool disable_foldingstatic final ValueLayout.OfBooleanLayout for field:_Bool disable_foldingstatic final longOffset for field:_Bool disable_foldingstatic MemorySegmentexpr(MemorySegment struct) Getter for field:const char *exprstatic voidexpr(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *exprstatic final AddressLayoutLayout for field:const char *exprstatic final longOffset for field:const char *exprstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentlookup_action(MemorySegment struct) Getter for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)static voidlookup_action(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)static final AddressLayoutLayout for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)static final longOffset for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)static MemorySegmentlookup_ctx(MemorySegment struct) Getter for field:void *lookup_ctxstatic voidlookup_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *lookup_ctxstatic final AddressLayoutLayout for field:void *lookup_ctxstatic final longOffset for field:void *lookup_ctxstatic MemorySegmentname(MemorySegment struct) Getter for field:const char *namestatic voidname(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *namestatic final AddressLayoutLayout for field:const char *namestatic final longOffset for field:const char *namestatic 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 MemorySegmentruntime(MemorySegment struct) Getter for field:ecs_script_runtime_t *runtimestatic voidruntime(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_script_runtime_t *runtimestatic final AddressLayoutLayout for field:ecs_script_runtime_t *runtimestatic final longOffset for field:ecs_script_runtime_t *runtimestatic MemorySegmentscript_visitor(MemorySegment struct) Getter for field:void *script_visitorstatic voidscript_visitor(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *script_visitorstatic final AddressLayoutLayout for field:void *script_visitorstatic final longOffset for field:void *script_visitorstatic longsizeof()The size (in bytes) of this structstatic longtype(MemorySegment struct) Getter for field:ecs_entity_t typestatic voidtype(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t typestatic final ValueLayout.OfLongLayout for field:ecs_entity_t typestatic final longOffset for field:ecs_entity_t typestatic MemorySegmentvars(MemorySegment struct) Getter for field:const ecs_script_vars_t *varsstatic voidvars(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_script_vars_t *varsstatic final AddressLayoutLayout for field:const ecs_script_vars_t *varsstatic final longOffset for field:const ecs_script_vars_t *vars
-
Method Details
-
layout
The layout of this struct -
name$layout
Layout for field:const char *name -
name$offset
public static final long name$offset()Offset for field:const char *name -
name
Getter for field:const char *name -
name
Setter for field:const char *name -
expr$layout
Layout for field:const char *expr -
expr$offset
public static final long expr$offset()Offset for field:const char *expr -
expr
Getter for field:const char *expr -
expr
Setter for field:const char *expr -
vars$layout
Layout for field:const ecs_script_vars_t *vars -
vars$offset
public static final long vars$offset()Offset for field:const ecs_script_vars_t *vars -
vars
Getter for field:const ecs_script_vars_t *vars -
vars
Setter for field:const ecs_script_vars_t *vars -
type$layout
Layout for field:ecs_entity_t type -
type$offset
public static final long type$offset()Offset for field:ecs_entity_t type -
type
Getter for field:ecs_entity_t type -
type
Setter for field:ecs_entity_t type -
lookup_action$layout
Layout for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *) -
lookup_action$offset
public static final long lookup_action$offset()Offset for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *) -
lookup_action
Getter for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *) -
lookup_action
Setter for field:ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *) -
lookup_ctx$layout
Layout for field:void *lookup_ctx -
lookup_ctx$offset
public static final long lookup_ctx$offset()Offset for field:void *lookup_ctx -
lookup_ctx
Getter for field:void *lookup_ctx -
lookup_ctx
Setter for field:void *lookup_ctx -
disable_folding$layout
Layout for field:_Bool disable_folding -
disable_folding$offset
public static final long disable_folding$offset()Offset for field:_Bool disable_folding -
disable_folding
Getter for field:_Bool disable_folding -
disable_folding
Setter for field:_Bool disable_folding -
disable_dynamic_variable_binding$layout
Layout for field:_Bool disable_dynamic_variable_binding -
disable_dynamic_variable_binding$offset
public static final long disable_dynamic_variable_binding$offset()Offset for field:_Bool disable_dynamic_variable_binding -
disable_dynamic_variable_binding
Getter for field:_Bool disable_dynamic_variable_binding -
disable_dynamic_variable_binding
Setter for field:_Bool disable_dynamic_variable_binding -
allow_unresolved_identifiers$layout
Layout for field:_Bool allow_unresolved_identifiers -
allow_unresolved_identifiers$offset
public static final long allow_unresolved_identifiers$offset()Offset for field:_Bool allow_unresolved_identifiers -
allow_unresolved_identifiers
Getter for field:_Bool allow_unresolved_identifiers -
allow_unresolved_identifiers
Setter for field:_Bool allow_unresolved_identifiers -
runtime$layout
Layout for field:ecs_script_runtime_t *runtime -
runtime$offset
public static final long runtime$offset()Offset for field:ecs_script_runtime_t *runtime -
runtime
Getter for field:ecs_script_runtime_t *runtime -
runtime
Setter for field:ecs_script_runtime_t *runtime -
script_visitor$layout
Layout for field:void *script_visitor -
script_visitor$offset
public static final long script_visitor$offset()Offset for field:void *script_visitor -
script_visitor
Getter for field:void *script_visitor -
script_visitor
Setter for field:void *script_visitor -
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()
-