VTK  9.2.6
vtkInformationVector.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInformationVector.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=========================================================================*/
26#ifndef vtkInformationVector_h
27#define vtkInformationVector_h
28
29#include "vtkCommonCoreModule.h" // For export macro
30#include "vtkObject.h"
31
32class vtkInformation;
33class vtkInformationVectorInternals;
34
35class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
52
54
60 void SetInformationObject(int index, vtkInformation* info);
63
65
70 void Remove(int idx);
72
74
77 bool UsesGarbageCollector() const override { return true; }
79
87 void Copy(vtkInformationVector* from, int deep = 0);
88
89protected:
92
93 // Internal implementation details.
94 vtkInformationVectorInternals* Internal;
95
97
98 // Garbage collection support.
100
101private:
103 void operator=(const vtkInformationVector&) = delete;
104};
105
106#endif
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
void SetNumberOfInformationObjects(int n)
Get/Set the number of information objects in the vector.
static vtkInformationVector * New()
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
void ReportReferences(vtkGarbageCollector *) override
void Remove(vtkInformation *info)
Append/Remove an information object.
~vtkInformationVector() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInformationObject(int index, vtkInformation *info)
Get/Set the vtkInformation instance stored at the given index in the vector.
vtkInformationVectorInternals * Internal
void Copy(vtkInformationVector *from, int deep=0)
Copy all information entries from the given vtkInformation instance.
vtkInformation * GetInformationObject(int index)
Get/Set the vtkInformation instance stored at the given index in the vector.
bool UsesGarbageCollector() const override
Initiate garbage collection when a reference is removed.
void Remove(int idx)
Append/Remove an information object.
void Append(vtkInformation *info)
Append/Remove an information object.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition vtkObject.h:57