VTK  9.6.20260220
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
30
31#ifndef vtkArrayIterator_h
32#define vtkArrayIterator_h
33
34#include "vtkCommonCoreModule.h" // For export macro
35#include "vtkObject.h"
36VTK_ABI_NAMESPACE_BEGIN
38class VTK_DEPRECATED_IN_9_7_0("Use vtkArrayDispatch") VTKCOMMONCORE_EXPORT vtkArrayIterator
39 : public vtkObject
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
52 virtual void Initialize(vtkAbstractArray* array) = 0;
53
58 virtual int GetDataType() const = 0;
59
60protected:
63
64private:
65 vtkArrayIterator(const vtkArrayIterator&) = delete;
66 void operator=(const vtkArrayIterator&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
Abstract superclass for all arrays.
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
#define VTK_DEPRECATED_IN_9_7_0(reason)