VTK  9.3.0
vtkInformationVector.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkInformationVector_h
21 #define vtkInformationVector_h
22 
23 #include "vtkCommonCoreModule.h" // For export macro
24 #include "vtkObject.h"
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkInformation;
28 class vtkInformationVectorInternals;
29 
30 class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
44  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
47 
49 
58 
60 
65  void Remove(int idx);
67 
69 
72  bool UsesGarbageCollector() const override { return true; }
74 
82  void Copy(vtkInformationVector* from, vtkTypeBool deep = 0);
83 
84 protected:
87 
88  // Internal implementation details.
89  vtkInformationVectorInternals* Internal;
90 
92 
93  // Garbage collection support.
95 
96 private:
98  void operator=(const vtkInformationVector&) = delete;
99 };
100 
101 VTK_ABI_NAMESPACE_END
102 #endif
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:29
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.
void Copy(vtkInformationVector *from, vtkTypeBool deep=0)
Copy all information entries from the given vtkInformation instance.
vtkInformationVectorInternals * Internal
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:52
@ info
Definition: vtkX3D.h:376
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64