Enumeration of Numeric Types

Detailed Description

A TypeList based enumeration of numeric types.

H. Carter Edwards <hcedwar@sandia.gov>
October 2007
A TypeList is used instead of declaring an enum so that the integer values are clearly defined and extension of the list is robust.

An enumeration value for a type is given by: NumericEnum< Type >::value . Thus a switch statement for a numeric type is formed as follows.

switch( my_value ) {
case NumericEnum< int >::value : ... ; break ;
case NumericEnum< float >::value : ... ; break ;
case NumericEnum< double >::value : ... ; break ;
default: ... ;


struct  phdmesh::NumericEnum< void >
 Map the integer value associated with a numeric scalar type to a text name or byte size. More...
struct  phdmesh::NumericEnum< Type >
 Map a numeric scalar Type to an integer value. More...
struct  phdmesh::NumericType< Ordinal >
 Inverse map of a numeric scalar type to an integer value. More...

Generated on Tue Jul 13 09:22:43 2010 for phdMesh by  doxygen 1.4.7