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=========================================================================*/
35#ifndef vtkInformationVector_h
36#define vtkInformationVector_h
37
38#include "vtkCommonCoreModule.h" // For export macro
39#include "vtkObject.h"
40
41class vtkInformation;
42class vtkInformationVectorInternals;
43
44class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
58 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
61
63
72
74
79 void Remove(int idx);
81
83
86 void Register(vtkObjectBase* o) override;
87 void UnRegister(vtkObjectBase* o) override;
89
97 void Copy(vtkInformationVector* from, int deep = 0);
98
99protected:
102
103 // Internal implementation details.
104 vtkInformationVectorInternals* Internal;
105
107
108 // Garbage collection support.
110
111private:
113 void operator=(const vtkInformationVector&) = delete;
114};
115
116#endif
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:43
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:79
abstract base class for most VTK objects
Definition: vtkObject.h:63
@ info
Definition: vtkX3D.h:382
@ index
Definition: vtkX3D.h:252