The number traits class is specialized for number types defined in this API, such as mi::Uint32 and mi::Float64. More...
Namespaces | |
| namespace | mi::base |
| Namespace for the Base API. | |
Classes | |
| struct | mi::base::numeric_traits<Sint8> |
| Numeric traits specialization for mi::Sint8. More... | |
| struct | mi::base::numeric_traits<Sint16> |
| Numeric traits specialization for mi::Sint16. More... | |
| struct | mi::base::numeric_traits<Sint32> |
| Numeric traits specialization for mi::Sint32. More... | |
| struct | mi::base::numeric_traits<Sint64> |
| Numeric traits specialization for mi::Sint64. More... | |
| struct | mi::base::numeric_traits<Uint8> |
| Numeric traits specialization for mi::Uint8. More... | |
| struct | mi::base::numeric_traits<Uint16> |
| Numeric traits specialization for mi::Uint16. More... | |
| struct | mi::base::numeric_traits<Uint32> |
| Numeric traits specialization for mi::Uint32. More... | |
| struct | mi::base::numeric_traits<Uint64> |
| Numeric traits specialization for mi::Uint64. More... | |
| struct | mi::base::numeric_traits<Float32> |
| Numeric traits specialization for mi::Float32. More... | |
| struct | mi::base::numeric_traits<Float64> |
| Numeric traits specialization for mi::Float64. More... | |
Variables | |
| static const bool | mi::base::numeric_traits_base<T>::is_specialized = false |
Constant that is true if and only if this traits is specialized for T. More... | |
| static const bool | mi::base::numeric_traits_base<T>::has_infinity = false |
Constant that is true if and only if T has an infinity representation. More... | |
| static const bool | mi::base::numeric_traits_base<T>::has_quiet_NaN = false |
Constant that is true if and only if T has a quiet NaN (not-a-number) representation. More... | |
| static const bool | mi::base::numeric_traits_base<T>::has_signaling_NaN = false |
Constant that is true if and only if T has a signaling NaN (not-a-number) representation. More... | |
| static const bool | mi::base::numeric_traits<Sint8>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Sint16>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Sint32>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Sint64>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Uint8>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Uint16>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Uint32>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Uint64>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Float32>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Float32>::has_infinity = true |
| Has infinity value. More... | |
| static const bool | mi::base::numeric_traits<Float32>::has_quiet_NaN = true |
| Has a quiet NaN value. More... | |
| static const bool | mi::base::numeric_traits<Float32>::has_signaling_NaN = true |
| Has a signaling NaN value. More... | |
| static const bool | mi::base::numeric_traits<Float64>::is_specialized = true |
true for specialization. More... | |
| static const bool | mi::base::numeric_traits<Float64>::has_infinity = true |
| Has infinity value. More... | |
| static const bool | mi::base::numeric_traits<Float64>::has_quiet_NaN = true |
| Has a quiet NaN value. More... | |
| static const bool | mi::base::numeric_traits<Float64>::has_signaling_NaN = true |
| Has a signaling NaN value. More... | |
The number traits class is specialized for number types defined in this API, such as mi::Uint32 and mi::Float64.
#include <mi/base/types.h>
|
inlinestatic | |||||||||||||
Returns an infinity value for T, if one exists, and T() otherwise.
|
inlinestatic | |||||||||||||
Returns the maximum finite value for T.
The value is equivalent to standard C constants CHAR_MAX, SHRT_MAX, FLT_MAX, DBL_MAX, etc.
T.
|
inlinestatic | |||||||||||||
SCHAR_MAX.
|
inlinestatic | |||||||||||||
SHRT_MAX.
|
inlinestatic | |||||||||||||
INT_MAX.
|
inlinestatic | |||||||||||||
LLONG_MAX.
|
inlinestatic | |||||||||||||
UCHAR_MAX.
|
inlinestatic | |||||||||||||
USHRT_MAX.
|
inlinestatic | |||||||||||||
UINT_MAX.
|
inlinestatic | |||||||||||||
ULLONG_MAX.
|
inlinestatic | |||||||||||||
FLT_MAX.
|
inlinestatic | |||||||||||||
DBL_MAX.
|
inlinestatic | |||||||||||||
Returns the minimum finite value for T (and for floating point types the minimum positive value).
The value is equivalent to standard C constants CHAR_MIN, SHRT_MIN, FLT_MIN, DBL_MIN, etc.
T.
|
inlinestatic | |||||||||||||
SCHAR_MIN.
|
inlinestatic | |||||||||||||
SHRT_MIN.
|
inlinestatic | |||||||||||||
INT_MIN.
|
inlinestatic | |||||||||||||
LLONG_MIN.
|
inlinestatic | |||||||||||||
FLT_MIN.
|
inlinestatic | |||||||||||||
DBL_MIN.
|
inlinestatic | |||||||||||||
|
inlinestatic | |||||||||||||
SCHAR_MIN.
|
inlinestatic | |||||||||||||
SHRT_MIN.
|
inlinestatic | |||||||||||||
INT_MIN.
|
inlinestatic | |||||||||||||
LLONG_MIN.
|
inlinestatic | |||||||||||||
-FLT_MAX
|
inlinestatic | |||||||||||||
-DBL_MAX
|
inlinestatic | |||||||||||||
Returns a quiet NaN value for T, if one exists, and T() otherwise.
|
inlinestatic | |||||||||||||
Returns a signaling NaN value for T, if one exists, and T() otherwise.
|
static |
Constant that is true if and only if T has an infinity representation.
You can get the infinity representation through the infinity() method.
|
static |
Has infinity value.
|
static |
Has infinity value.
|
static |
Constant that is true if and only if T has a quiet NaN (not-a-number) representation.
You can get the quiet NaN representation through the quiet_NaN() method.
|
static |
Has a quiet NaN value.
|
static |
Has a quiet NaN value.
|
static |
Constant that is true if and only if T has a signaling NaN (not-a-number) representation.
You can get the signaling NaN representation through the signaling_NaN() method.
|
static |
Has a signaling NaN value.
|
static |
Has a signaling NaN value.
|
static |
Constant that is true if and only if this traits is specialized for T.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.
|
static |
true for specialization.