VTK  9.2.5
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 =========================================================================*/
141 #ifndef vtkInformationVector_h
142 #define vtkInformationVector_h
143 
144 #include "vtkCommonCoreModule.h" // For export macro
145 #include "vtkObject.h"
146 
147 class vtkInformation;
148 class vtkInformationVectorInternals;
149 
150 class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
151 {
152 public:
155  void PrintSelf(ostream& os, vtkIndent indent) override;
156 
158 
164  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
167 
169 
178 
180 
185  void Remove(int idx);
187 
189 
192  bool UsesGarbageCollector() const override { return true; }
194 
202  void Copy(vtkInformationVector* from, int deep = 0);
203 
204 protected:
207 
208  // Internal implementation details.
209  vtkInformationVectorInternals* Internal;
210 
212 
213  // Garbage collection support.
215 
216 private:
218  void operator=(const vtkInformationVector&) = delete;
219 };
220 
221 #endif
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
void SetNumberOfInformationObjects(int n)
Get/Set the number of information objects in the vector.
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
vtkInformation * GetInformationObject(int index)
Get/Set the vtkInformation instance stored at the given index 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.
static vtkInformationVector * New()
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:82
@ info
Definition: vtkX3D.h:382
@ index
Definition: vtkX3D.h:252