VTK  9.4.20241108
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"
39VTK_ABI_NAMESPACE_BEGIN
41class VTKCOMMONCORE_EXPORT vtkArrayIterator : public vtkObject
42{
43public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
54 virtual void Initialize(vtkAbstractArray* array) = 0;
55
60 virtual int GetDataType() const = 0;
61
62protected:
65
66private:
67 vtkArrayIterator(const vtkArrayIterator&) = delete;
68 void operator=(const vtkArrayIterator&) = delete;
69};
70
71VTK_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