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

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

#include <numericTraits.h>

List of all members.

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.


Detailed Description

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

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

Definition at line 87 of file numericTraits.h.


Member Typedef Documentation

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.

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.


Member Function Documentation

bool dlr::numeric::NumericTraits< 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 129 of file numericTraits.h.


The documentation for this class was generated from the following file:

Generated on Wed Nov 25 00:42:49 2009 for dlrUtilities Utility Library by  doxygen 1.5.8