ordinary_inspector_declaration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.5/ordinary_inspector_declaration.bend as Ordinary_inspector_declaration
9 imports
import Base import ./ordinary_component_binding.bend as B import ./ordinary_declaration.bend as Identity import ./ordinary_query_declaration.bend as D import ./inspector.bend as I import ./inspector_query.bend as Q import ./inspector_query_projection.bend as Projection import ./column.bend as Col import ./inspector_query_projection.bend as Rows
Types
type Declaration source · line 13 · raw
@-S:Data -> @-H:Type -> @-V:Data -> Type
Ordinary read-only Inspector query plus clauses from the same binding. Retains no World or registered reader; raw construction is trusted setup.
Declaration@-S:Data -> @-H:Type -> @-V:Data -> @query:0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector_query.ReadQuery<H, S, V> -> @clauses:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>> -> Declaration<S, H, V>
Templates
template query source · line 17 · raw
@-S:Data -> @-H:Type -> @-V:Data -> @declaration:Declaration<S, H, V> -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector_query.ReadQuery<H, S, V>
Consume this declaration to obtain its typed read-query capability. Does not enumerate rows or advance an observation/system cursor.
template observe source · line 22 · raw
@-S:Data -> @-H:Type -> @-V:Data -> @declaration:Declaration<S, H, V> -> Pair(Declaration<S, H, V>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>>)
Return declaration and detached clauses without accessing World or reading components. Prefer this when retaining the declaration owner.
template read source · line 27 · raw
@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @-R:Type -> @-E:Data -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_component_binding.Binding<S, Store, Rest, P, V, Token, take, put, view> -> Declaration<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector.Frame<S, Store, R, E>, V>
Build required component inspection from its operational binding. Derives read grant and clauses together; view preserves P while exposing V.
template optional source · line 31 · raw
@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @-R:Type -> @-E:Data -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_component_binding.Binding<S, Store, Rest, P, V, Token, take, put, view> -> Declaration<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector.Frame<S, Store, R, E>, V>
Build optional component inspection, preserving explicit absence for a live entity. Canonical lookup still rejects stale/foreign handles.
template added source · line 35 · raw
@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @-R:Type -> @-E:Data -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_component_binding.Binding<S, Store, Rest, P, V, Token, take, put, view> -> Declaration<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector.Frame<S, Store, R, E>, V>
Build a presence-plus-added filter using Inspector cursor visibility. Does not consume registered system lifecycle/event cursors during setup.
template changed source · line 39 · raw
@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @-R:Type -> @-E:Data -> @-binding:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_component_binding.Binding<S, Store, Rest, P, V, Token, take, put, view> -> Declaration<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector.Frame<S, Store, R, E>, V>
Build a presence-plus-changed filter relative to the Inspector cursor. Operational binding and descriptive clauses share one source of truth.
template clauses source · line 43 · raw
@-S:Data -> @-H:Type -> @-V:Data -> @declaration:Declaration<S, H, V> -> List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>>
Consume declaration to obtain its detached query description, with no component read, registration execution or cursor change.
template each_result source · line 46 · raw
@-S:Data -> @-H:Type -> @-V:Data -> @clauses:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>> -> @result:Pair(H, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector_query_projection.Row<S, V>>) -> Pair(H, Pair(List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector_query_projection.Row<S, V>>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>>))
template each source · line 52 · raw
@-S:Data -> @-H:Type -> @-V:Data -> @-declaration:Declaration<S, H, V> -> @owner:H -> Pair(H, Pair(List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/inspector_query_projection.Row<S, V>>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_query_declaration.Clause<S>>))
Execute the declared read-only enumeration, returning owner, detached rows and retained clauses. Uses the matching Inspector grant; no mutable payload alias or registered system reader ownership escapes.