VTK  9.3.20240329
vtkArrayIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
34 #ifndef vtkArrayIterator_h
35 #define vtkArrayIterator_h
36 
37 #include "vtkCommonCoreModule.h" // For export macro
38 #include "vtkObject.h"
39 VTK_ABI_NAMESPACE_BEGIN
40 class vtkAbstractArray;
41 class VTKCOMMONCORE_EXPORT vtkArrayIterator : public vtkObject
42 {
43 public:
44  vtkTypeMacro(vtkArrayIterator, vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
54  virtual void Initialize(vtkAbstractArray* array) = 0;
55 
60  virtual int GetDataType() const = 0;
61 
62 protected:
64  ~vtkArrayIterator() override;
65 
66 private:
67  vtkArrayIterator(const vtkArrayIterator&) = delete;
68  void operator=(const vtkArrayIterator&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
Abstract superclass for all arrays.
Abstract superclass to iterate over elements in an vtkAbstractArray.
virtual int GetDataType() const =0
Get the data type from the underlying array.
virtual void Initialize(vtkAbstractArray *array)=0
Set the array this iterator will iterate over.
~vtkArrayIterator() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162