The name of this label manager. This is a convenience that can be used to produce distinctive error messages, for instance.
A mapping of element id to allocated label.
A counter that must be incremented with each new label allocation. This allows the allocation algorithm to know what the next label should be.
The name of this label manager. This is a convenience that can be used to produce distinctive error messages, for instance.
Deallocate all mappings between ids and labels. This will reset _idToLabel to an empty map and labelIndex to 0.
Gets the label associated with an id.
The id.
The label. The value returned by this method obeys the same rules
as that of allocateLabel with the exception that if a call returned
undefined
it may return another value on a subsequent call. (That is,
an id
that did not have a label allocated to it may acquire such
label.)
Gets the next number in the number sequence. This increments labelIndex.
The number.
Generated using TypeDoc
A label manager that associates alphabetical labels to each id given to it. It will associate labels "a", "b", "c", ... up to "z" and then will associate "aa", "bb", "cc", ... up to "zz", and continues repeating characters each time it cycles over the alphabet.
The name of this label manager.