Module supply

Module supply 

Source
Expand description

Supply infrastructure for variable relationship tracking.

Supplies provide efficient access to derived information about planning variables, such as inverse relationships (who points to whom) and anchor tracking (chain roots).

The supply pattern enables O(1) lookups that would otherwise require O(n) scans.

§Architecture

Structs§

AnchorVariableDemand
Demand for an anchor variable supply.
DemandKey
A unique key identifying a supply demand.
ExternalizedAnchorVariableSupply
Hash-based implementation of anchor variable supply.
ExternalizedSingletonInverseVariableSupply
Hash-based implementation of inverse variable supply.
ListVariableStateDemand
Demand for a ListVariableStateSupply.
ListVariableStateSupply
Supply that tracks list variable element positions.
SingletonInverseVariableDemand
Demand for a singleton inverse variable supply.
SupplyManager
Manager that holds and provides supplies.

Enums§

ElementPosition
Position of an element within a list variable.

Traits§

AnchorVariableSupply
Supply that provides O(1) lookup of an entity’s chain anchor.
IndexVariableSupply
Trait for supplies that provide index information.
InverseVariableSupply
Trait for supplies that provide inverse (owner entity) information.
SingletonInverseVariableSupply
Supply that provides O(1) lookup of the entity pointing to a value.
Supply
Marker trait for all supply types.
SupplyDemand
Trait for requesting a specific type of supply.