Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::NumericTraits< T > Class Template Reference
[Data Representation Objects]

Define additional traits for native types such as int or float. More...

#include <itkNumericTraits.h>

Collaboration diagram for itk::NumericTraits< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T ValueType
typedef T PrintType
typedef T AbsType
typedef double AccumulateType

Static Public Methods

NonpositiveMin ()
bool IsPositive (T val)
bool IsNonpositive (T val)
bool IsNegative (T val)
bool IsNonnegative (T val)

Static Public Attributes

const T Zero
const T One

Detailed Description

template<class T>
class itk::NumericTraits< T >

Define additional traits for native types such as int or float.

NumericTraits is used to extend the traits associated with native types such as float, char, int, and so on. These traits are extensions of the standard <numeric_limits> defined by the C++ compilers. Some of the added traits include minimum and maximum value; accumulation type; etc.

Definition at line 46 of file itkNumericTraits.h.


Member Typedef Documentation

template<class T>
typedef T itk::NumericTraits< T >::AbsType
 

Return value of abs().

Definition at line 55 of file itkNumericTraits.h.

template<class T>
typedef double itk::NumericTraits< T >::AccumulateType
 

Accumulation of addition and multiplication.

Definition at line 58 of file itkNumericTraits.h.

template<class T>
typedef T itk::NumericTraits< T >::PrintType
 

Return the type that can be printed.

Definition at line 52 of file itkNumericTraits.h.

template<class T>
typedef T itk::NumericTraits< T >::ValueType
 

Return the type of this native type.

Definition at line 49 of file itkNumericTraits.h.


Member Function Documentation

template<class T>
bool itk::NumericTraits< T >::IsNegative   val [inline, static]
 

Is a given value negative? *

Definition at line 76 of file itkNumericTraits.h.

References itk::NumericTraits< T >::Zero.

template<class T>
bool itk::NumericTraits< T >::IsNonnegative   val [inline, static]
 

Is a given value nonnegative? *

Definition at line 79 of file itkNumericTraits.h.

References itk::NumericTraits< T >::Zero.

template<class T>
bool itk::NumericTraits< T >::IsNonpositive   val [inline, static]
 

Is a given value nonpositive? *

Definition at line 73 of file itkNumericTraits.h.

References itk::NumericTraits< T >::Zero.

template<class T>
bool itk::NumericTraits< T >::IsPositive   val [inline, static]
 

Is a given value positive? *

Definition at line 70 of file itkNumericTraits.h.

References itk::NumericTraits< T >::Zero.

template<class T>
T itk::NumericTraits< T >::NonpositiveMin   [inline, static]
 

Smallest (most nonpositive) value *

Definition at line 67 of file itkNumericTraits.h.

References min.


Member Data Documentation

template<class T>
const T itk::NumericTraits< T >::One [static]
 

Multiplicative identity.

Definition at line 64 of file itkNumericTraits.h.

template<class T>
const T itk::NumericTraits< T >::Zero [static]
 

Additive identity.

Definition at line 61 of file itkNumericTraits.h.

Referenced by itk::NumericTraits< long double >::IsNegative(), itk::NumericTraits< double >::IsNegative(), itk::NumericTraits< float >::IsNegative(), itk::NumericTraits< long >::IsNegative(), itk::NumericTraits< int >::IsNegative(), itk::NumericTraits< short >::IsNegative(), itk::NumericTraits< char >::IsNegative(), itk::NumericTraits< T >::IsNegative(), itk::NumericTraits< long double >::IsNonnegative(), itk::NumericTraits< double >::IsNonnegative(), itk::NumericTraits< float >::IsNonnegative(), itk::NumericTraits< long >::IsNonnegative(), itk::NumericTraits< int >::IsNonnegative(), itk::NumericTraits< short >::IsNonnegative(), itk::NumericTraits< char >::IsNonnegative(), itk::NumericTraits< T >::IsNonnegative(), itk::NumericTraits< long double >::IsNonpositive(), itk::NumericTraits< double >::IsNonpositive(), itk::NumericTraits< float >::IsNonpositive(), itk::NumericTraits< unsigned long >::IsNonpositive(), itk::NumericTraits< long >::IsNonpositive(), itk::NumericTraits< unsigned int >::IsNonpositive(), itk::NumericTraits< int >::IsNonpositive(), itk::NumericTraits< unsigned short >::IsNonpositive(), itk::NumericTraits< short >::IsNonpositive(), itk::NumericTraits< unsigned char >::IsNonpositive(), itk::NumericTraits< char >::IsNonpositive(), itk::NumericTraits< T >::IsNonpositive(), itk::NumericTraits< long double >::IsPositive(), itk::NumericTraits< double >::IsPositive(), itk::NumericTraits< float >::IsPositive(), itk::NumericTraits< unsigned long >::IsPositive(), itk::NumericTraits< long >::IsPositive(), itk::NumericTraits< unsigned int >::IsPositive(), itk::NumericTraits< int >::IsPositive(), itk::NumericTraits< unsigned short >::IsPositive(), itk::NumericTraits< short >::IsPositive(), itk::NumericTraits< unsigned char >::IsPositive(), itk::NumericTraits< char >::IsPositive(), and itk::NumericTraits< T >::IsPositive().


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:35:05 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000