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: ... ;
}
Classes | |
| 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... | |
1.4.7