next up previous contents
Next: enum_base Class Instantiation Up: The Enumeration Base Class Previous: enum_base Class Variables

enum_base Class Methods

Methods Description
enum_base(const int a=0) Constructor to create an enumeration instance from an int.
enum_base(const enum_base &a) Copy constructor.
&operator=(enum_base a)
Assignment operator.
operator int() Cast operator to convert a enumeration value to int. It simply return the value of ``value''.
static int ld_size() returns log2 of the size (in byte) of a enumeration instance. Note, this function always returns the same value (usually 0, i.e. 20=1 byte).
static bool scalar() Always returns true because enumeration types are scalar.
static void cleanup() Actually does nothing.

Note, no further operators are defined in enum_base.