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 std::numeric_limits<
T > 
TraitsType
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)
ZeroValue ()

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

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

Accumulation of addition and multiplication.

Definition at line 55 of file itkNumericTraits.h.

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

Return the type that can be printed.

Definition at line 49 of file itkNumericTraits.h.

template<class T>
typedef std::numeric_limits<T> itk::NumericTraits< T >::TraitsType
 

The type of this limits trait object.

Definition at line 43 of file itkNumericTraits.h.

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

Return the type of this native type.

Definition at line 46 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 73 of file itkNumericTraits.h.

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

Is a given value nonnegative? *

Definition at line 76 of file itkNumericTraits.h.

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

Is a given value nonpositive? *

Definition at line 70 of file itkNumericTraits.h.

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

Is a given value positive? *

Definition at line 67 of file itkNumericTraits.h.

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

Smallest (most nonpositive) value *

Definition at line 64 of file itkNumericTraits.h.

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

Return zero value. This function should be used to support RGBPixel type and standard types (not vectors)

Definition at line 80 of file itkNumericTraits.h.


Member Data Documentation

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

Multiplicative identity.

Definition at line 61 of file itkNumericTraits.h.

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

Additive identity.

Definition at line 58 of file itkNumericTraits.h.


The documentation for this class was generated from the following file:
Generated at Wed Mar 30 01:10:47 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000