next up previous contents
Next: Physical Type Info Methods Up: The Physical Type Info Previous: Physical Info Class Name

Physical Type Info Variables

Note, the constants defined in a type info class are static. Hence, the C++ compiler can evaluate them when compiling code emitted by the code generator. The kernel does not know these classes because they are not defined at kernel compile time. Hence, it uses corresponding values stored in the base type info class to get the same information.

Variables Description
const static long unit_count Number of units.
const static char *units[x] The char string array stores the name of the units. ``x'' is the total number of units. The name of the basic unit is stored at ``unit[0]''.
const static long long int scale[x] The number of basic units each unit consists of. ``x'' is the total number of units.