ITK  6.0.0
Insight Toolkit
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
itk::NumericTraits< std::vector< T > > Class Template Reference

#include <itkNumericTraitsStdVector.h>

Detailed Description

template<typename T>
class itk::NumericTraits< std::vector< T > >

Definition at line 56 of file itkNumericTraitsStdVector.h.

Public Types

using AbsType = std::vector< ElementAbsType >
 
using AccumulateType = std::vector< ElementAccumulateType >
 
using ElementAbsType = typename NumericTraits< T >::AbsType
 
using ElementAccumulateType = typename NumericTraits< T >::AccumulateType
 
using ElementFloatType = typename NumericTraits< T >::FloatType
 
using ElementPrintType = typename NumericTraits< T >::PrintType
 
using ElementRealType = typename NumericTraits< T >::RealType
 
using FloatType = std::vector< ElementFloatType >
 
using MeasurementVectorType = Self
 
using PrintType = std::vector< ElementPrintType >
 
using RealType = std::vector< ElementRealType >
 
using ScalarRealType = ElementRealType
 
using Self = std::vector< T >
 
using ValueType = T
 

Static Public Member Functions

static void AssignToArray (const Self &v, MeasurementVectorType &mv)
 
template<typename TArray >
static void AssignToArray (const Self &v, TArray &mv)
 
static unsigned int GetLength (const std::vector< T > &m)
 
static const Self min (const Self &a)
 
static const Self NonpositiveMin (const Self &a)
 
static const Self OneValue (const Self &a)
 
static const Self ZeroValue (const Self &a)
 
static const Self max (const Self &a)
 
static void SetLength (std::vector< T > &m, const unsigned int s)
 

Static Public Attributes

static constexpr bool IsComplex = NumericTraits<ValueType>::IsComplex
 
static constexpr bool IsInteger = std::is_integral_v<ValueType>
 
static constexpr bool IsSigned = std::is_signed_v<ValueType>
 

Member Typedef Documentation

◆ AbsType

template<typename T >
using itk::NumericTraits< std::vector< T > >::AbsType = std::vector<ElementAbsType>

Unsigned component type

Definition at line 71 of file itkNumericTraitsStdVector.h.

◆ AccumulateType

template<typename T >
using itk::NumericTraits< std::vector< T > >::AccumulateType = std::vector<ElementAccumulateType>

Accumulation of addition and multiplication.

Definition at line 74 of file itkNumericTraitsStdVector.h.

◆ ElementAbsType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ElementAbsType = typename NumericTraits<T>::AbsType

Definition at line 59 of file itkNumericTraitsStdVector.h.

◆ ElementAccumulateType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ElementAccumulateType = typename NumericTraits<T>::AccumulateType

Definition at line 60 of file itkNumericTraitsStdVector.h.

◆ ElementFloatType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ElementFloatType = typename NumericTraits<T>::FloatType

Definition at line 61 of file itkNumericTraitsStdVector.h.

◆ ElementPrintType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ElementPrintType = typename NumericTraits<T>::PrintType

Definition at line 62 of file itkNumericTraitsStdVector.h.

◆ ElementRealType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ElementRealType = typename NumericTraits<T>::RealType

Definition at line 63 of file itkNumericTraitsStdVector.h.

◆ FloatType

template<typename T >
using itk::NumericTraits< std::vector< T > >::FloatType = std::vector<ElementFloatType>

Typedef for operations that use floating point instead of real precision

Definition at line 78 of file itkNumericTraitsStdVector.h.

◆ MeasurementVectorType

template<typename T >
using itk::NumericTraits< std::vector< T > >::MeasurementVectorType = Self

Measurement vector type

Definition at line 92 of file itkNumericTraitsStdVector.h.

◆ PrintType

template<typename T >
using itk::NumericTraits< std::vector< T > >::PrintType = std::vector<ElementPrintType>

Return the type that can be printed.

Definition at line 83 of file itkNumericTraitsStdVector.h.

