VTK  9.1.0
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
63
65
70 void Remove(int idx);
72
74
77 void Register(vtkObjectBase* o) override;
78 void UnRegister(vtkObjectBase* o) override;
80
88 void Copy(vtkInformationVector* from, int deep = 0);
89
90protected:
93
94 // Internal implementation details.
95 vtkInformationVectorInternals* Internal;
96
98
99 // Garbage collection support.
101
102private:
104 void operator=(const vtkInformationVector&) = delete;
105};
106
107#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.
void Register(vtkObjectBase *o) override
Initiate garbage collection when a reference is removed.
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.
void Remove(int idx)
Append/Remove an information object.
void Append(vtkInformation *info)
Append/Remove an information object.
void UnRegister(vtkObjectBase *o) override
Initiate garbage collection when a reference is removed.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
abstract base class for most VTK objects
Definition: vtkObject.h:63
@ info
Definition: vtkX3D.h:382
@ index
Definition: vtkX3D.h:252