VTK  9.6.1
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
19
20#ifndef vtkInformationVector_h
21#define vtkInformationVector_h
22
23#include "vtkCommonCoreModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25
26#include "vtkObject.h"
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkInformation;
30class vtkInformationVectorInternals;
31
32class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkInformationVector : public vtkObject
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
49
51
57 void SetInformationObject(int index, vtkInformation* info);
60
62
67 void Remove(int idx);
69
71
74 bool UsesGarbageCollector() const override { return true; }
76
84 void Copy(vtkInformationVector* from, vtkTypeBool deep = 0);
85
86protected:
89
90 // Internal implementation details.
91 vtkInformationVectorInternals* Internal;
92
94
95 // Garbage collection support.
97
98private:
100 void operator=(const vtkInformationVector&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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 Copy(vtkInformationVector *from, vtkTypeBool deep=0)
Copy all information entries from the given vtkInformation instance.
vtkInformationVectorInternals * Internal
vtkInformation * GetInformationObject(int index)
Get/Set the vtkInformation instance stored at the given index in the vector.
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.
friend class vtkGarbageCollector
Some classes need to clear the reference counts manually due to the way they work.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO