CellGraphRegistry class abstract final

Public read-only access to the cell id registry.

When to use

Tests and the CLI-only hook; it is deliberately not part of the normal API surface — users should not need it outside tests.

How it works

The registry itself is _CellGraphRegistry (private to the library); this class exposes the minimum public surface needed: isRegistered checks whether an id is claimed, snapshot returns an immutable view, and forceReset clears everything (test-only).

See also:

  • CellGraphBuilder — the normal path that populates the registry.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

forceReset() → void
Clears the registry. Test-only. Calling this in production will invalidate every CellSnapshot and Pulse whose source refers to a cleared id; subsequent codecs will fail to reconstruct those pulses.
isRegistered(String id) → bool
Whether id is currently claimed by any registered cell in this process.
snapshot() → Map<String, String>
A diagnostic snapshot of {id: nucleus} for every registered cell. Returns an immutable map.