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);
121 this->
TupleId = std::move(o.TupleId);
126 operator APIType() const noexcept
143template <
typename ArrayType, ComponentIdType TupleSize>
176 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
178 "Invalid component accessed by iterator.");
191 return *
this =
static_cast<APIType
>(o);
209 return *
this = std::move(
static_cast<APIType
>(o));
213 this->
Array = std::move(o.Array);
214 this->
NumComps = std::move(o.NumComps);
215 this->
TupleId = std::move(o.TupleId);
222 template <
typename OArray, ComponentIdType OSize>
225 const APIType tmp = o;
226 return *
this = std::move(tmp);
230 operator APIType() const noexcept
250 APIType tmp = std::move(
static_cast<APIType
>(lhs));
251 lhs = std::move(
static_cast<APIType
>(rhs));
252 rhs = std::move(tmp);
255 template <
typename OArray, ComponentIdType OSize>
261 std::is_same<APIType, OAPIType>::value,
"Cannot swap components with different types.");
263 APIType tmp = std::move(
static_cast<APIType
>(lhs));
264 lhs = std::move(
static_cast<APIType
>(rhs));
265 rhs = std::move(tmp);
270 APIType tmp = std::move(
static_cast<APIType
>(lhs));
271 lhs = std::move(rhs);
272 rhs = std::move(tmp);
277 APIType tmp = std::move(lhs);
278 lhs = std::move(
static_cast<APIType
>(rhs));
279 rhs = std::move(tmp);
285 const APIType newVal = *
this + 1;
293 const APIType retVal = *
this;
301 const APIType newVal = *
this - 1;
309 const APIType retVal = *
this;
314#define VTK_REF_OP_OVERLOADS(Op, ImplOp) \
315 friend VTK_ITER_INLINE ComponentReference operator Op( \
316 ComponentReference lhs, APIType val) noexcept \
318 const APIType newVal = lhs ImplOp val; \
322 friend VTK_ITER_INLINE ComponentReference operator Op( \
323 ComponentReference lhs, ComponentReference val) noexcept \
325 const APIType newVal = lhs ImplOp val; \
329 friend VTK_ITER_INLINE APIType& operator Op(APIType& lhs, ComponentReference val) noexcept \
331 const APIType newVal = lhs ImplOp val; \
341#undef VTK_REF_OP_OVERLOADS
343 friend struct ConstComponentReference<ArrayType, TupleSize>;
344 friend struct ComponentIterator<ArrayType, TupleSize>;
350 this->
Array = o.Array;
364template <
typename ArrayType, ComponentIdType TupleSize>
399 "Const component iterator at invalid tuple id.");
401 "Const component iterator at invalid component id.");
406 : Array{ o.GetArray() }
407 , NumComps{ o.GetNumComps() }
408 , TupleId{ o.GetTupleId() }
409 , ComponentId{ o.GetComponentId() }
422 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
423 "Const component iterator at invalid component id.");
431 this->ComponentId++ };
438 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
439 "Const component iterator at invalid component id.");
447 this->ComponentId-- };
453 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId + i };
459 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId };
462#define VTK_TMP_MAKE_OPERATOR(OP) \
463 friend VTK_ITER_INLINE bool operator OP( \
464 const ConstComponentIterator& lhs, const ConstComponentIterator& rhs) noexcept \
466 VTK_ITER_ASSERT(lhs.Array == rhs.Array, "Mismatched arrays in iterator comparison."); \
467 VTK_ITER_ASSERT(lhs.TupleId == rhs.TupleId, "Mismatched tuple ids in iterator comparison."); \
468 VTK_ITER_ASSUME(lhs.NumComps.value > 0); \
469 VTK_ITER_ASSUME(lhs.NumComps.value == rhs.NumComps.value); \
470 return lhs.ComponentId OP rhs.ComponentId; \
480#undef VTK_TMP_MAKE_OPERATOR
485 this->ComponentId += offset;
486 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
487 "Const component iterator at invalid component id.");
506 this->ComponentId -= offset;
507 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
508 "Const component iterator at invalid component id.");
521 VTK_ITER_ASSERT(it1.Array == it2.Array,
"Cannot do math with iterators from different arrays.");
523 "Cannot do math with component iterators from different "
525 return it1.ComponentId - it2.ComponentId;
532 VTK_ITER_ASSERT(lhs.Array == rhs.Array,
"Cannot swap iterators from different arrays.");
535 swap(lhs.TupleId, rhs.TupleId);
536 swap(lhs.ComponentId, rhs.ComponentId);
540 mutable ArrayType* Array;
541 NumCompsType NumComps;
548template <
typename ArrayType, ComponentIdType TupleSize>
571 :
Ref(array, numComps, tupleId, comp)
576 "Component iterator at invalid tuple id.");
578 comp >= 0 && comp <= numComps.value,
"Component iterator at invalid component id.");
587 this->
Ref.CopyReference(o.Ref);
594 ++this->
Ref.ComponentId;
595 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
596 "Component iterator at invalid component id.");
604 this->
Ref.ComponentId++ };
610 --this->
Ref.ComponentId;
611 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
612 "Component iterator at invalid component id.");
620 this->
Ref.ComponentId-- };
627 this->
Ref.ComponentId + i };
636#define VTK_TMP_MAKE_OPERATOR(OP) \
637 friend VTK_ITER_INLINE bool operator OP( \
638 const ComponentIterator& lhs, const ComponentIterator& rhs) noexcept \
641 lhs.GetArray() == rhs.GetArray(), "Mismatched arrays in iterator comparison."); \
643 lhs.GetTupleId() == rhs.GetTupleId(), "Mismatched tuple ids in iterator comparison."); \
644 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
645 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
646 return lhs.GetComponentId() OP rhs.GetComponentId(); \
656#undef VTK_TMP_MAKE_OPERATOR
661 this->
Ref.ComponentId += offset;
662 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
663 "Component iterator at invalid component id.");
671 it.GetComponentId() + offset };
678 it.GetComponentId() + offset };
684 this->
Ref.ComponentId -= offset;
685 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
686 "Component iterator at invalid component id.");
694 it.GetComponentId() - offset };
701 "Cannot do math with component iterators from different "
704 "Cannot do math with component iterators from different "
706 return it1.GetComponentId() - it2.GetComponentId();
713 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
716 swap(lhs.GetTupleId(), rhs.GetTupleId());
717 swap(lhs.GetComponentId(), rhs.GetComponentId());
738template <
typename ArrayType, ComponentIdType TupleSize>
771 "Const tuple reference at invalid tuple id.");
804 template <
typename OArrayType, ComponentIdType OSize>
811 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
814 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
816 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
820 template <
typename OArrayType, ComponentIdType OSize>
827 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
830 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
832 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
836 template <
typename OArrayType, ComponentIdType OSize>
843 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
846 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
848 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
852 template <
typename OArrayType, ComponentIdType OSize>
859 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
862 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
864 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
867 template <
typename OArrayType, ComponentIdType OSize>
870 return !(*
this == o);
873 template <
typename OArrayT, ComponentIdType OSize>
876 return !(*
this == o);
928template <
typename ArrayType, ComponentIdType TupleSize>
962 "Tuple reference at invalid tuple id.");
999 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1004 template <
typename OArrayType, ComponentIdType OSize>
1011 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1014 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1016 std::copy_n(other.cbegin(), OSize, this->begin());
1021 template <
typename OArrayType, ComponentIdType OSize>
1028 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1031 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1033 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1038 template <
typename OArrayType, ComponentIdType OSize>
1045 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1048 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1050 std::copy_n(other.cbegin(), OSize, this->begin());
1055 template <
typename OArrayType, ComponentIdType OSize>
1062 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1065 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1067 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1072 template <
typename OArrayType, ComponentIdType OSize>
1079 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1082 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1084 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1088 template <
typename OArrayType, ComponentIdType OSize>
1095 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1098 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1100 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1104 template <
typename OArrayType, ComponentIdType OSize>
1111 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1114 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1116 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1120 template <
typename OArrayType, ComponentIdType OSize>
1127 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1130 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1132 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1135 template <
typename OArrayType, ComponentIdType OSize>
1138 return !(*
this == o);
1141 template <
typename OArray, ComponentIdType OSize>
1144 return !(*
this == o);
1148 template <
typename OArrayType, ComponentIdType OSize>
1155 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1158 static_assert(TupleSize == OSize,
"Cannot swap tuples with different sizes.");
1160 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1164 template <
typename OArrayType, ComponentIdType OSize>
1171 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1174 other.size() == this->NumComps.value,
"Cannot swap tuples with different sizes.");
1176 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1181 template <
typename OArray, ComponentIdType OSize>
1255template <
typename ArrayType, ComponentIdType TupleSize>
1276 : Ref(array, numComps, tupleId)
1280 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1281 "Const tuple iterator at invalid tuple id.");
1295 this->Ref.CopyReference(o.Ref);
1302 ++this->Ref.TupleId;
1304 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1305 "Const tuple iterator at invalid component id.");
1312 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId++ };
1318 --this->Ref.TupleId;
1320 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1321 "Const tuple iterator at invalid component id.");
1328 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId-- };
1334 return reference{ this->GetArray(), this->GetNumComps(), this->GetTupleId() + i };
1343#define VTK_TMP_MAKE_OPERATOR(OP) \
1344 friend VTK_ITER_INLINE bool operator OP( \
1345 const ConstTupleIterator& lhs, const ConstTupleIterator& rhs) noexcept \
1348 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1349 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1350 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1351 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1361#undef VTK_TMP_MAKE_OPERATOR
1366 this->Ref.TupleId += offset;
1368 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1369 "Const tuple iterator at invalid component id.");
1376 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1382 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1388 this->Ref.TupleId -= offset;
1390 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1391 "Const tuple iterator at invalid component id.");
1398 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() - offset };
1405 "Cannot do math with tuple iterators from different "
1407 return it1.GetTupleId() - it2.GetTupleId();
1414 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1417 swap(lhs.GetTupleId(), rhs.GetTupleId());
1422 ArrayType* GetArray() const noexcept {
return this->Ref.Array; }
1424 ArrayType*& GetArray() noexcept {
return this->Ref.Array; }
1426 NumCompsType GetNumComps() const noexcept {
return this->Ref.NumComps; }
1428 NumCompsType& GetNumComps() noexcept {
return this->Ref.NumComps; }
1430 TupleIdType GetTupleId() const noexcept {
return this->Ref.TupleId; }
1432 TupleIdType& GetTupleId() noexcept {
return this->Ref.TupleId; }
1434 ConstTupleReference<ArrayType, TupleSize> Ref;
1439template <
typename ArrayType, ComponentIdType TupleSize>
1460 :
Ref(array, numComps, tupleId)
1465 tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
"Tuple iterator at invalid tuple id.");
1474 this->
Ref.CopyReference(o.Ref);
1481 ++this->
Ref.TupleId;
1483 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1484 "Tuple iterator at invalid component id.");
1497 --this->
Ref.TupleId;
1499 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1500 "Tuple iterator at invalid component id.");
1522#define VTK_TMP_MAKE_OPERATOR(OP) \
1523 friend VTK_ITER_INLINE bool operator OP( \
1524 const TupleIterator& lhs, const TupleIterator& rhs) noexcept \
1527 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1528 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1529 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1530 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1540#undef VTK_TMP_MAKE_OPERATOR
1545 this->
Ref.TupleId += offset;
1547 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1548 "Tuple iterator at invalid component id.");
1567 this->
Ref.TupleId -= offset;
1569 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1570 "Tuple iterator at invalid component id.");
1584 "Cannot do math with tuple iterators from different "
1586 return it1.GetTupleId() - it2.GetTupleId();
1593 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1596 swap(lhs.GetTupleId(), rhs.GetTupleId());
1621template <
typename ArrayTypeT, ComponentIdType TupleSize>
1658 , BeginTuple(beginTuple)
1659 , EndTuple(endTuple)
1661 assert(this->Array);
1662 assert(beginTuple >= 0 && beginTuple <= endTuple);
1663 assert(endTuple >= 0 && endTuple <= this->Array->GetNumberOfTuples());
1669 const TupleIdType realBegin = this->BeginTuple + beginTuple;
1670 const TupleIdType realEnd = endTuple >= 0 ? this->BeginTuple + endTuple : this->EndTuple;
1672 return TupleRange{ this->Array, realBegin, realEnd };
1705 return reference{ this->Array, this->NumComps, this->BeginTuple + i };
1711 return const_reference{ this->Array, this->NumComps, this->BeginTuple + i };
1725 NumCompsType NumComps{};
1731template <
typename ArrayType, ComponentIdType TupleSize>
1734VTK_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 >::APIType GetAPIType
Efficient templated access to vtkDataArray.
VTK_ALWAYS_INLINE APIType Get(vtkIdType tupleIdx, int compIdx) const
VTK_ALWAYS_INLINE void Set(vtkIdType tupleIdx, int compIdx, APIType val) const
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
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
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
TupleIteratorType iterator
VTK_ITER_INLINE TupleRange GetSubRange(TupleIdType beginTuple=0, TupleIdType endTuple=-1) const noexcept
VTK_ITER_INLINE iterator begin() 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
VTK_ITER_INLINE void fill(const value_type &v) 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)