Module va_toolbox.hashed_enum

This modules provides code to declare enumeration with hashed values instead of usual numeration starting from 0 to n .

Functions

NameDescription
toHash(name) Simple hash function for enumeration name

Templates

NameDescription
HashedEnum Create a named enumeration with hash value for each enumeration member calculated from member name

Manifest constants

NameTypeDescription
createEnumLines Create the enumerations member list with hashed member name
createNames Create the enumerations member list with hashed member name