#include <numericTraits.h>
Public Types | |
| typedef int | ProductType |
| This typedef specifies that when shorts are multiplied, the result should be an int. | |
| typedef int | SumType |
| This typedef specifies that when shorts are added, the result should be an int. | |
| typedef short | TextOutputType |
| This typedef specifies that when an int is serialized for stream output, it should be formatted as a short. | |
Public Member Functions | |
| bool | isIntegral () |
| This member function indicates whether the specified type is an integer type or not. | |
Definition at line 183 of file numericTraits.h.
| typedef int dlr::numeric::NumericTraits< short >::ProductType |
This typedef specifies that when shorts are multiplied, the result should be an int.
This prevents overflow when the sum of the components is more than 2^16.
Definition at line 192 of file numericTraits.h.
| typedef int dlr::numeric::NumericTraits< short >::SumType |
This typedef specifies that when shorts are added, the result should be an int.
This prevents overflow when the sum of the components is more than sizeof(short).
Definition at line 199 of file numericTraits.h.
| typedef short dlr::numeric::NumericTraits< short >::TextOutputType |
This typedef specifies that when an int is serialized for stream output, it should be formatted as a short.
Definition at line 205 of file numericTraits.h.
| bool dlr::numeric::NumericTraits< short >::isIntegral | ( | ) | [inline] |
This member function indicates whether the specified type is an integer type or not.
Definition at line 217 of file numericTraits.h.
1.5.8