BaseDimension
- class BaseDimension
Description
A simple wrapper for a short-named base dimension.
We assume that dimension symbols are short, i.e. under 7 characters long or a single character (preferred), anything past that will be truncated.
Inheritance:
Members defined in
BaseDimension(7 members)Attributes
- property discriminant: int
System of quantities discriminant.
This allows using the same symbol between different systems of quantities, and resolve them uniquely.
This is pointer sized so that dimensions can be easily attached to AST nodes, e.g. by using their ids as discriminants.
- property order: int
Order for sorting this dimension among the same system of quantities as determined by discriminant.
Methods