8#ifndef vtkDataArrayTupleRange_Generic_h
9#define vtkDataArrayTupleRange_Generic_h
25VTK_ABI_NAMESPACE_BEGIN
28template <
typename ArrayType, ComponentIdType>
30template <
typename ArrayType, ComponentIdType>
32template <
typename ArrayType, ComponentIdType>
34template <
typename ArrayType, ComponentIdType>
36template <
typename ArrayType, ComponentIdType>
38template <
typename ArrayType, ComponentIdType>
40template <
typename ArrayType, ComponentIdType>
42template <
typename ArrayType, ComponentIdType>
44template <
typename ArrayType, ComponentIdType>
49template <
typename ArrayType, ComponentIdType TupleSize>
82 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
84 "Invalid component accessed by iterator.");
107 this->
Array = o.Array;
118 this->
Array = std::move(o.Array);
119 this->
NumComps = std::move(o.NumComps);
128 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
147template <
typename ArrayType, ComponentIdType TupleSize>
180 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
182 "Invalid component accessed by iterator.");
195 return *
this =
static_cast<APIType
>(o);
199 this->
Array = o.Array;
213 return *
this = std::move(
static_cast<APIType
>(o));
217 this->
Array = std::move(o.Array);
218 this->
NumComps = std::move(o.NumComps);
226 template <
typename OArray, ComponentIdType OSize>
229 const APIType tmp = o;
230 return *
this = std::move(tmp);
237 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
251 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
264 APIType tmp =
static_cast<APIType
>(lhs);
265 lhs =
static_cast<APIType
>(rhs);
266 rhs = std::move(tmp);
269 template <
typename OArray, ComponentIdType OSize>
275 std::is_same<APIType, OAPIType>::value,
"Cannot swap components with different types.");
277 APIType tmp =
static_cast<APIType
>(lhs);
278 lhs =
static_cast<APIType
>(rhs);
279 rhs = std::move(tmp);
284 APIType tmp =
static_cast<APIType
>(lhs);
285 lhs = std::move(rhs);
286 rhs = std::move(tmp);
291 APIType tmp = std::move(lhs);
292 lhs =
static_cast<APIType
>(rhs);
293 rhs = std::move(tmp);
299 const APIType newVal = *
this + 1;
307 const APIType retVal = *
this;
315 const APIType newVal = *
this - 1;
323 const APIType retVal = *
this;
328#define VTK_REF_OP_OVERLOADS(Op, ImplOp) \
329 friend VTK_ITER_INLINE ComponentReference operator Op( \
330 ComponentReference lhs, APIType val) noexcept \
332 const APIType newVal = lhs ImplOp val; \
336 friend VTK_ITER_INLINE ComponentReference operator Op( \
337 ComponentReference lhs, ComponentReference val) noexcept \
339 const APIType newVal = lhs ImplOp val; \
343 friend VTK_ITER_INLINE APIType& operator Op(APIType& lhs, ComponentReference val) noexcept \
345 const APIType newVal = lhs ImplOp val; \
355#undef VTK_REF_OP_OVERLOADS
357 friend struct ConstComponentReference<ArrayType, TupleSize>;
358 friend struct ComponentIterator<ArrayType, TupleSize>;
364 this->
Array = o.Array;
378template <
typename ArrayType, ComponentIdType TupleSize>
413 "Const component iterator at invalid tuple id.");
415 "Const component iterator at invalid component id.");
420 : Array{ o.GetArray() }
421 , NumComps{ o.GetNumComps() }
422 , TupleId{ o.GetTupleId() }
423 , ComponentId{ o.GetComponentId() }
436 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
437 "Const component iterator at invalid component id.");
445 this->ComponentId++ };
452 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
453 "Const component iterator at invalid component id.");
461 this->ComponentId-- };
467 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId + i };
473 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId };
476#define VTK_TMP_MAKE_OPERATOR(OP) \
477 friend VTK_ITER_INLINE bool operator OP( \
478 const ConstComponentIterator& lhs, const ConstComponentIterator& rhs) noexcept \
480 VTK_ITER_ASSERT(lhs.Array == rhs.Array, "Mismatched arrays in iterator comparison."); \
481 VTK_ITER_ASSERT(lhs.TupleId == rhs.TupleId, "Mismatched tuple ids in iterator comparison."); \
482 VTK_ITER_ASSUME(lhs.NumComps.value > 0); \
483 VTK_ITER_ASSUME(lhs.NumComps.value == rhs.NumComps.value); \
484 return lhs.ComponentId OP rhs.ComponentId; \
494#undef VTK_TMP_MAKE_OPERATOR
499 this->ComponentId += offset;
500 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
501 "Const component iterator at invalid component id.");
520 this->ComponentId -= offset;
521 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
522 "Const component iterator at invalid component id.");
535 VTK_ITER_ASSERT(it1.Array == it2.Array,
"Cannot do math with iterators from different arrays.");
537 "Cannot do math with component iterators from different "
539 return it1.ComponentId - it2.ComponentId;
546 VTK_ITER_ASSERT(lhs.Array == rhs.Array,
"Cannot swap iterators from different arrays.");
549 swap(lhs.TupleId, rhs.TupleId);
550 swap(lhs.ComponentId, rhs.ComponentId);
554 mutable ArrayType* Array;
555 NumCompsType NumComps;
562template <
typename ArrayType, ComponentIdType TupleSize>
585 :
Ref(array, numComps, tupleId, comp)
590 "Component iterator at invalid tuple id.");
592 comp >= 0 && comp <= numComps.value,
"Component iterator at invalid component id.");
601 this->
Ref.CopyReference(o.Ref);
608 ++this->
Ref.ComponentId;
609 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
610 "Component iterator at invalid component id.");
618 this->
Ref.ComponentId++ };
624 --this->
Ref.ComponentId;
625 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
626 "Component iterator at invalid component id.");
634 this->
Ref.ComponentId-- };
641 this->
Ref.ComponentId + i };
650#define VTK_TMP_MAKE_OPERATOR(OP) \
651 friend VTK_ITER_INLINE bool operator OP( \
652 const ComponentIterator& lhs, const ComponentIterator& rhs) noexcept \
655 lhs.GetArray() == rhs.GetArray(), "Mismatched arrays in iterator comparison."); \
657 lhs.GetTupleId() == rhs.GetTupleId(), "Mismatched tuple ids in iterator comparison."); \
658 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
659 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
660 return lhs.GetComponentId() OP rhs.GetComponentId(); \
670#undef VTK_TMP_MAKE_OPERATOR
675 this->
Ref.ComponentId += offset;
676 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
677 "Component iterator at invalid component id.");
685 it.GetComponentId() + offset };
692 it.GetComponentId() + offset };
698 this->
Ref.ComponentId -= offset;
699 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
700 "Component iterator at invalid component id.");
708 it.GetComponentId() - offset };
715 "Cannot do math with component iterators from different "
718 "Cannot do math with component iterators from different "
720 return it1.GetComponentId() - it2.GetComponentId();
727 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
730 swap(lhs.GetTupleId(), rhs.GetTupleId());
731 swap(lhs.GetComponentId(), rhs.GetComponentId());
752template <
typename ArrayType, ComponentIdType TupleSize>
785 "Const tuple reference at invalid tuple id.");
812 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
822 template <
typename VT = APIType>
824 double* tuple)
const noexcept
828 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
832 tuple[comp] =
static_cast<double>(this->
Array->GetComponent(this->
TupleId, comp));
839 tuple[comp] =
static_cast<double>(this->
Array->GetTypedComponent(this->
TupleId, comp));
845 template <
typename OArrayType, ComponentIdType OSize>
852 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
855 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
857 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
861 template <
typename OArrayType, ComponentIdType OSize>
868 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
871 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
873 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
877 template <
typename OArrayType, ComponentIdType OSize>
884 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
887 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
889 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
893 template <
typename OArrayType, ComponentIdType OSize>
900 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
903 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
905 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
908 template <
typename OArrayType, ComponentIdType OSize>
911 return !(*
this == o);
914 template <
typename OArrayT, ComponentIdType OSize>
917 return !(*
this == o);
969template <
typename ArrayType, ComponentIdType TupleSize>
1002 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1003 "Tuple reference at invalid tuple id.");
1022 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1032 template <
typename VT = APIType>
1034 double* tuple)
const noexcept
1038 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1042 tuple[comp] =
static_cast<double>(this->
Array->GetComponent(this->
TupleId, comp));
1049 tuple[comp] =
static_cast<double>(this->
Array->GetTypedComponent(this->
TupleId, comp));
1059 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1069 template <
typename VT = APIType>
1071 const double* tuple)
noexcept
1075 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1079 this->
Array->SetComponent(this->
TupleId, comp,
static_cast<APIType
>(tuple[comp]));
1086 this->
Array->SetTypedComponent(this->
TupleId, comp,
static_cast<APIType
>(tuple[comp]));
1094 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1099 template <
typename OArrayType, ComponentIdType OSize>
1106 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1109 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1111 std::copy_n(other.cbegin(), OSize, this->begin());
1116 template <
typename OArrayType, ComponentIdType OSize>
1123 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1126 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1128 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1133 template <
typename OArrayType, ComponentIdType OSize>
1140 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1143 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1145 std::copy_n(other.cbegin(), OSize, this->begin());
1150 template <
typename OArrayType, ComponentIdType OSize>
1157 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1160 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1162 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1167 template <
typename OArrayType, ComponentIdType OSize>
1174 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1177 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1179 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1183 template <
typename OArrayType, ComponentIdType OSize>
1190 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1193 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1195 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1199 template <
typename OArrayType, ComponentIdType OSize>
1206 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1209 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1211 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1215 template <
typename OArrayType, ComponentIdType OSize>
1222 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1225 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1227 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1230 template <
typename OArrayType, ComponentIdType OSize>
1233 return !(*
this == o);
1236 template <
typename OArray, ComponentIdType OSize>
1239 return !(*
this == o);
1243 template <
typename OArrayType, ComponentIdType OSize>
1250 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1253 static_assert(TupleSize == OSize,
"Cannot swap tuples with different sizes.");
1255 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1259 template <
typename OArrayType, ComponentIdType OSize>
1266 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1269 other.size() == this->NumComps.value,
"Cannot swap tuples with different sizes.");
1271 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1276 template <
typename OArray, ComponentIdType OSize>
1350template <
typename ArrayType, ComponentIdType TupleSize>
1371 : Ref(array, numComps, tupleId)
1375 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1376 "Const tuple iterator at invalid tuple id.");
1390 this->Ref.CopyReference(o.Ref);
1397 ++this->Ref.TupleId;
1399 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1400 "Const tuple iterator at invalid component id.");
1407 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId++ };
1413 --this->Ref.TupleId;
1415 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1416 "Const tuple iterator at invalid component id.");
1423 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId-- };
1429 return reference{ this->GetArray(), this->GetNumComps(), this->GetTupleId() + i };
1438#define VTK_TMP_MAKE_OPERATOR(OP) \
1439 friend VTK_ITER_INLINE bool operator OP( \
1440 const ConstTupleIterator& lhs, const ConstTupleIterator& rhs) noexcept \
1443 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1444 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1445 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1446 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1456#undef VTK_TMP_MAKE_OPERATOR
1461 this->Ref.TupleId += offset;
1463 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1464 "Const tuple iterator at invalid component id.");
1471 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1477 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1483 this->Ref.TupleId -= offset;
1485 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1486 "Const tuple iterator at invalid component id.");
1493 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() - offset };
1500 "Cannot do math with tuple iterators from different "
1502 return it1.GetTupleId() - it2.GetTupleId();
1509 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1512 swap(lhs.GetTupleId(), rhs.GetTupleId());
1517 ArrayType* GetArray() const noexcept {
return this->Ref.Array; }
1519 ArrayType*& GetArray() noexcept {
return this->Ref.Array; }
1521 NumCompsType GetNumComps() const noexcept {
return this->Ref.NumComps; }
1523 NumCompsType& GetNumComps() noexcept {
return this->Ref.NumComps; }
1525 TupleIdType GetTupleId() const noexcept {
return this->Ref.TupleId; }
1527 TupleIdType& GetTupleId() noexcept {
return this->Ref.TupleId; }
1529 ConstTupleReference<ArrayType, TupleSize> Ref;
1534template <
typename ArrayType, ComponentIdType TupleSize>
1555 :
Ref(array, numComps, tupleId)
1560 tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
"Tuple iterator at invalid tuple id.");
1569 this->
Ref.CopyReference(o.Ref);
1576 ++this->
Ref.TupleId;
1578 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1579 "Tuple iterator at invalid component id.");
1592 --this->
Ref.TupleId;
1594 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1595 "Tuple iterator at invalid component id.");
1617#define VTK_TMP_MAKE_OPERATOR(OP) \
1618 friend VTK_ITER_INLINE bool operator OP( \
1619 const TupleIterator& lhs, const TupleIterator& rhs) noexcept \
1622 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1623 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1624 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1625 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1635#undef VTK_TMP_MAKE_OPERATOR
1640 this->
Ref.TupleId += offset;
1642 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1643 "Tuple iterator at invalid component id.");
1650 return TupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1656 return TupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1662 this->
Ref.TupleId -= offset;
1664 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1665 "Tuple iterator at invalid component id.");
1672 return TupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() - offset };
1679 "Cannot do math with tuple iterators from different "
1681 return it1.GetTupleId() - it2.GetTupleId();
1688 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1691 swap(lhs.GetTupleId(), rhs.GetTupleId());
1716template <
typename ArrayTypeT, ComponentIdType TupleSize>
1756 , BeginTuple(beginTuple)
1757 , EndTuple(endTuple)
1759 assert(this->Array);
1760 assert(beginTuple >= 0 && beginTuple <= endTuple);
1761 assert(endTuple >= 0 && endTuple <= this->Array->GetNumberOfTuples());
1767 const TupleIdType realBegin = this->BeginTuple + beginTuple;
1768 const TupleIdType realEnd = endTuple >= 0 ? this->BeginTuple + endTuple : this->EndTuple;
1770 return TupleRange{ this->Array, realBegin, realEnd };
1803 return reference{ this->Array, this->NumComps, this->BeginTuple + i };
1809 return const_reference{ this->Array, this->NumComps, this->BeginTuple + i };
1814 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1816 this->Array->GetTuple(this->BeginTuple + i, tuple);
1820 this->Array->GetTypedTuple(this->BeginTuple + i, tuple);
1824 template <
typename VT = APIType>
1826 size_type i,
double* tuple)
const noexcept
1828 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1832 tuple[comp] =
static_cast<double>(this->Array->GetComponent(i, comp));
1839 tuple[comp] =
static_cast<double>(this->Array->GetTypedComponent(i, comp));
1846 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1848 this->Array->SetTuple(this->BeginTuple + i, tuple);
1852 this->Array->SetTypedTuple(this->BeginTuple + i, tuple);
1856 template <
typename VT = APIType>
1858 size_type i,
const double* tuple)
noexcept
1860 if constexpr (std::is_same<ArrayType, vtkDataArray>::value)
1864 this->Array->SetComponent(this->BeginTuple + i, comp,
static_cast<ValueType>(tuple[comp]));
1871 this->Array->SetTypedComponent(
1872 this->BeginTuple + i, comp,
static_cast<ValueType>(tuple[comp]));
1888 NumCompsType NumComps{};
1894template <
typename ArrayType, ComponentIdType TupleSize>
1897VTK_ABI_NAMESPACE_END
Abstract superclass for all arrays.
TupleRange< AOSArrayType, TupleSize > DeclareTupleRangeSpecialization(ArrayType *)
std::enable_if_t< IsEitherTupleSizeDynamic< S1, S2 >::value, T > EnableIfEitherTupleSizeIsDynamic
typename std::enable_if< AreStaticTupleSizes< S1, S2 >::value, T >::type EnableIfStaticTupleSizes
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
ComponentReference< ArrayType, TupleSize > pointer
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
ComponentReference< ArrayType, TupleSize > reference
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
ConstComponentReference< ArrayType, TupleSize > reference
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
ConstTupleReference< ArrayType, TupleSize > value_type
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
ConstTupleReference< ArrayType, TupleSize > reference
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
ConstTupleReference< ArrayType, TupleSize > pointer
ConstComponentIterator< ArrayType, TupleSize > const_iterator
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
ConstComponentIterator< ArrayType, TupleSize > iterator
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
ConstComponentReference< ArrayType, TupleSize > const_reference
VTK_ITER_INLINE const_iterator cend() const noexcept
VTK_ITER_INLINE ConstTupleReference & operator=(const ConstTupleReference &) noexcept=default
static constexpr bool value
TupleReference< ArrayType, TupleSize > pointer
TupleReference< ArrayType, TupleSize > value_type
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
TupleReference< ArrayType, TupleSize > reference
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
ConstComponentReference< ArrayType, TupleSize > ConstComponentReferenceType
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
ConstComponentIterator< ArrayType, TupleSize > ConstComponentIteratorType
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
ComponentReference< ArrayType, TupleSize > ComponentReferenceType
ConstTupleReferenceType const_reference
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
ComponentIterator< ArrayType, TupleSize > ComponentIteratorType
VTK_ITER_INLINE TupleRange GetSubRange(TupleIdType beginTuple=0, TupleIdType endTuple=-1) const noexcept
VTK_ITER_INLINE iterator begin() noexcept
TupleReferenceType reference
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
ComponentIterator< ArrayType, TupleSize > iterator
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
ComponentReference< ArrayType, TupleSize > reference
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
ConstComponentIterator< ArrayType, TupleSize > const_iterator
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
ConstComponentReference< ArrayType, TupleSize > const_reference
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)