~/bend-docscommunity

internal/query_read_session.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.0/internal/query_read_session.bend as Query_read_session

14 imports
import Base
import ../change_tick.bend as Tick
import ../clock_state.bend as Clock
import ../world.bend as W
import ../entity_key.bend as K
import ../entity_allocator.bend as A
import ../component.bend as C
import ../column.bend as Col
import ../inspector.bend as I
import ../inspector_query.bend as IQ
import ../inspector_query_world.bend as IW
import ../inspector_query_projection.bend as P
import ../compose.bend as Q
import ../deferred_command.bend as Deferred

Types

type Owner source · line 17 · raw

@-S:Data -> @-Store:Type -> Type

A scan owns one Store; unrelated World owners remain outside its row loop.

Templates

template read_join source · line 20 · raw

@-S:Data -> @-Store:Type -> @-V:Data -> @namespace:U32 -> @allocator:0x296ca5f551e3792cd56cfc8122905b94/entity_allocator.Allocator -> @cursor:Maybe<&2, 0x296ca5f551e3792cd56cfc8122905b94/change_tick.Tick> -> @observed:Pair(Store, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>) -> Pair(Owner<S, Store>, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>)

template read_valid source · line 23 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-Payload:Type -> @-V:Data -> @-take:(@_:Store -> Pair(Rest, 0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload>)) -> @-put:(@_:Rest -> @_:0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload> -> Store) -> @-view:(@_:Payload -> Pair(Payload, V)) -> @namespace:U32 -> @store:Store -> @cursor:Maybe<&2, 0x296ca5f551e3792cd56cfc8122905b94/change_tick.Tick> -> @key:0x296ca5f551e3792cd56cfc8122905b94/entity_key.Key -> @observed:Pair(0x296ca5f551e3792cd56cfc8122905b94/entity_allocator.Allocator, Bool) -> Pair(Owner<S, Store>, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>)

template read_namespace source · line 27 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-Payload:Type -> @-V:Data -> @-take:(@_:Store -> Pair(Rest, 0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload>)) -> @-put:(@_:Rest -> @_:0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload> -> Store) -> @-view:(@_:Payload -> Pair(Payload, V)) -> @allowed:Bool -> @namespace:U32 -> @allocator:0x296ca5f551e3792cd56cfc8122905b94/entity_allocator.Allocator -> @store:Store -> @cursor:Maybe<&2, 0x296ca5f551e3792cd56cfc8122905b94/change_tick.Tick> -> @+key:0x296ca5f551e3792cd56cfc8122905b94/entity_key.Key -> Pair(Owner<S, Store>, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>)

template read source · line 31 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-Payload:Type -> @-V:Data -> @-take:(@_:Store -> Pair(Rest, 0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload>)) -> @-put:(@_:Rest -> @_:0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload> -> Store) -> @-view:(@_:Payload -> Pair(Payload, V)) -> @owner:Owner<S, Store> -> @target:0x296ca5f551e3792cd56cfc8122905b94/world.Handle<S> -> Pair(Owner<S, Store>, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>)

template matched source · line 34 · raw

@-S:Data -> @-Store:Type -> @mode:0x296ca5f551e3792cd56cfc8122905b94/compose.Selection -> @observed:Pair(Owner<S, Store>, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<Bool>) -> Pair(Owner<S, Store>, Bool)

template matches source · line 37 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-Payload:Type -> @-take:(@_:Store -> Pair(Rest, 0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload>)) -> @-put:(@_:Rest -> @_:0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload> -> Store) -> @-mode:0x296ca5f551e3792cd56cfc8122905b94/compose.Selection -> @owner:Owner<S, Store> -> @target:0x296ca5f551e3792cd56cfc8122905b94/world.Handle<S> -> Pair(Owner<S, Store>, Bool)

template slot source · line 39 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-Payload:Type -> @-V:Data -> @-take:(@_:Store -> Pair(Rest, 0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload>)) -> @-put:(@_:Rest -> @_:0x296ca5f551e3792cd56cfc8122905b94/column.Column<S, Payload> -> Store) -> @-view:(@_:Payload -> Pair(Payload, V)) -> @-mode:0x296ca5f551e3792cd56cfc8122905b94/compose.Selection -> 0x296ca5f551e3792cd56cfc8122905b94/inspector_query_projection.DeclaredSelection<Owner<S, Store>, S, 0x296ca5f551e3792cd56cfc8122905b94/component.Access<V>>

template restore source · line 42 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @resource:R -> @events:List<&2, E> -> @pending:List<&1, 0x296ca5f551e3792cd56cfc8122905b94/deferred_command.Command<0x296ca5f551e3792cd56cfc8122905b94/world.World<S, Store, R, E>>> -> @registrations:List<&2, 0x296ca5f551e3792cd56cfc8122905b94/world.RegistrationMeta> -> @nextSystemId:U32 -> @clock:0x296ca5f551e3792cd56cfc8122905b94/clock_state.State -> @observed:Pair(Owner<S, Store>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/inspector_query.ProjectedRow<S, V>>) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/inspector_query.ProjectedRow<S, V>>)

template enter_world source · line 45 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-selection:0x296ca5f551e3792cd56cfc8122905b94/inspector_query_projection.DeclaredSelection<Owner<S, Store>, S, V> -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, Store, R, E> -> @cursor:Maybe<&2, 0x296ca5f551e3792cd56cfc8122905b94/change_tick.Tick> -> @targets:List<&2, 0x296ca5f551e3792cd56cfc8122905b94/world.Handle<S>> -> Pair(0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/inspector_query.ProjectedRow<S, V>>)

template enter source · line 48 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-selection:0x296ca5f551e3792cd56cfc8122905b94/inspector_query_projection.DeclaredSelection<Owner<S, Store>, S, V> -> @observed:Pair(0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/world.Handle<S>>) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/inspector_query.ProjectedRow<S, V>>)

template enumerate source · line 51 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-selection:0x296ca5f551e3792cd56cfc8122905b94/inspector_query_projection.DeclaredSelection<Owner<S, Store>, S, V> -> @frame:0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E> -> Pair(0x296ca5f551e3792cd56cfc8122905b94/inspector.Frame<S, Store, R, E>, List<&2, 0x296ca5f551e3792cd56cfc8122905b94/inspector_query.ProjectedRow<S, V>>)