VTK  9.4.20241117
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
129#ifndef vtkInformationVector_h
130#define vtkInformationVector_h
131
132#include "vtkCommonCoreModule.h" // For export macro
133#include "vtkObject.h"
134
135VTK_ABI_NAMESPACE_BEGIN
136class vtkInformation;
137class vtkInformationVectorInternals;
138
139class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
140{
141public:
144 void PrintSelf(ostream& os, vtkIndent indent) override;
145
147
153 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
156
158
164 void SetInformationObject(int index, vtkInformation* info);
167
169
174 void Remove(int idx);
176
178
181 bool UsesGarbageCollector() const override { return true; }
183
191 void Copy(vtkInformationVector* from, vtkTypeBool deep = 0);
192
193protected:
196
197 // Internal implementation details.
198 vtkInformationVectorInternals* Internal;
199
201
202 // Garbage collection support.
204
205private:
207 void operator=(const vtkInformationVector&) = delete;
208};
209
210VTK_ABI_NAMESPACE_END
211#endif
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:108
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 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.
abstract base class for most VTK objects
Definition vtkObject.h:162
int vtkTypeBool
Definition vtkABI.h:64