ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | List of all members
itk::ImageToImageFilterDetail::BinaryUnsignedIntDispatch< D1, D2 > Struct Template Reference

#include <itkImageToImageFilterDetail.h>

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

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 139 of file itkImageToImageFilterDetail.h.

Public Types

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

Member Typedef Documentation

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

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 type alias 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 161 of file itkImageToImageFilterDetail.h.

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

Definition at line 162 of file itkImageToImageFilterDetail.h.

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

Definition at line 163 of file itkImageToImageFilterDetail.h.

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

Definition at line 164 of file itkImageToImageFilterDetail.h.

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

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

Definition at line 143 of file itkImageToImageFilterDetail.h.

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

Definition at line 144 of file itkImageToImageFilterDetail.h.


The documentation for this struct was generated from the following file: