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;
99 return this->Data == o.Data && this->Index < o.Index;
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