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

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

#include <itkImageToImageFilterDetail.h>

Inheritance diagram for itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch:

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

Collaboration graph
[legend]
List of all members.

Public Types

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

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.


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 Fri May 21 01:52:03 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000