type Links
import bend-collections@1.0.0.0/src/containers/intrusive_links.bend as IntrusiveLinksimport Base
4# A ready-made link table for the intrusive list: entity ids are U32 values
5# 1 .. 2^node_depth - 1 (0 means "no entity"), roots are 0 .. 2^root_depth - 1.
6# One U32 per link, so a membership edit is a few indexed array writes. The
7# accessors below are the ones proved to meet the adapter laws for every size
8# (proofs/containers/intrusive_doubly_linked_list/links.bend); an application
9# that keeps its own entity array can copy this layout.
10type Links is Type:
11 Links{nexts: Array<U32>, prevs: Array<U32>, heads: Array<U32>}
Uses (2)
Used by (13)
- bend-collections@1.0.0.0/src/containers/intrusive_links:set_head
- bend-collections@1.0.0.0/src/containers/intrusive_links:set_next
- bend-collections@1.0.0.0/src/containers/intrusive_links:set_prev
- bend-collections@1.0.0.0/src/containers/intrusive_links:get_head
- bend-collections@1.0.0.0/src/containers/intrusive_links:head_got
- …