33#ifndef vtkTypedDataArrayIterator_h
34#define vtkTypedDataArrayIterator_h
40template <
class Scalar>
70 std::swap(this->Data, o.Data);
71 std::swap(this->Index, o.Index);
77 return this->Data == o.Data && this->Index == o.Index;
82 return this->Data == o.Data && this->Index != o.Index;
87 return this->Data == o.Data && this->Index > o.Index;
92 return this->Data == o.Data && this->Index >= o.Index;
97 return this->Data == o.Data && this->Index < o.Index;
102 return this->Data == o.Data && this->Index <= o.Index;
105 Scalar&
operator*() {
return this->Data->GetValueReference(this->Index); }
107 Scalar*
operator->()
const {
return &this->Data->GetValueReference(this->Index); }
111 return this->Data->GetValueReference(this->Index + n);
148 return this->Index - other.Index;
STL-style random access iterator for vtkTypedDataArrays.
bool operator>=(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator & operator--()
vtkTypedDataArrayIterator & operator+=(const difference_type &n)
vtkTypedDataArrayIterator & operator-=(const difference_type &n)
vtkTypedDataArrayIterator operator++(int)
vtkTypedDataArrayIterator(vtkTypedDataArray< Scalar > *arr, const vtkIdType index=0)
vtkTypedDataArrayIterator operator+(const difference_type &n) const
vtkTypedDataArrayIterator operator--(int)
Scalar * operator->() const
bool operator!=(const vtkTypedDataArrayIterator< Scalar > &o) const
Scalar & operator[](const difference_type &n)
vtkTypedDataArrayIterator(const vtkTypedDataArrayIterator &o)
bool operator==(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator()
bool operator<=(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator operator-(const difference_type &n) const
bool operator<(const vtkTypedDataArrayIterator< Scalar > &o) const
difference_type operator-(const vtkTypedDataArrayIterator &other) const
bool operator>(const vtkTypedDataArrayIterator< Scalar > &o) const
vtkTypedDataArrayIterator & operator++()
std::ptrdiff_t difference_type
vtkTypedDataArrayIterator & operator=(vtkTypedDataArrayIterator< Scalar > o)
std::random_access_iterator_tag iterator_category
Extend vtkDataArray with abstract type-specific API.