Enumeration classifier overview

The capabilities of the Enumeration classifier are made available to your code by the presence of an enumeration, which is a part that holds a collection of named values.

For example, the predefined EGL OrderingKind enumeration holds the values byInsertion, byKey, and none. When you declare a dictionary and set the Ordering annotation, you set an OrderingKind value to specify the sequence in which data is retrieved from the dictionary. The general point is this: an enumeration is useful for restricting the values that are available at a given location in code and for clarifying the meaning of those values.

At this writing, only predefined EGL enumerations are available, and you use them to set some annotations but not to declare variables or constants.