VTK  9.0.1
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 
32 class vtkInformation;
33 class vtkInformationVectorInternals;
34 
35 class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
36 {
37 public:
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 
90 protected:
93 
94  // Internal implementation details.
95  vtkInformationVectorInternals* Internal;
96 
98 
99  // Garbage collection support.
101 
102 private:
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)
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
vtkInformation * GetInformationObject(int index)
void ReportReferences(vtkGarbageCollector *) override
void Remove(vtkInformation *info)
~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.
static vtkInformationVector * New()
void Remove(int idx)
void Append(vtkInformation *info)
Append/Remove an information object.
void UnRegister(vtkObjectBase *o) override
Decrease the reference count (release by another object).
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObjectBase.h:64
abstract base class for most VTK objects
Definition: vtkObject.h:54
@ info
Definition: vtkX3D.h:382
@ index
Definition: vtkX3D.h:252