next up previous contents
Next: Derived Floating Point Type Up: Derived Enumeration Type Classes Previous: Enumeration Type Template Class

Enumeration Type Template Class Instantiation

A define statement maps each enumeration type name to a corresponding template instantiation. The type name may now be used to create an VHDL enumeration instance.


TYPE myenum is (blue, red, green, yellow);
is mapped to
#define L3lib_P6mypack_T6myenum integer_type<L3lib_P6mypack_I6myenum>
where L3lib_P6mypack_I6myenum is the type info class of the VHDL enumeration type myenum defined in package mypack of library lib.