VTK  9.2.6
vtkArrayIterator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArrayIterator.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
46#ifndef vtkArrayIterator_h
47#define vtkArrayIterator_h
48
49#include "vtkCommonCoreModule.h" // For export macro
50#include "vtkObject.h"
52class VTKCOMMONCORE_EXPORT vtkArrayIterator : public vtkObject
53{
54public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
65 virtual void Initialize(vtkAbstractArray* array) = 0;
66
71 virtual int GetDataType() const = 0;
72
73protected:
76
77private:
78 vtkArrayIterator(const vtkArrayIterator&) = delete;
79 void operator=(const vtkArrayIterator&) = delete;
80};
81
82#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:40
abstract base class for most VTK objects
Definition: vtkObject.h:63