8#ifndef vtkDataArrayTupleRange_Generic_h
9#define vtkDataArrayTupleRange_Generic_h
26VTK_ABI_NAMESPACE_BEGIN
29template <
typename ArrayType, ComponentIdType>
30struct ConstComponentReference;
31template <
typename ArrayType, ComponentIdType>
32struct ComponentReference;
33template <
typename ArrayType, ComponentIdType>
34struct ConstComponentIterator;
35template <
typename ArrayType, ComponentIdType>
36struct ComponentIterator;
37template <
typename ArrayType, ComponentIdType>
38struct ConstTupleReference;
39template <
typename ArrayType, ComponentIdType>
41template <
typename ArrayType, ComponentIdType>
42struct ConstTupleIterator;
43template <
typename ArrayType, ComponentIdType>
45template <
typename ArrayType, ComponentIdType>
50template <
typename ArrayType, ComponentIdType TupleSize>
83 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
85 "Invalid component accessed by iterator.");
108 this->
Array = o.Array;
119 this->
Array = std::move(o.Array);
120 this->
NumComps = std::move(o.NumComps);
129 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
148template <
typename ArrayType, ComponentIdType TupleSize>
181 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
183 "Invalid component accessed by iterator.");
196 return *
this =
static_cast<APIType
>(o);
200 this->
Array = o.Array;
214 return *
this = std::move(
static_cast<APIType
>(o));
218 this->
Array = std::move(o.Array);
219 this->
NumComps = std::move(o.NumComps);
227 template <
typename OArray, ComponentIdType OSize>
230 const APIType tmp = o;
231 return *
this = std::move(tmp);
238 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
252 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
265 APIType tmp = std::move(
static_cast<APIType
>(lhs));
266 lhs = std::move(
static_cast<APIType
>(rhs));
267 rhs = std::move(tmp);
270 template <
typename OArray, ComponentIdType OSize>
276 std::is_same<APIType, OAPIType>::value,
"Cannot swap components with different types.");
278 APIType tmp = std::move(
static_cast<APIType
>(lhs));
279 lhs = std::move(
static_cast<APIType
>(rhs));
280 rhs = std::move(tmp);
285 APIType tmp = std::move(
static_cast<APIType
>(lhs));
286 lhs = std::move(rhs);
287 rhs = std::move(tmp);
292 APIType tmp = std::move(lhs);
293 lhs = std::move(
static_cast<APIType
>(rhs));
294 rhs = std::move(tmp);
300 const APIType newVal = *
this + 1;
308 const APIType retVal = *
this;
316 const APIType newVal = *
this - 1;
324 const APIType retVal = *
this;
329#define VTK_REF_OP_OVERLOADS(Op, ImplOp) \
330 friend VTK_ITER_INLINE ComponentReference operator Op( \
331 ComponentReference lhs, APIType val) noexcept \
333 const APIType newVal = lhs ImplOp val; \
337 friend VTK_ITER_INLINE ComponentReference operator Op( \
338 ComponentReference lhs, ComponentReference val) noexcept \
340 const APIType newVal = lhs ImplOp val; \
344 friend VTK_ITER_INLINE APIType& operator Op(APIType& lhs, ComponentReference val) noexcept \
346 const APIType newVal = lhs ImplOp val; \
356#undef VTK_REF_OP_OVERLOADS
358 friend struct ConstComponentReference<ArrayType, TupleSize>;
359 friend struct ComponentIterator<ArrayType, TupleSize>;
365 this->
Array = o.Array;
379template <
typename ArrayType, ComponentIdType TupleSize>
414 "Const component iterator at invalid tuple id.");
416 "Const component iterator at invalid component id.");
421 : Array{ o.GetArray() }
422 , NumComps{ o.GetNumComps() }
423 , TupleId{ o.GetTupleId() }
424 , ComponentId{ o.GetComponentId() }
437 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
438 "Const component iterator at invalid component id.");
446 this->ComponentId++ };
453 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
454 "Const component iterator at invalid component id.");
462 this->ComponentId-- };
468 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId + i };
474 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId };
477#define VTK_TMP_MAKE_OPERATOR(OP) \
478 friend VTK_ITER_INLINE bool operator OP( \
479 const ConstComponentIterator& lhs, const ConstComponentIterator& rhs) noexcept \
481 VTK_ITER_ASSERT(lhs.Array == rhs.Array, "Mismatched arrays in iterator comparison."); \
482 VTK_ITER_ASSERT(lhs.TupleId == rhs.TupleId, "Mismatched tuple ids in iterator comparison."); \
483 VTK_ITER_ASSUME(lhs.NumComps.value > 0); \
484 VTK_ITER_ASSUME(lhs.NumComps.value == rhs.NumComps.value); \
485 return lhs.ComponentId OP rhs.ComponentId; \
495#undef VTK_TMP_MAKE_OPERATOR
500 this->ComponentId += offset;
501 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
502 "Const component iterator at invalid component id.");
521 this->ComponentId -= offset;
522 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
523 "Const component iterator at invalid component id.");
536 VTK_ITER_ASSERT(it1.Array == it2.Array,
"Cannot do math with iterators from different arrays.");
538 "Cannot do math with component iterators from different "
540 return it1.ComponentId - it2.ComponentId;
547 VTK_ITER_ASSERT(lhs.Array == rhs.Array,
"Cannot swap iterators from different arrays.");
550 swap(lhs.TupleId, rhs.TupleId);
551 swap(lhs.ComponentId, rhs.ComponentId);
555 mutable ArrayType* Array;
556 NumCompsType NumComps;
563template <
typename ArrayType, ComponentIdType TupleSize>
586 :
Ref(array, numComps, tupleId, comp)
591 "Component iterator at invalid tuple id.");
593 comp >= 0 && comp <= numComps.value,
"Component iterator at invalid component id.");
602 this->
Ref.CopyReference(o.Ref);
609 ++this->
Ref.ComponentId;
610 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
611 "Component iterator at invalid component id.");
619 this->
Ref.ComponentId++ };
625 --this->
Ref.ComponentId;
626 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
627 "Component iterator at invalid component id.");
635 this->
Ref.ComponentId-- };
642 this->
Ref.ComponentId + i };
651#define VTK_TMP_MAKE_OPERATOR(OP) \
652 friend VTK_ITER_INLINE bool operator OP( \
653 const ComponentIterator& lhs, const ComponentIterator& rhs) noexcept \
656 lhs.GetArray() == rhs.GetArray(), "Mismatched arrays in iterator comparison."); \
658 lhs.GetTupleId() == rhs.GetTupleId(), "Mismatched tuple ids in iterator comparison."); \
659 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
660 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
661 return lhs.GetComponentId() OP rhs.GetComponentId(); \
671#undef VTK_TMP_MAKE_OPERATOR
676 this->
Ref.ComponentId += offset;
677 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
678 "Component iterator at invalid component id.");
686 it.GetComponentId() + offset };
693 it.GetComponentId() + offset };
699 this->
Ref.ComponentId -= offset;
700 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
701 "Component iterator at invalid component id.");
709 it.GetComponentId() - offset };
716 "Cannot do math with component iterators from different "
719 "Cannot do math with component iterators from different "
721 return it1.GetComponentId() - it2.GetComponentId();
728 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
731 swap(lhs.GetTupleId(), rhs.GetTupleId());
732 swap(lhs.GetComponentId(), rhs.GetComponentId());
753template <
typename ArrayType, ComponentIdType TupleSize>
786 "Const tuple reference at invalid tuple id.");
813 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
823 template <
typename VT = APIType>
825 double* tuple)
const noexcept
829 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
833 tuple[comp] =
static_cast<double>(this->
Array->GetComponent(this->
TupleId, comp));
840 tuple[comp] =
static_cast<double>(this->
Array->GetTypedComponent(this->
TupleId, comp));
846 template <
typename OArrayType, ComponentIdType OSize>
853 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
856 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
858 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
862 template <
typename OArrayType, ComponentIdType OSize>
869 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
872 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
874 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
878 template <
typename OArrayType, ComponentIdType OSize>
885 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
888 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
890 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
894 template <
typename OArrayType, ComponentIdType OSize>
901 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
904 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
906 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
909 template <
typename OArrayType, ComponentIdType OSize>
912 return !(*
this == o);
915 template <
typename OArrayT, ComponentIdType OSize>
918 return !(*
this == o);
970template <
typename ArrayType, ComponentIdType TupleSize>
1003 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1004 "Tuple reference at invalid tuple id.");
1023 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1033 template <
typename VT = APIType>
1035 double* tuple)
const noexcept
1039 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1043 tuple[comp] =
static_cast<double>(this->
Array->GetComponent(this->
TupleId, comp));
1050 tuple[comp] =
static_cast<double>(this->
Array->GetTypedComponent(this->
TupleId, comp));
1060 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1070 template <
typename VT = APIType>
1072 const double* tuple)
noexcept
1076 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1080 this->
Array->SetComponent(this->
TupleId, comp,
static_cast<APIType
>(tuple[comp]));
1087 this->
Array->SetTypedComponent(this->
TupleId, comp,
static_cast<APIType
>(tuple[comp]));
1095 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1100 template <
typename OArrayType, ComponentIdType OSize>
1107 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1110 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1112 std::copy_n(other.cbegin(), OSize, this->begin());
1117 template <
typename OArrayType, ComponentIdType OSize>
1124 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1127 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1129 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1134 template <
typename OArrayType, ComponentIdType OSize>
1141 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1144 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1146 std::copy_n(other.cbegin(), OSize, this->begin());
1151 template <
typename OArrayType, ComponentIdType OSize>
1158 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1161 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1163 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1168 template <
typename OArrayType, ComponentIdType OSize>
1175 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1178 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1180 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1184 template <
typename OArrayType, ComponentIdType OSize>
1191 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1194 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1196 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1200 template <
typename OArrayType, ComponentIdType OSize>
1207 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1210 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1212 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1216 template <
typename OArrayType, ComponentIdType OSize>
1223 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1226 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1228 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1231 template <
typename OArrayType, ComponentIdType OSize>
1234 return !(*
this == o);
1237 template <
typename OArray, ComponentIdType OSize>
1240 return !(*
this == o);
1244 template <
typename OArrayType, ComponentIdType OSize>
1251 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1254 static_assert(TupleSize == OSize,
"Cannot swap tuples with different sizes.");
1256 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1260 template <
typename OArrayType, ComponentIdType OSize>
1267 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1270 other.size() == this->NumComps.value,
"Cannot swap tuples with different sizes.");
1272 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1277 template <
typename OArray, ComponentIdType OSize>
1351template <
typename ArrayType, ComponentIdType TupleSize>
1372 : Ref(array, numComps, tupleId)
1376 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1377 "Const tuple iterator at invalid tuple id.");
1391 this->Ref.CopyReference(o.Ref);
1398 ++this->Ref.TupleId;
1400 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1401 "Const tuple iterator at invalid component id.");
1408 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId++ };
1414 --this->Ref.TupleId;
1416 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1417 "Const tuple iterator at invalid component id.");
1424 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId-- };
1430 return reference{ this->GetArray(), this->GetNumComps(), this->GetTupleId() + i };
1439#define VTK_TMP_MAKE_OPERATOR(OP) \
1440 friend VTK_ITER_INLINE bool operator OP( \
1441 const ConstTupleIterator& lhs, const ConstTupleIterator& rhs) noexcept \
1444 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1445 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1446 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1447 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1457#undef VTK_TMP_MAKE_OPERATOR
1462 this->Ref.TupleId += offset;
1464 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1465 "Const tuple iterator at invalid component id.");
1472 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1478 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1484 this->Ref.TupleId -= offset;
1486 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1487 "Const tuple iterator at invalid component id.");
1494 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() - offset };
1501 "Cannot do math with tuple iterators from different "
1503 return it1.GetTupleId() - it2.GetTupleId();
1510 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1513 swap(lhs.GetTupleId(), rhs.GetTupleId());
1518 ArrayType* GetArray() const noexcept {
return this->Ref.Array; }
1520 ArrayType*& GetArray() noexcept {
return this->Ref.Array; }
1522 NumCompsType GetNumComps() const noexcept {
return this->Ref.NumComps; }
1524 NumCompsType& GetNumComps() noexcept {
return this->Ref.NumComps; }
1526 TupleIdType GetTupleId() const noexcept {
return this->Ref.TupleId; }
1528 TupleIdType& GetTupleId() noexcept {
return this->Ref.TupleId; }
1530 ConstTupleReference<ArrayType, TupleSize> Ref;
1535template <
typename ArrayType, ComponentIdType TupleSize>
1556 :
Ref(array, numComps, tupleId)
1561 tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
"Tuple iterator at invalid tuple id.");
1570 this->
Ref.CopyReference(o.Ref);
1577 ++this->
Ref.TupleId;
1579 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1580 "Tuple iterator at invalid component id.");
1593 --this->
Ref.TupleId;
1595 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1596 "Tuple iterator at invalid component id.");
1618#define VTK_TMP_MAKE_OPERATOR(OP) \
1619 friend VTK_ITER_INLINE bool operator OP( \
1620 const TupleIterator& lhs, const TupleIterator& rhs) noexcept \
1623 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1624 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1625 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1626 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1636#undef VTK_TMP_MAKE_OPERATOR
1641 this->
Ref.TupleId += offset;
1643 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1644 "Tuple iterator at invalid component id.");
1663 this->
Ref.TupleId -= offset;
1665 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1666 "Tuple iterator at invalid component id.");
1680 "Cannot do math with tuple iterators from different "
1682 return it1.GetTupleId() - it2.GetTupleId();
1689 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1692 swap(lhs.GetTupleId(), rhs.GetTupleId());
1717template <
typename ArrayTypeT, ComponentIdType TupleSize>
1757 , BeginTuple(beginTuple)
1758 , EndTuple(endTuple)
1760 assert(this->Array);
1761 assert(beginTuple >= 0 && beginTuple <= endTuple);
1762 assert(endTuple >= 0 && endTuple <= this->Array->GetNumberOfTuples());
1768 const TupleIdType realBegin = this->BeginTuple + beginTuple;
1769 const TupleIdType realEnd = endTuple >= 0 ? this->BeginTuple + endTuple : this->EndTuple;
1771 return TupleRange{ this->Array, realBegin, realEnd };
1804 return reference{ this->Array, this->NumComps, this->BeginTuple + i };
1810 return const_reference{ this->Array, this->NumComps, this->BeginTuple + i };
1815 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1817 this->Array->GetTuple(this->BeginTuple + i, tuple);
1821 this->Array->GetTypedTuple(this->BeginTuple + i, tuple);
1825 template <
typename VT = APIType>
1827 size_type i,
double* tuple)
const noexcept
1829 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1833 tuple[comp] =
static_cast<double>(this->Array->GetComponent(i, comp));
1840 tuple[comp] =
static_cast<double>(this->Array->GetTypedComponent(i, comp));
1847 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1849 this->Array->SetTuple(this->BeginTuple + i, tuple);
1853 this->Array->SetTypedTuple(this->BeginTuple + i, tuple);
1857 template <
typename VT = APIType>
1859 size_type i,
const double* tuple)
noexcept
1861 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1865 this->Array->SetComponent(this->BeginTuple + i, comp,
static_cast<ValueType>(tuple[comp]));
1872 this->Array->SetTypedComponent(
1873 this->BeginTuple + i, comp,
static_cast<ValueType>(tuple[comp]));
1889 NumCompsType NumComps{};
1895template <
typename ArrayType, ComponentIdType TupleSize>
1898VTK_ABI_NAMESPACE_END
abstract superclass for arrays of numeric data
typename std::enable_if< AreStaticTupleSizes< S1, S2 >::value, T >::type EnableIfStaticTupleSizes
TupleRange< AOSArrayType, TupleSize > DeclareTupleRangeSpecialization(ArrayType *)
typename std::enable_if< IsEitherTupleSizeDynamic< S1, S2 >::value, T >::type EnableIfEitherTupleSizeIsDynamic
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
typename detail::GetAPITypeImpl< ArrayType, ForceValueTypeForVtkDataArray >::APIType GetAPIType
const ComponentIdType & GetComponentId() const noexcept
ComponentReference< ArrayType, TupleSize > Ref
TupleIdType & GetTupleId() noexcept
VTK_ITER_INLINE ComponentIterator(const ComponentIterator &o) noexcept=default
VTK_ITER_INLINE reference operator[](difference_type i) const noexcept
friend VTK_ITER_INLINE difference_type operator-(const ComponentIterator &it1, const ComponentIterator &it2) noexcept
VTK_ITER_INLINE ComponentIterator operator++(int) noexcept
VTK_ITER_INLINE const pointer & operator->() const noexcept
VTK_ITER_INLINE ComponentIterator & operator+=(difference_type offset) noexcept
friend VTK_ITER_INLINE void swap(ComponentIterator &lhs, ComponentIterator &rhs) noexcept
ComponentIdType & GetComponentId() noexcept
VTK_ITER_INLINE ComponentIterator operator--(int) noexcept
std::random_access_iterator_tag iterator_category
friend VTK_ITER_INLINE ComponentIterator operator+(const ComponentIterator &it, difference_type offset) noexcept
const TupleIdType & GetTupleId() const noexcept
VTK_ITER_INLINE ComponentIterator() noexcept=default
VTK_ITER_INLINE ComponentIterator & operator--() noexcept
VTK_ITER_INLINE ComponentIterator & operator=(const ComponentIterator &o) noexcept
VTK_ITER_INLINE ComponentIterator & operator-=(difference_type offset) noexcept
VTK_ITER_INLINE reference operator*() const noexcept
NumCompsType & GetNumComps() noexcept
const NumCompsType & GetNumComps() const noexcept
ArrayType * GetArray() const noexcept
VTK_ITER_INLINE ComponentIterator & operator++() noexcept
friend VTK_ITER_INLINE ComponentIterator operator+(difference_type offset, const ComponentIterator &it) noexcept
friend VTK_ITER_INLINE ComponentIterator operator-(const ComponentIterator &it, difference_type offset) noexcept
ComponentIdType difference_type
VTK_ITER_INLINE ComponentReference operator++() noexcept
VTK_ITER_INLINE ComponentReference(ComponentReference &&o) noexcept=default
VTK_ITER_INLINE ComponentReference operator=(ComponentReference &&o) noexcept
VTK_ITER_INLINE APIType operator++(int) noexcept
VTK_ITER_INLINE ComponentReference operator--() noexcept
friend VTK_ITER_INLINE void swap(ComponentReference lhs, ComponentReference rhs) noexcept
ComponentIdType ComponentId
VTK_ITER_INLINE ComponentReference() noexcept
VTK_ITER_INLINE ComponentReference(const ComponentReference &o) noexcept=default
friend VTK_ITER_INLINE void swap(APIType &lhs, ComponentReference rhs) noexcept
VTK_ITER_INLINE ComponentReference operator=(APIType val) noexcept
friend VTK_ITER_INLINE void swap(ComponentReference lhs, ComponentReference< OArray, OSize > rhs) noexcept
VTK_ITER_INLINE ComponentReference(ArrayType *array, NumCompsType numComps, TupleIdType tuple, ComponentIdType comp) noexcept
VTK_ITER_INLINE ComponentReference operator=(const ComponentReference< OArray, OSize > &o) noexcept
friend VTK_ITER_INLINE void swap(ComponentReference lhs, APIType &rhs) noexcept
VTK_ITER_INLINE ComponentReference operator=(const ComponentReference &o) noexcept
VTK_ITER_INLINE void CopyReference(const ComponentReference &o) noexcept
friend VTK_ITER_INLINE ConstComponentIterator operator+(difference_type offset, const ConstComponentIterator &it) noexcept
VTK_ITER_INLINE ConstComponentIterator & operator--() noexcept
VTK_ITER_INLINE ConstComponentIterator & operator=(const ConstComponentIterator &o) noexcept=default
VTK_ITER_INLINE ConstComponentIterator(const ConstComponentIterator &o) noexcept=default
friend VTK_ITER_INLINE difference_type operator-(const ConstComponentIterator &it1, const ConstComponentIterator &it2) noexcept
std::random_access_iterator_tag iterator_category
VTK_ITER_INLINE reference operator*() const noexcept
VTK_ITER_INLINE ConstComponentIterator operator--(int) noexcept
VTK_ITER_INLINE ConstComponentIterator & operator+=(difference_type offset) noexcept
VTK_ITER_INLINE ConstComponentIterator & operator++() noexcept
friend VTK_ITER_INLINE void swap(ConstComponentIterator &lhs, ConstComponentIterator &rhs) noexcept
ComponentIdType difference_type
VTK_ITER_INLINE ConstComponentIterator(const ComponentIterator< ArrayType, TupleSize > &o) noexcept
friend VTK_ITER_INLINE ConstComponentIterator operator-(const ConstComponentIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE ConstComponentIterator(ArrayType *array, NumCompsType numComps, TupleIdType tupleId, ComponentIdType comp) noexcept
VTK_ITER_INLINE ConstComponentIterator operator++(int) noexcept
VTK_ITER_INLINE ConstComponentIterator() noexcept
friend VTK_ITER_INLINE ConstComponentIterator operator+(const ConstComponentIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE reference operator[](difference_type i) const noexcept
VTK_ITER_INLINE ConstComponentIterator & operator-=(difference_type offset) noexcept
GetAPIType< ArrayType > value_type
VTK_ITER_INLINE ConstComponentReference(const ConstComponentReference &o) noexcept=default
VTK_ITER_INLINE ConstComponentReference & operator=(ConstComponentReference &&o) noexcept
VTK_ITER_INLINE ConstComponentReference(const ComponentReference< ArrayType, TupleSize > &o)
VTK_ITER_INLINE ConstComponentReference & operator=(const ConstComponentReference &o) noexcept
VTK_ITER_INLINE ConstComponentReference(ArrayType *array, NumCompsType numComps, TupleIdType tuple, ComponentIdType comp) noexcept
VTK_ITER_INLINE ConstComponentReference() noexcept
VTK_ITER_INLINE ConstComponentReference(ConstComponentReference &&o) noexcept=default
ComponentIdType ComponentId
VTK_ITER_INLINE ConstTupleIterator & operator+=(difference_type offset) noexcept
VTK_ITER_INLINE ConstTupleIterator & operator=(const ConstTupleIterator &o) noexcept
VTK_ITER_INLINE ConstTupleIterator & operator++() noexcept
TupleIdType difference_type
friend VTK_ITER_INLINE void swap(ConstTupleIterator &lhs, ConstTupleIterator &rhs) noexcept
VTK_ITER_INLINE ConstTupleIterator operator--(int) noexcept
friend VTK_ITER_INLINE ConstTupleIterator operator+(difference_type offset, const ConstTupleIterator &it) noexcept
VTK_ITER_INLINE reference operator*() noexcept
VTK_ITER_INLINE ConstTupleIterator() noexcept=default
VTK_ITER_INLINE pointer operator->() noexcept
std::random_access_iterator_tag iterator_category
friend VTK_ITER_INLINE ConstTupleIterator operator+(const ConstTupleIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE reference operator[](difference_type i) noexcept
friend VTK_ITER_INLINE ConstTupleIterator operator-(const ConstTupleIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE ConstTupleIterator(const ConstTupleIterator &o) noexcept=default
VTK_ITER_INLINE ConstTupleIterator(const TupleIterator< ArrayType, TupleSize > &o) noexcept
VTK_ITER_INLINE ConstTupleIterator & operator-=(difference_type offset) noexcept
friend VTK_ITER_INLINE difference_type operator-(const ConstTupleIterator &it1, const ConstTupleIterator &it2) noexcept
VTK_ITER_INLINE ConstTupleIterator operator++(int) noexcept
VTK_ITER_INLINE ConstTupleIterator & operator--() noexcept
VTK_ITER_INLINE bool operator!=(const TupleReference< OArrayType, OSize > &o) const noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator==(const ConstTupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE size_type size() const noexcept
VTK_ITER_INLINE const ConstTupleReference * operator->() const noexcept
VTK_ITER_INLINE ConstTupleReference(ConstTupleReference &&) noexcept=default
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator==(const ConstTupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator==(const TupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE ConstTupleReference() noexcept
VTK_ITER_INLINE const_iterator end() const noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator==(const TupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE const_iterator begin() const noexcept
VTK_ITER_INLINE void CopyReference(const ConstTupleReference &o) noexcept
std::enable_if_t<!std::is_same_v< VT, double > > VTK_ITER_INLINE GetTuple(double *tuple) const noexcept
ComponentIdType size_type
VTK_ITER_INLINE const_reference operator[](size_type i) const noexcept
VTK_ITER_INLINE ConstTupleReference(ArrayType *array, NumCompsType numComps, TupleIdType tupleId) noexcept
VTK_ITER_INLINE ConstTupleReference(const ConstTupleReference &) noexcept=default
VTK_ITER_INLINE void GetTuple(APIType *tuple) const noexcept
VTK_ITER_INLINE bool operator!=(const ConstTupleReference< OArrayT, OSize > &o) const noexcept
VTK_ITER_INLINE const_iterator NewConstIterator(ComponentIdType comp) const noexcept
VTK_ITER_INLINE const_iterator cbegin() const noexcept
VTK_ITER_INLINE ConstTupleReference(const TupleReference< ArrayType, TupleSize > &o) noexcept
VTK_ITER_INLINE const_iterator cend() const noexcept
VTK_ITER_INLINE ConstTupleReference & operator=(const ConstTupleReference &) noexcept=default
VTK_ITER_INLINE TupleIterator & operator=(const TupleIterator &o) noexcept
VTK_ITER_INLINE ArrayType *& GetArray() noexcept
friend VTK_ITER_INLINE TupleIterator operator+(const TupleIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE TupleIdType & GetTupleId() noexcept
TupleIdType difference_type
friend VTK_ITER_INLINE void swap(TupleIterator &lhs, TupleIterator &rhs) noexcept
VTK_ITER_INLINE NumCompsType GetNumComps() const noexcept
VTK_ITER_INLINE TupleIterator(const TupleIterator &o) noexcept=default
VTK_ITER_INLINE ArrayType * GetArray() const noexcept
VTK_ITER_INLINE TupleIterator & operator++() noexcept
VTK_ITER_INLINE TupleIterator & operator--() noexcept
VTK_ITER_INLINE NumCompsType & GetNumComps() noexcept
VTK_ITER_INLINE pointer & operator->() noexcept
friend VTK_ITER_INLINE TupleIterator operator-(const TupleIterator &it, difference_type offset) noexcept
VTK_ITER_INLINE TupleIdType GetTupleId() const noexcept
VTK_ITER_INLINE TupleIterator & operator+=(difference_type offset) noexcept
TupleReference< ArrayType, TupleSize > Ref
VTK_ITER_INLINE reference operator[](difference_type i) noexcept
friend VTK_ITER_INLINE TupleIterator operator+(difference_type offset, const TupleIterator &it) noexcept
VTK_ITER_INLINE reference operator*() noexcept
VTK_ITER_INLINE TupleIterator operator++(int) noexcept
VTK_ITER_INLINE TupleIterator operator--(int) noexcept
VTK_ITER_INLINE TupleIterator & operator-=(difference_type offset) noexcept
friend VTK_ITER_INLINE difference_type operator-(const TupleIterator &it1, const TupleIterator &it2) noexcept
std::random_access_iterator_tag iterator_category
VTK_ITER_INLINE TupleIterator() noexcept=default
VTK_ITER_INLINE const_iterator begin() const noexcept
GetAPIType< ArrayType > APIType
VTK_ITER_INLINE ArrayType * GetArray() const noexcept
VTK_ITER_INLINE TupleIdType GetBeginTupleId() const noexcept
VTK_ITER_INLINE TupleIdType GetEndTupleId() const noexcept
std::enable_if_t<!std::is_same_v< VT, double > > VTK_ITER_INLINE GetTuple(size_type i, double *tuple) const noexcept
std::enable_if_t<!std::is_same_v< VT, double > > VTK_ITER_INLINE SetTuple(size_type i, const double *tuple) noexcept
static constexpr ComponentIdType TupleSizeTag
TupleIterator< ArrayType, TupleSize > TupleIteratorType
VTK_ITER_INLINE TupleRange() noexcept=default
VTK_ITER_INLINE const_reference operator[](size_type i) const noexcept
VTK_ITER_INLINE const_iterator end() const noexcept
VTK_ITER_INLINE size_type size() const noexcept
ConstTupleIterator< ArrayType, TupleSize > ConstTupleIteratorType
VTK_ITER_INLINE reference operator[](size_type i) noexcept
ConstTupleIteratorType const_iterator
VTK_ITER_INLINE const_iterator cend() const noexcept
TupleReference< ArrayType, TupleSize > TupleReferenceType
VTK_ITER_INLINE ComponentIdType GetTupleSize() const noexcept
VTK_ITER_INLINE const_iterator cbegin() const noexcept
VTK_ITER_INLINE iterator end() noexcept
ConstTupleReference< ArrayType, TupleSize > ConstTupleReferenceType
void VTK_ITER_INLINE GetTuple(size_type i, ValueType *tuple) const noexcept
TupleIteratorType iterator
VTK_ITER_INLINE TupleRange GetSubRange(TupleIdType beginTuple=0, TupleIdType endTuple=-1) const noexcept
VTK_ITER_INLINE iterator begin() noexcept
void VTK_ITER_INLINE SetTuple(size_type i, const ValueType *tuple) noexcept
VTK_ITER_INLINE void SetTuple(const APIType *tuple) noexcept
VTK_ITER_INLINE const_iterator begin() const noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, TupleReference & > operator=(const TupleReference< OArrayType, OSize > &other) noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator==(const ConstTupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE const TupleReference * operator->() const noexcept
VTK_ITER_INLINE reference operator[](size_type i) noexcept
VTK_ITER_INLINE TupleReference(const TupleReference &)=default
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, void > swap(TupleReference< OArrayType, OSize > other) noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator==(const TupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE void GetTuple(APIType *tuple) const noexcept
VTK_ITER_INLINE const_iterator cbegin() const noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator==(const TupleReference< OArrayType, OSize > &other) const noexcept
friend VTK_ITER_INLINE void swap(TupleReference a, TupleReference b) noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, TupleReference & > operator=(const ConstTupleReference< OArrayType, OSize > &other) noexcept
ComponentIdType size_type
VTK_ITER_INLINE TupleReference(ArrayType *array, NumCompsType numComps, TupleIdType tupleId) noexcept
VTK_ITER_INLINE TupleReference & operator=(const TupleReference &other) noexcept
VTK_ITER_INLINE TupleReference(TupleReference &&) noexcept=default
VTK_ITER_INLINE iterator NewIterator(ComponentIdType comp) const noexcept
VTK_ITER_INLINE const_iterator cend() const noexcept
VTK_ITER_INLINE size_type size() const noexcept
VTK_ITER_INLINE bool operator!=(const TupleReference< OArrayType, OSize > &o) const noexcept
VTK_ITER_INLINE void CopyReference(const TupleReference &o) noexcept
VTK_ITER_INLINE iterator begin() noexcept
VTK_ITER_INLINE const_reference operator[](size_type i) const noexcept
VTK_ITER_INLINE TupleReference() noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, TupleReference & > operator=(const TupleReference< OArrayType, OSize > &other) noexcept
VTK_ITER_INLINE const_iterator end() const noexcept
VTK_ITER_INLINE iterator end() noexcept
std::enable_if_t<!std::is_same_v< VT, double > > VTK_ITER_INLINE SetTuple(const double *tuple) noexcept
VTK_ITER_INLINE void fill(const value_type &v) noexcept
std::enable_if_t<!std::is_same_v< VT, double > > VTK_ITER_INLINE GetTuple(double *tuple) const noexcept
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, TupleReference & > operator=(const ConstTupleReference< OArrayType, OSize > &other) noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, void > swap(TupleReference< OArrayType, OSize > other) noexcept
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator==(const ConstTupleReference< OArrayType, OSize > &other) const noexcept
VTK_ITER_INLINE const_iterator NewConstIterator(ComponentIdType comp) const noexcept
VTK_ITER_INLINE bool operator!=(const ConstTupleReference< OArray, OSize > &o) const noexcept
friend VTK_ITER_INLINE void swap(TupleReference a, TupleReference< OArray, OSize > b) noexcept
#define VTK_TMP_MAKE_OPERATOR(OP)
#define VTK_REF_OP_OVERLOADS(Op, ImplOp)