VTK  9.5.20250904
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 "vtkWrappingHints.h" // For VTK_MARSHALAUTO
134
135#include "vtkObject.h"
136
137VTK_ABI_NAMESPACE_BEGIN
138class vtkInformation;
139class vtkInformationVectorInternals;
140
141class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkInformationVector : public vtkObject
142{
143public:
146 void PrintSelf(ostream& os, vtkIndent indent) override;
147
149
155 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
158
160
166 void SetInformationObject(int index, vtkInformation* info);
169
171
176 void Remove(int idx);
178
180
183 bool UsesGarbageCollector() const override { return true; }
185
193 void Copy(vtkInformationVector* from, vtkTypeBool deep = 0);
194
195protected:
198
199 // Internal implementation details.
200 vtkInformationVectorInternals* Internal;
201
203
204 // Garbage collection support.
206
207private:
209 void operator=(const vtkInformationVector&) = delete;
210};
211
212VTK_ABI_NAMESPACE_END
213#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
#define VTK_MARSHALAUTO