Skip to main content

Module ids

Module ids 

Source
Expand description

Typed indices into the crate::XtceDb arenas.

The IR stores every entity in a Vec and refers to it by a u32 newtype rather than by Rc<RefCell<..>> or HashMap<String, ..>. That keeps the model Send + Sync, makes cloning cheap, gives the code generator a stable numbering to emit, and turns reference following into an array index instead of a hash lookup.

The newtypes are distinct so that a ParamId can never be used where a ContainerId is expected.

Structsยง

ContainerId
Index of a SequenceContainer.
MetaCommandId
Index of a MetaCommand.
ParamId
Index of a Parameter.
SpaceSystemId
Index of a SpaceSystem.
Span
A contiguous slice of a shared arena, stored in two words.
TypeId
Index of a parameter type.