14#ifndef vtkDataArrayRange_h
15#define vtkDataArrayRange_h
90VTK_ABI_NAMESPACE_BEGIN
106template <
typename ArrayTypePtr, ComponentIdType TupleSize>
118 typename std::decay<decltype(vtk::detail::DeclareTupleRangeSpecialization<ArrayType, TupleSize>(
119 std::declval<ArrayType*>()))>
::type;
123 typename ForceValueTypeForVtkDataArray =
double>
136 TupleSize, ForceValueTypeForVtkDataArray>(std::declval<ArrayType*>()))>
::type;
248VTK_ABI_NAMESPACE_BEGIN
259 return RangeType(array, start < 0 ? 0 : start, end < 0 ? array->GetNumberOfTuples() : end);
360 typename ForceValueTypeForVtkDataArray = double,
typename ArrayTypePtr =
vtkDataArray*>
370 return RangeType(array, start < 0 ? 0 : start, end < 0 ? array->GetNumberOfValues() : end);
abstract superclass for arrays of numeric data
ValueRange< AOSArrayType, TupleSize, ForceValueTypeForVtkDataArray > DeclareValueRangeSpecialization(ArrayType *)
static constexpr ComponentIdType DynamicTupleSize
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
VTK_ITER_INLINE auto DataArrayTupleRange(const ArrayTypePtr &array, TupleIdType start=-1, TupleIdType end=-1) -> typename detail::SelectTupleRange< ArrayTypePtr, TupleSize >::type
Generate an stl and for-range compatible range of tuple iterators from a vtkDataArray.
VTK_ITER_INLINE auto DataArrayValueRange(const ArrayTypePtr &array, ValueIdType start=-1, ValueIdType end=-1) -> typename detail::SelectValueRange< ArrayTypePtr, TupleSize, ForceValueTypeForVtkDataArray >::type
Generate an stl and for-range compatible range of flat AOS iterators from a vtkDataArray.
typename std::decay< decltype(vtk::detail::DeclareTupleRangeSpecialization< ArrayType, TupleSize >(std::declval< ArrayType * >()))>::type type
typename std::remove_reference< decltype(vtk::detail::DeclareValueRangeSpecialization< ArrayType, TupleSize, ForceValueTypeForVtkDataArray >(std::declval< ArrayType * >()))>::type type