20#ifndef vtkDataArrayTupleRange_Generic_h
21#define vtkDataArrayTupleRange_Generic_h
41template <
typename ArrayType, ComponentIdType>
42struct ConstComponentReference;
43template <
typename ArrayType, ComponentIdType>
44struct ComponentReference;
45template <
typename ArrayType, ComponentIdType>
46struct ConstComponentIterator;
47template <
typename ArrayType, ComponentIdType>
48struct ComponentIterator;
49template <
typename ArrayType, ComponentIdType>
50struct ConstTupleReference;
51template <
typename ArrayType, ComponentIdType>
53template <
typename ArrayType, ComponentIdType>
54struct ConstTupleIterator;
55template <
typename ArrayType, ComponentIdType>
57template <
typename ArrayType, ComponentIdType>
62template <
typename ArrayType, ComponentIdType TupleSize>
95 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
97 "Invalid component accessed by iterator.");
120 this->
Array = o.Array;
131 this->
Array = std::move(o.Array);
132 this->
NumComps = std::move(o.NumComps);
133 this->
TupleId = std::move(o.TupleId);
138 operator APIType() const noexcept
155template <
typename ArrayType, ComponentIdType TupleSize>
188 tuple >= 0 && tuple <= array->GetNumberOfTuples(),
"Invalid tuple accessed by iterator.");
190 "Invalid component accessed by iterator.");
203 return *
this =
static_cast<APIType
>(o);
221 return *
this = std::move(
static_cast<APIType
>(o));
225 this->
Array = std::move(o.Array);
226 this->
NumComps = std::move(o.NumComps);
227 this->
TupleId = std::move(o.TupleId);
234 template <
typename OArray, ComponentIdType OSize>
237 const APIType tmp = o;
238 return *
this = std::move(tmp);
242 operator APIType() const noexcept
262 APIType tmp = std::move(
static_cast<APIType
>(lhs));
263 lhs = std::move(
static_cast<APIType
>(rhs));
264 rhs = std::move(tmp);
267 template <
typename OArray, ComponentIdType OSize>
273 std::is_same<APIType, OAPIType>::value,
"Cannot swap components with different types.");
275 APIType tmp = std::move(
static_cast<APIType
>(lhs));
276 lhs = std::move(
static_cast<APIType
>(rhs));
277 rhs = std::move(tmp);
282 APIType tmp = std::move(
static_cast<APIType
>(lhs));
283 lhs = std::move(rhs);
284 rhs = std::move(tmp);
289 APIType tmp = std::move(lhs);
290 lhs = std::move(
static_cast<APIType
>(rhs));
291 rhs = std::move(tmp);
297 const APIType newVal = *
this + 1;
305 const APIType retVal = *
this;
313 const APIType newVal = *
this - 1;
321 const APIType retVal = *
this;
326#define VTK_REF_OP_OVERLOADS(Op, ImplOp) \
327 friend VTK_ITER_INLINE ComponentReference operator Op( \
328 ComponentReference lhs, APIType val) noexcept \
330 const APIType newVal = lhs ImplOp val; \
334 friend VTK_ITER_INLINE ComponentReference operator Op( \
335 ComponentReference lhs, ComponentReference val) noexcept \
337 const APIType newVal = lhs ImplOp val; \
341 friend VTK_ITER_INLINE APIType& operator Op(APIType& lhs, ComponentReference val) noexcept \
343 const APIType newVal = lhs ImplOp val; \
353#undef VTK_REF_OP_OVERLOADS
355 friend struct ConstComponentReference<ArrayType, TupleSize>;
356 friend struct ComponentIterator<ArrayType, TupleSize>;
362 this->
Array = o.Array;
376template <
typename ArrayType, ComponentIdType TupleSize>
411 "Const component iterator at invalid tuple id.");
413 "Const component iterator at invalid component id.");
418 : Array{ o.GetArray() }
419 , NumComps{ o.GetNumComps() }
420 , TupleId{ o.GetTupleId() }
421 , ComponentId{ o.GetComponentId() }
434 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
435 "Const component iterator at invalid component id.");
443 this->ComponentId++ };
450 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
451 "Const component iterator at invalid component id.");
459 this->ComponentId-- };
465 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId + i };
471 return reference{ this->Array, this->NumComps, this->TupleId, this->ComponentId };
474#define VTK_TMP_MAKE_OPERATOR(OP) \
475 friend VTK_ITER_INLINE bool operator OP( \
476 const ConstComponentIterator& lhs, const ConstComponentIterator& rhs) noexcept \
478 VTK_ITER_ASSERT(lhs.Array == rhs.Array, "Mismatched arrays in iterator comparison."); \
479 VTK_ITER_ASSERT(lhs.TupleId == rhs.TupleId, "Mismatched tuple ids in iterator comparison."); \
480 VTK_ITER_ASSUME(lhs.NumComps.value > 0); \
481 VTK_ITER_ASSUME(lhs.NumComps.value == rhs.NumComps.value); \
482 return lhs.ComponentId OP rhs.ComponentId; \
492#undef VTK_TMP_MAKE_OPERATOR
497 this->ComponentId += offset;
498 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
499 "Const component iterator at invalid component id.");
518 this->ComponentId -= offset;
519 VTK_ITER_ASSERT(this->ComponentId >= 0 && this->ComponentId <= this->NumComps.value,
520 "Const component iterator at invalid component id.");
533 VTK_ITER_ASSERT(it1.Array == it2.Array,
"Cannot do math with iterators from different arrays.");
535 "Cannot do math with component iterators from different "
537 return it1.ComponentId - it2.ComponentId;
544 VTK_ITER_ASSERT(lhs.Array == rhs.Array,
"Cannot swap iterators from different arrays.");
547 swap(lhs.TupleId, rhs.TupleId);
548 swap(lhs.ComponentId, rhs.ComponentId);
552 mutable ArrayType* Array;
553 NumCompsType NumComps;
560template <
typename ArrayType, ComponentIdType TupleSize>
583 :
Ref(array, numComps, tupleId, comp)
588 "Component iterator at invalid tuple id.");
590 comp >= 0 && comp <= numComps.value,
"Component iterator at invalid component id.");
599 this->
Ref.CopyReference(o.Ref);
606 ++this->
Ref.ComponentId;
607 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
608 "Component iterator at invalid component id.");
616 this->
Ref.ComponentId++ };
622 --this->
Ref.ComponentId;
623 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
624 "Component iterator at invalid component id.");
632 this->
Ref.ComponentId-- };
639 this->
Ref.ComponentId + i };
648#define VTK_TMP_MAKE_OPERATOR(OP) \
649 friend VTK_ITER_INLINE bool operator OP( \
650 const ComponentIterator& lhs, const ComponentIterator& rhs) noexcept \
653 lhs.GetArray() == rhs.GetArray(), "Mismatched arrays in iterator comparison."); \
655 lhs.GetTupleId() == rhs.GetTupleId(), "Mismatched tuple ids in iterator comparison."); \
656 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
657 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
658 return lhs.GetComponentId() OP rhs.GetComponentId(); \
668#undef VTK_TMP_MAKE_OPERATOR
673 this->
Ref.ComponentId += offset;
674 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
675 "Component iterator at invalid component id.");
683 it.GetComponentId() + offset };
690 it.GetComponentId() + offset };
696 this->
Ref.ComponentId -= offset;
697 VTK_ITER_ASSERT(this->
Ref.ComponentId >= 0 && this->Ref.ComponentId <= this->Ref.NumComps.value,
698 "Component iterator at invalid component id.");
706 it.GetComponentId() - offset };
713 "Cannot do math with component iterators from different "
716 "Cannot do math with component iterators from different "
718 return it1.GetComponentId() - it2.GetComponentId();
725 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
728 swap(lhs.GetTupleId(), rhs.GetTupleId());
729 swap(lhs.GetComponentId(), rhs.GetComponentId());
750template <
typename ArrayType, ComponentIdType TupleSize>
783 "Const tuple reference at invalid tuple id.");
816 template <
typename OArrayType, ComponentIdType OSize>
823 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
826 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
828 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
832 template <
typename OArrayType, ComponentIdType OSize>
839 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
842 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
844 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
848 template <
typename OArrayType, ComponentIdType OSize>
855 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
858 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
860 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
864 template <
typename OArrayType, ComponentIdType OSize>
871 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
874 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
876 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
879 template <
typename OArrayType, ComponentIdType OSize>
882 return !(*
this == o);
885 template <
typename OArrayT, ComponentIdType OSize>
888 return !(*
this == o);
940template <
typename ArrayType, ComponentIdType TupleSize>
974 "Tuple reference at invalid tuple id.");
1011 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1016 template <
typename OArrayType, ComponentIdType OSize>
1023 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1026 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1028 std::copy_n(other.cbegin(), OSize, this->begin());
1033 template <
typename OArrayType, ComponentIdType OSize>
1040 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1043 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1045 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1050 template <
typename OArrayType, ComponentIdType OSize>
1057 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1060 static_assert(TupleSize == OSize,
"Cannot assign tuples with different sizes.");
1062 std::copy_n(other.cbegin(), OSize, this->begin());
1067 template <
typename OArrayType, ComponentIdType OSize>
1074 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when assigning tuples.");
1077 other.size() == this->NumComps.value,
"Cannot assign tuples with different sizes.");
1079 std::copy_n(other.cbegin(), this->NumComps.value, this->begin());
1084 template <
typename OArrayType, ComponentIdType OSize>
1091 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1094 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1096 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1100 template <
typename OArrayType, ComponentIdType OSize>
1107 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1110 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1112 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1116 template <
typename OArrayType, ComponentIdType OSize>
1123 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1126 static_assert(TupleSize == OSize,
"Cannot compare tuples with different sizes.");
1128 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1132 template <
typename OArrayType, ComponentIdType OSize>
1139 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when comparing tuples.");
1142 other.size() == this->NumComps.value,
"Cannot compare tuples with different sizes.");
1144 return std::equal(this->
cbegin(), this->
cend(), other.cbegin());
1147 template <
typename OArrayType, ComponentIdType OSize>
1150 return !(*
this == o);
1153 template <
typename OArray, ComponentIdType OSize>
1156 return !(*
this == o);
1160 template <
typename OArrayType, ComponentIdType OSize>
1167 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1170 static_assert(TupleSize == OSize,
"Cannot swap tuples with different sizes.");
1172 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1176 template <
typename OArrayType, ComponentIdType OSize>
1183 (std::is_convertible<OAPIType, APIType>{}),
"Incompatible types when swapping tuples.");
1186 other.size() == this->NumComps.value,
"Cannot swap tuples with different sizes.");
1188 std::swap_ranges(this->
begin(), this->
end(), other.begin());
1193 template <
typename OArray, ComponentIdType OSize>
1267template <
typename ArrayType, ComponentIdType TupleSize>
1288 : Ref(array, numComps, tupleId)
1292 VTK_ITER_ASSERT(tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
1293 "Const tuple iterator at invalid tuple id.");
1307 this->Ref.CopyReference(o.Ref);
1314 ++this->Ref.TupleId;
1316 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1317 "Const tuple iterator at invalid component id.");
1324 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId++ };
1330 --this->Ref.TupleId;
1332 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1333 "Const tuple iterator at invalid component id.");
1340 return ConstTupleIterator{ this->Ref.Array, this->Ref.NumComps, this->Ref.TupleId-- };
1346 return reference{ this->GetArray(), this->GetNumComps(), this->GetTupleId() + i };
1355#define VTK_TMP_MAKE_OPERATOR(OP) \
1356 friend VTK_ITER_INLINE bool operator OP( \
1357 const ConstTupleIterator& lhs, const ConstTupleIterator& rhs) noexcept \
1360 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1361 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1362 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1363 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1373#undef VTK_TMP_MAKE_OPERATOR
1378 this->Ref.TupleId += offset;
1380 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1381 "Const tuple iterator at invalid component id.");
1388 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1394 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() + offset };
1400 this->Ref.TupleId -= offset;
1402 this->Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1403 "Const tuple iterator at invalid component id.");
1410 return ConstTupleIterator{ it.GetArray(), it.GetNumComps(), it.GetTupleId() - offset };
1417 "Cannot do math with tuple iterators from different "
1419 return it1.GetTupleId() - it2.GetTupleId();
1426 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1429 swap(lhs.GetTupleId(), rhs.GetTupleId());
1434 ArrayType* GetArray() const noexcept {
return this->Ref.Array; }
1436 ArrayType*& GetArray() noexcept {
return this->Ref.Array; }
1438 NumCompsType GetNumComps() const noexcept {
return this->Ref.NumComps; }
1440 NumCompsType& GetNumComps() noexcept {
return this->Ref.NumComps; }
1442 TupleIdType GetTupleId() const noexcept {
return this->Ref.TupleId; }
1444 TupleIdType& GetTupleId() noexcept {
return this->Ref.TupleId; }
1446 ConstTupleReference<ArrayType, TupleSize> Ref;
1451template <
typename ArrayType, ComponentIdType TupleSize>
1472 :
Ref(array, numComps, tupleId)
1477 tupleId >= 0 && tupleId <= array->GetNumberOfTuples(),
"Tuple iterator at invalid tuple id.");
1486 this->
Ref.CopyReference(o.Ref);
1493 ++this->
Ref.TupleId;
1495 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1496 "Tuple iterator at invalid component id.");
1509 --this->
Ref.TupleId;
1511 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1512 "Tuple iterator at invalid component id.");
1534#define VTK_TMP_MAKE_OPERATOR(OP) \
1535 friend VTK_ITER_INLINE bool operator OP( \
1536 const TupleIterator& lhs, const TupleIterator& rhs) noexcept \
1539 lhs.GetArray() == rhs.GetArray(), "Cannot compare iterators from different arrays."); \
1540 VTK_ITER_ASSUME(lhs.GetNumComps().value > 0); \
1541 VTK_ITER_ASSUME(lhs.GetNumComps().value == rhs.GetNumComps().value); \
1542 return lhs.GetTupleId() OP rhs.GetTupleId(); \
1552#undef VTK_TMP_MAKE_OPERATOR
1557 this->
Ref.TupleId += offset;
1559 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1560 "Tuple iterator at invalid component id.");
1579 this->
Ref.TupleId -= offset;
1581 this->
Ref.TupleId >= 0 && this->Ref.TupleId <= this->Ref.Array->GetNumberOfTuples(),
1582 "Tuple iterator at invalid component id.");
1596 "Cannot do math with tuple iterators from different "
1598 return it1.GetTupleId() - it2.GetTupleId();
1605 lhs.GetArray() == rhs.GetArray(),
"Cannot swap iterators from different arrays.");
1608 swap(lhs.GetTupleId(), rhs.GetTupleId());
1633template <
typename ArrayTypeT, ComponentIdType TupleSize>
1670 , BeginTuple(beginTuple)
1671 , EndTuple(endTuple)
1673 assert(this->Array);
1674 assert(beginTuple >= 0 && beginTuple <= endTuple);
1675 assert(endTuple >= 0 && endTuple <= this->Array->GetNumberOfTuples());
1681 const TupleIdType realBegin = this->BeginTuple + beginTuple;
1682 const TupleIdType realEnd = endTuple >= 0 ? this->BeginTuple + endTuple : this->EndTuple;
1684 return TupleRange{ this->Array, realBegin, realEnd };
1717 return reference{ this->Array, this->NumComps, this->BeginTuple + i };
1723 return const_reference{ this->Array, this->NumComps, this->BeginTuple + i };
1737 NumCompsType NumComps{};
1743template <
typename ArrayType, ComponentIdType TupleSize>
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
VTK_ITER_INLINE TupleReference * operator->() 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 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 TupleReference(TupleReference &&)=default
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)