33 #ifndef vtkTypedDataArrayIterator_h
34 #define vtkTypedDataArrayIterator_h
40 template<
class Scalar>
51 : Data(nullptr), Index(0) {}
69 std::swap(this->Data, o.Data);
70 std::swap(this->Index, o.Index);
76 return this->Data == o.Data && this->Index == o.Index;
81 return this->Data == o.Data && this->Index != o.Index;
86 return this->Data == o.Data && this->Index > o.Index;
91 return this->Data == o.Data && this->Index >= o.Index;
96 return this->Data == o.Data && this->Index < o.Index;
101 return this->Data == o.Data && this->Index <= o.Index;
106 return this->Data->GetValueReference(this->Index);
111 return &this->Data->GetValueReference(this->Index);
116 return this->Data->GetValueReference(this->Index + n);
153 return this->Index - other.Index;
173 #endif // vtkTypedDataArrayIterator_h