#include <numericTraits.h>
Public Types | |
typedef int | ProductType |
This typedef specifies that when chars are multiplied, the result should be an int. | |
typedef int | SumType |
This typedef specifies that when chars are added, the result should be an int. | |
typedef int | TextOutputType |
This typedef specifies that when a char is serialized for stream output as part of an array, each char is formatted as a number, rather than as an ascii symbol. | |
Public Member Functions | |
bool | isIntegral () |
This member function indicates whether the specified type is an integer type or not. |
Definition at line 87 of file numericTraits.h.
typedef int dlr::numeric::NumericTraits< char >::ProductType |
This typedef specifies that when chars are multiplied, the result should be an int.
This prevents overflow when the sum of the components is more than 255.
Definition at line 96 of file numericTraits.h.
typedef int dlr::numeric::NumericTraits< char >::SumType |
This typedef specifies that when chars are added, the result should be an int.
This prevents overflow when the sum of the components is more than 255.
Definition at line 103 of file numericTraits.h.
typedef int dlr::numeric::NumericTraits< char >::TextOutputType |
This typedef specifies that when a char is serialized for stream output as part of an array, each char is formatted as a number, rather than as an ascii symbol.
For example, you might see
Array1D([64, 97, 32])
rather than
Array1D([@, a, ])
Definition at line 117 of file numericTraits.h.
bool dlr::numeric::NumericTraits< char >::isIntegral | ( | ) | [inline] |
This member function indicates whether the specified type is an integer type or not.
Definition at line 129 of file numericTraits.h.