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

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

#include <numericTraits.h>

List of all members.

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.


Detailed Description

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

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

Definition at line 183 of file numericTraits.h.


Member Typedef Documentation

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.

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.


Member Function Documentation

bool dlr::numeric::NumericTraits< short >::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 217 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