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

Compile-time accessor that retrieves the type at position Index in a PixelTypeList. More...

#include <mitkPixelTypeList.h>

Public Types

typedef GetPixelType< typename TypeList::tail, Index, Step+1 >::type type
 

Detailed Description

template<typename TypeList, int Index, int Step = 0, bool Stop = (Index == Step), bool OutOfRange = PixelTypeLength<TypeList>::value == 0>
struct mitk::GetPixelType< TypeList, Index, Step, Stop, OutOfRange >

Compile-time accessor that retrieves the type at position Index in a PixelTypeList.

Recursively walks the list until the requested index is reached. A compile-time error occurs if Index is out of range.

Template Parameters
TypeListA PixelTypeList instantiation.
IndexZero-based index of the desired type.
StepCurrent recursion depth (internal, do not specify).
StopRecursion stop flag (internal, do not specify).
OutOfRangeOut-of-range flag (internal, do not specify).

Definition at line 128 of file mitkPixelTypeList.h.

Member Typedef Documentation

◆ type

template<typename TypeList , int Index, int Step = 0, bool Stop = (Index == Step), bool OutOfRange = PixelTypeLength<TypeList>::value == 0>
typedef GetPixelType<typename TypeList::tail, Index, Step + 1>::type mitk::GetPixelType< TypeList, Index, Step, Stop, OutOfRange >::type

Definition at line 130 of file mitkPixelTypeList.h.


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