32 #ifndef vtkTypedDataArrayIterator_h
33 #define vtkTypedDataArrayIterator_h
39 template<
class Scalar>
50 : Data(NULL), Index(0) {}
68 std::swap(this->Data, o.Data);
69 std::swap(this->Index, o.Index);
75 return this->Data == o.Data && this->Index == o.Index;
80 return this->Data == o.Data && this->Index != o.Index;
85 return this->Data == o.Data && this->Index > o.Index;
90 return this->Data == o.Data && this->Index >= o.Index;
93 bool operator<(const vtkTypedDataArrayIterator<Scalar> &o)
const
95 return this->Data == o.Data && this->Index < o.Index;
98 bool operator<=(const vtkTypedDataArrayIterator<Scalar> &o)
const
100 return this->Data == o.Data && this->Index <= o.Index;
105 return this->Data->GetValueReference(this->Index);
110 return &this->Data->GetValueReference(this->Index);
115 return this->Data->GetValueReference(this->Index + n);
152 return this->Index - other.Index;
172 #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