36 #ifndef vtkTypedDataArrayIterator_h 37 #define vtkTypedDataArrayIterator_h 43 template<
class Scalar>
54 : Data(nullptr), Index(0) {}
72 std::swap(this->Data, o.Data);
73 std::swap(this->Index, o.Index);
79 return this->Data == o.Data && this->Index == o.Index;
84 return this->Data == o.Data && this->Index != o.Index;
89 return this->Data == o.Data && this->Index > o.Index;
94 return this->Data == o.Data && this->Index >= o.Index;
97 bool operator<(const vtkTypedDataArrayIterator<Scalar> &o)
const 99 return this->Data == o.Data && this->Index < o.Index;
102 bool operator<=(const vtkTypedDataArrayIterator<Scalar> &o)
const 104 return this->Data == o.Data && this->Index <= o.Index;
109 return this->Data->GetValueReference(this->Index);
114 return &this->Data->GetValueReference(this->Index);
119 return this->Data->GetValueReference(this->Index + n);
156 return this->Index - other.Index;
176 #endif // vtkTypedDataArrayIterator_h bool operator>=(const vtkTypedDataArrayIterator< Scalar > &o) const
bool operator>(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator & operator=(vtkTypedDataArrayIterator< Scalar > o)
bool operator==(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator & operator--()
vtkTypedDataArrayIterator & operator+=(const difference_type &n)
vtkTypedDataArrayIterator(const vtkTypedDataArrayIterator &o)
vtkTypedDataArrayIterator & operator++()
bool operator!=(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator & operator-=(const difference_type &n)
vtkTypedDataArrayIterator(vtkTypedDataArray< Scalar > *arr, const vtkIdType index=0)
vtkTypedDataArrayIterator operator+(const difference_type &n) const
vtkTypedDataArrayIterator operator--(int)
std::random_access_iterator_tag iterator_category
vtkTypedDataArrayIterator()
Scalar & operator[](const difference_type &n)
std::ptrdiff_t difference_type
Scalar * operator->() const
difference_type operator-(const vtkTypedDataArrayIterator &other) const
Extend vtkDataArray with abstract type-specific API.
vtkTypedDataArrayIterator operator++(int)
STL-style random access iterator for vtkTypedDataArrays.
vtkTypedDataArrayIterator operator-(const difference_type &n) const