VTK  9.2.6
vtkInformationIterator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInformationIterator.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=========================================================================*/
29
30#ifndef vtkInformationIterator_h
31#define vtkInformationIterator_h
32
33#include "vtkCommonCoreModule.h" // For export macro
34#include "vtkObject.h"
35
36class vtkInformation;
38class vtkInformationIteratorInternals;
39
40class VTKCOMMONCORE_EXPORT vtkInformationIterator : public vtkObject
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
52 vtkGetObjectMacro(Information, vtkInformation);
54
62
66 void InitTraversal() { this->GoToFirstItem(); }
67
71 virtual void GoToFirstItem();
72
76 virtual void GoToNextItem();
77
82 virtual int IsDoneWithTraversal();
83
89
90protected:
93
95 vtkInformationIteratorInternals* Internal;
96
98
99private:
101 void operator=(const vtkInformationIterator&) = delete;
102};
103
104#endif
a simple class to control print indentation
Definition vtkIndent.h:40
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.
friend class vtkInformationKey
Some classes need to clear the reference counts manually due to the way they work.