VTK
9.4.20241121
|
This class extract the underlying value type of containers. More...
#include <vtkMatrixUtilities.h>
Public Types | |
using | value_type = typename detail::ScalarTypeExtractor< std::is_array< DerefContainer >::value||std::is_pointer< DerefContainer >::value, ContainerT >::value_type |
value_type is the underlying arithmetic type held in ContainerT | |
using | RawComponentType = typename detail::ExtractRawComponentType< ContainerT >::Type |
RawComponentType is the type given by operator[] for 1D containers, or operator[][] for 2D containers. | |
using | ComponentType = typename std::conditional< std::is_rvalue_reference< RawComponentType >::value, typename std::remove_reference< RawComponentType >::type, RawComponentType >::type |
ComponentType is the RawComponentType dereferenced if it was an rvalue reference. | |
This class extract the underlying value type of containers.
It works on multi-dimensional C++ arrays as well as with STL container like that have a value_type typedef.
One can access the value type by fetching ScalarTypeExtractor<ContainerT>::value_type.
Definition at line 153 of file vtkMatrixUtilities.h.
using vtkMatrixUtilities::ScalarTypeExtractor< ContainerT >::value_type = typename detail::ScalarTypeExtractor< std::is_array<DerefContainer>::value || std::is_pointer<DerefContainer>::value, ContainerT>::value_type |
value_type
is the underlying arithmetic type held in ContainerT
Definition at line 162 of file vtkMatrixUtilities.h.
using vtkMatrixUtilities::ScalarTypeExtractor< ContainerT >::RawComponentType = typename detail::ExtractRawComponentType<ContainerT>::Type |
RawComponentType
is the type given by operator[]
for 1D containers, or operator[][]
for 2D containers.
Definition at line 173 of file vtkMatrixUtilities.h.
using vtkMatrixUtilities::ScalarTypeExtractor< ContainerT >::ComponentType = typename std::conditional<std::is_rvalue_reference<RawComponentType>::value, typename std::remove_reference<RawComponentType>::type, RawComponentType>::type |
ComponentType is the RawComponentType dereferenced if it was an rvalue reference.
Definition at line 178 of file vtkMatrixUtilities.h.