dlr::numeric::NumericTraits< unsigned char > Class Template Reference

This class is used to customize the behavior of dlr_libs classes & functions for the unsigned char type. More...

#include <numericTraits.h>

List of all members.

Public Types

typedef unsigned int ProductType
 This typedef specifies that when unsigned chars are multiplied, the result should be an unsigned int.
typedef unsigned int SumType
 This typedef specifies that when unsigned chars are added, the result should be an unsigned int.
typedef int TextOutputType
 This typedef specifies that when an unsigned char is serialized for stream output, it should be formatted as an int.

Public Member Functions

bool isIntegral ()
 This member function indicates whether the specified type is an integer type or not.


Detailed Description

template<>
class dlr::numeric::NumericTraits< unsigned char >

This class is used to customize the behavior of dlr_libs classes & functions for the unsigned char type.

Definition at line 139 of file numericTraits.h.


Member Typedef Documentation

typedef unsigned int dlr::numeric::NumericTraits< unsigned char >::ProductType

This typedef specifies that when unsigned chars are multiplied, the result should be an unsigned int.

This prevents overflow when the sum of the components is more than 255.

Definition at line 148 of file numericTraits.h.

typedef unsigned int dlr::numeric::NumericTraits< unsigned char >::SumType

This typedef specifies that when unsigned chars are added, the result should be an unsigned int.

This prevents overflow when the sum of the components is more than 255.

Definition at line 155 of file numericTraits.h.

typedef int dlr::numeric::NumericTraits< unsigned char >::TextOutputType

This typedef specifies that when an unsigned char is serialized for stream output, it should be formatted as an int.

Definition at line 161 of file numericTraits.h.


Member Function Documentation

bool dlr::numeric::NumericTraits< unsigned char >::isIntegral (  )  [inline]

This member function indicates whether the specified type is an integer type or not.

Returns:
The return is true if this type is an integer type, false other wise.

Definition at line 173 of file numericTraits.h.


The documentation for this class was generated from the following file:
Generated on Sat Dec 29 04:25:10 2007 for dlrUtilities Utility Library by  doxygen 1.5.4