The basis for all enum definitions, validate_enum_definition()
checks the enum arguments for internal consistency
validate_numeric_enum() checks numeric enum arguments
for internal consistency with the numeric enum class
validate_generic_enum() checks generic enums
for internal consistency with the generic enum class
validate_enum_definition(.enum_data) validate_numeric_enum(.enum_data) validate_generic_enum(.enum_data)
| .enum_data | named list of arguments |
|---|
input data
input data
input data
validate_enum_definition() checks that all values supplied have names.
validate_numeric_enum() checks that, when evaluated,
all the enum members are unique,
and can be interpreted as numeric
validate_generic_enum() check that all
arguments supplied to the constructor
have a unique name and value.