next up previous contents
Next: integer_base Class Instantiation Up: The Integer Base Class Previous: integer_base Class Variables

integer_base Class Methods

Methods Description
integer_base(const int a) Constructor to create an integer instance from an int.
integer_base(const integer_base &a) Copy constructor.
&operator=(const integer_base a)
Assignment operator.
operator int() Cast operator to convert a integer value to int.
static int ld_size() returns log2 of the size (in byte) of a integer instance. Note, this function always returns the same value (usually 2, i.e. 22=4 bytes).
static bool scalar() Always returns true because physical types are scalar.
static void cleanup() Actually does nothing.

Note, no further operators are defined in integer_base.