STIR
6.2.0
|
class NumericInfo<NUMBER> defines properties for the type NUMBER. More...
#include "stir/NumericInfo.h"
Public Member Functions | |
bool | signed_type () const |
bool | integer_type () const |
size_t | size_in_bytes () const |
Size in 'bytes' as reported by sizeof(), so really size_in_sizeof_char. | |
size_t | size_in_bits () const |
NUMBER | max_value () const |
NUMBER | min_value () const |
NumericType | type_id () const |
class NumericInfo<NUMBER> defines properties for the type NUMBER.
The idea comes the ANSI C++ class std::numeric_limits
, but some compiler didn't have this yet when PARAPET/STIR was started. This current class should disappear at some point.
Note that this general template is essentially empty, but it is needed to use template syntax.