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 Member Functions

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 40 of file itkNumericTraits.h.


Member Typedef Documentation

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

Return value of abs(). Definition at line 49 of file itkNumericTraits.h.

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

Accumulation of addition and multiplication. Definition at line 52 of file itkNumericTraits.h.

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

Return the type that can be printed. Definition at line 46 of file itkNumericTraits.h.

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

Return the type of this native type. Definition at line 43 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 70 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 73 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 67 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 64 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 61 of file itkNumericTraits.h.


Member Data Documentation

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

Multiplicative identity. Definition at line 58 of file itkNumericTraits.h.

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

Additive identity. Definition at line 55 of file itkNumericTraits.h.

Referenced by itk::NumericTraits< T >::IsNegative(), itk::NumericTraits< T >::IsNonnegative(), itk::NumericTraits< T >::IsNonpositive(), and itk::NumericTraits< T >::IsPositive().


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:11:29 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000