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