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=========================================================================*/
135#ifndef vtkInformationVector_h
136#define vtkInformationVector_h
137
138#include "vtkCommonCoreModule.h" // For export macro
139#include "vtkObject.h"
140
141class vtkInformation;
142class vtkInformationVectorInternals;
143
144class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
145{
146public:
149 void PrintSelf(ostream& os, vtkIndent indent) override;
150
152
158 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
161
163
172
174
179 void Remove(int idx);
181
183
186 void Register(vtkObjectBase* o) override;
187 void UnRegister(vtkObjectBase* o) override;
189
197 void Copy(vtkInformationVector* from, int deep = 0);
198
199protected:
202
203 // Internal implementation details.
204 vtkInformationVectorInternals* Internal;
205
207
208 // Garbage collection support.
210
211private:
213 void operator=(const vtkInformationVector&) = delete;
214};
215
216#endif
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:113
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:73
@ info
Definition: vtkX3D.h:382
@ index
Definition: vtkX3D.h:252