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

itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 > Struct Template Reference

#include <itkImageToImageFilterDetail.h>

Inheritance diagram for itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >:

Inheritance graph
[legend]
Collaboration diagram for itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<unsigned int D1, unsigned int D2>
struct itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >

Templated class to produce a unique type for a pairing of unsigned integers (usually two dimensions).

BinaryUnsignedIntDispatch is a templated class that produces a unique type for a pairing of unsigned integers. BinaryUnsignedIntDispatch is typically used a parameter to an overloaded function where each version of the overloaded function is for a different pairing of unsigned integers. This type may be used to produce a unique type for an (input dimension, output dimension) pairing.

Definition at line 134 of file itkImageToImageFilterDetail.h.

Public Types

typedef IntDispatch<(D1 > D2 (D1< D2)> ComparisonType
typedef IntDispatch< 0 > FirstEqualsSecondType
typedef IntDispatch< 1 > FirstGreaterThanSecondType
typedef IntDispatch<-1 > FirstLessThanSecondType
typedef UnsignedIntDispatch<
D1 > 
FirstType
typedef UnsignedIntDispatch<
D2
SecondType


Member Typedef Documentation

template<unsigned int D1, unsigned int D2>
typedef IntDispatch<(D1 > itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::D2(D1< D2)> ComparisonType

Helper types to determine whether the two integers are the same, the first greater than the second, or the first less than the second.

ComparisonType will be either IntDispatch<0>, IntDispatch<1>, or IntDispatch<-1>.

IntDispatch<0> means the two specified integers are the same. IntDispatch<1> means the first integer is greater than the second IntDispatch<-1> means the first integer is less than the second

The FirstEqualsSecondType, FirstGreaterThanSecondType, FirstLessThanSecondType typedefs are provided as convenience types which can be used to declare arguments to functions. They themselves do not indicate the relationship between D1 and D2.

Definition at line 157 of file itkImageToImageFilterDetail.h.

template<unsigned int D1, unsigned int D2>
typedef IntDispatch<0> itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::FirstEqualsSecondType

Definition at line 158 of file itkImageToImageFilterDetail.h.

template<unsigned int D1, unsigned int D2>
typedef IntDispatch<1> itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::FirstGreaterThanSecondType

Definition at line 159 of file itkImageToImageFilterDetail.h.

template<unsigned int D1, unsigned int D2>
typedef IntDispatch<-1> itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::FirstLessThanSecondType

Definition at line 160 of file itkImageToImageFilterDetail.h.

template<unsigned int D1, unsigned int D2>
typedef UnsignedIntDispatch<D1> itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::FirstType

Typedefs to extract the unique types for the first and second template parameters (unique type for the unsigned integer value)

Definition at line 139 of file itkImageToImageFilterDetail.h.

template<unsigned int D1, unsigned int D2>
typedef UnsignedIntDispatch<D2> itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 >::SecondType

Definition at line 140 of file itkImageToImageFilterDetail.h.


The documentation for this struct was generated from the following file:
Generated at Wed Jul 30 12:54:45 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000