No matching definitions.

ecs/sized-sparse

src/ecs/sized-sparse.tur

SizedSparse: phantom-indexed sparse storage.

Since: E2c -- see docs/upcoming/ecs-sized-world-plan.md.

defopaque

SizedSparse

(SizedSparse [n A] :int))
defn

sized-sparse-new

(sized-sparse-new [n A] :)

allocate an empty (SizedSparse n A).

Since: E2c

defn

sized-sparse-len

(sized-sparse-len [n A])

live entry count.

Since: E2c

defn

sized-sparse-set!

(sized-sparse-set! [n A])

write a value at entity index idx.

Since: E2c

defn

sized-sparse-get

(sized-sparse-get [n A])

read the value at idx; caller must has?-check first.

Since: E2c

defn

sized-sparse-has?

(sized-sparse-has? [n A])

is there an entry at idx?

Since: E2c

defn

sized-sparse-del!

(sized-sparse-del! [n A])

remove the entry at idx; returns false if absent.

Since: E2c

defn

sized-sparse-free

(sized-sparse-free [n A])

release backing arrays.

Since: E2c

defn

sized-sparse-zip-domain

(sized-sparse-zip-domain [n A B])

cross-parameter unification probe.

Since: E2c