VTK  9.4.20241226
vtkInformationIterator.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
18#ifndef vtkInformationIterator_h
19#define vtkInformationIterator_h
20
21#include "vtkCommonCoreModule.h" // For export macro
22#include "vtkObject.h"
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkInformation;
27class vtkInformationIteratorInternals;
28
29class VTKCOMMONCORE_EXPORT vtkInformationIterator : public vtkObject
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
41 vtkGetObjectMacro(Information, vtkInformation);
43
51
55 void InitTraversal() { this->GoToFirstItem(); }
56
60 virtual void GoToFirstItem();
61
65 virtual void GoToNextItem();
66
71 virtual int IsDoneWithTraversal();
72
78
79protected:
82
84 vtkInformationIteratorInternals* Internal;
85
87
88private:
90 void operator=(const vtkInformationIterator&) = delete;
91};
92
93VTK_ABI_NAMESPACE_END
94#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Iterates over keys of an information object.
void SetInformationWeak(vtkInformation *)
Set the function to iterate over.
virtual void GoToFirstItem()
Move the iterator to the beginning of the collection.
virtual void GoToNextItem()
Move the iterator to the next item in the collection.
void SetInformation(vtkInformation *)
Set/Get the information to iterator over.
static vtkInformationIterator * New()
virtual int IsDoneWithTraversal()
Test whether the iterator is currently pointing to a valid item.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkInformationIterator() override
virtual vtkInformationKey * GetCurrentKey()
Get the current item.
vtkInformationIteratorInternals * Internal
void InitTraversal()
Move the iterator to the beginning of the collection.
Superclass for vtkInformation keys.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition vtkObject.h:162