Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::PixelTypeSwitch< TypeList, Index, Stop > Struct Template Reference

Run-time type switch over a PixelTypeList. More...

#include <mitkPixelTypeList.h>

Public Member Functions

template<typename F >
bool operator() (int i, F &f)
 

Detailed Description

template<typename TypeList, int Index, bool Stop>
struct mitk::PixelTypeSwitch< TypeList, Index, Stop >

Run-time type switch over a PixelTypeList.

Given a run-time integer index i, invokes functor f with the corresponding compile-time type from the type list. Returns the boolean result of the functor.

Template Parameters
TypeListA PixelTypeList instantiation.
IndexCurrent recursion index (internal, do not specify).
StopRecursion stop flag (internal, do not specify).
Exceptions
std::out_of_rangeIf i is not a valid index in the type list.

Definition at line 169 of file mitkPixelTypeList.h.

Member Function Documentation

◆ operator()()

template<typename TypeList , int Index, bool Stop>
template<typename F >
bool mitk::PixelTypeSwitch< TypeList, Index, Stop >::operator() ( int  i,
F &  f 
)
inline

Definition at line 172 of file mitkPixelTypeList.h.


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