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

#include <itkImageToImageFilterDetail.h>

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

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

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

◆ ComparisonType

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

◆ FirstEqualsSecondType

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

Definition at line 169 of file itkImageToImageFilterDetail.h.

◆ FirstGreaterThanSecondType

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

Definition at line 170 of file itkImageToImageFilterDetail.h.

◆ FirstLessThanSecondType

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

Definition at line 171 of file itkImageToImageFilterDetail.h.

◆ FirstType

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

◆ SecondType

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

Definition at line 151 of file itkImageToImageFilterDetail.h.


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