◆ RealType

template<typename T >
using itk::NumericTraits< std::vector< T > >::RealType = std::vector<ElementRealType>

Type for real-valued scalar operations.

Definition at line 86 of file itkNumericTraitsStdVector.h.

◆ ScalarRealType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ScalarRealType = ElementRealType

Type for real-valued scalar operations.

Definition at line 89 of file itkNumericTraitsStdVector.h.

◆ Self

template<typename T >
using itk::NumericTraits< std::vector< T > >::Self = std::vector<T>

Definition at line 68 of file itkNumericTraitsStdVector.h.

◆ ValueType

template<typename T >
using itk::NumericTraits< std::vector< T > >::ValueType = T

Return the type of the native component type.

Definition at line 66 of file itkNumericTraitsStdVector.h.

Member Function Documentation

◆ AssignToArray() [1/2]

template<typename T >
static void itk::NumericTraits< std::vector< T > >::AssignToArray ( const Self v,
MeasurementVectorType mv 
)
inlinestatic

Definition at line 158 of file itkNumericTraitsStdVector.h.

◆ AssignToArray() [2/2]

template<typename T >
template<typename TArray >
static void itk::NumericTraits< std::vector< T > >::AssignToArray ( const Self v,
TArray &  mv 
)
inlinestatic

Definition at line 165 of file itkNumericTraitsStdVector.h.

References itk::NumericTraits< T >::GetLength().

◆ GetLength()

template<typename T >
static unsigned int itk::NumericTraits< std::vector< T > >::GetLength ( const std::vector< T > &  m)
inlinestatic

Return the size of the vector.

Definition at line 152 of file itkNumericTraitsStdVector.h.

◆ max()

template<typename T >
static const Self itk::NumericTraits< std::vector< T > >::max ( const Self a)
inlinestatic

Component wise defined element

\note minimum value for floating pointer types is defined as
minimum positive normalize value.

Definition at line 100 of file itkNumericTraitsStdVector.h.

References itk::NumericTraits< T >::max().

◆ min()

template<typename T >
static const Self itk::NumericTraits< std::vector< T > >::min ( const Self a)
inlinestatic

Definition at line 108 of file itkNumericTraitsStdVector.h.

References itk::NumericTraits< T >::min().

◆ NonpositiveMin()

template<typename T >
static const Self itk::NumericTraits< std::vector< T > >::NonpositiveMin ( const Self a)
inlinestatic

◆ OneValue()

template<typename T >
static const Self itk::NumericTraits< std::vector< T > >::OneValue ( const Self a)
inlinestatic

Definition at line 122 of file itkNumericTraitsStdVector.h.

References itk::NumericTraits< T >::OneValue().

◆ SetLength()

template<typename T >
static void itk::NumericTraits< std::vector< T > >::SetLength ( std::vector< T > &  m,
const unsigned int  s 
)
inlinestatic

Resize the input vector to the specified size

Definition at line 141 of file itkNumericTraitsStdVector.h.

◆ ZeroValue()

template<typename T >
static const Self itk::NumericTraits< std::vector< T > >::ZeroValue ( const Self a)
inlinestatic

Definition at line 115 of file itkNumericTraitsStdVector.h.

Member Data Documentation

◆ IsComplex

template<typename T >
constexpr bool itk::NumericTraits< std::vector< T > >::IsComplex = NumericTraits<ValueType>::IsComplex
staticconstexpr

Definition at line 137 of file itkNumericTraitsStdVector.h.

◆ IsInteger

template<typename T >
constexpr bool itk::NumericTraits< std::vector< T > >::IsInteger = std::is_integral_v<ValueType>
staticconstexpr

Definition at line 136 of file itkNumericTraitsStdVector.h.

◆ IsSigned

template<typename T >
constexpr bool itk::NumericTraits< std::vector< T > >::IsSigned = std::is_signed_v<ValueType>
staticconstexpr

Definition at line 135 of file itkNumericTraitsStdVector.h.


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