VTK
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:
38  static vtkInformationVector* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
49  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; }
50  void SetNumberOfInformationObjects(int n);
52 
54 
60  void SetInformationObject(int index, vtkInformation* info);
61  vtkInformation* GetInformationObject(int index);
63 
65 
68  void Append(vtkInformation* info);
69  void Remove(vtkInformation* info);
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:
92  ~vtkInformationVector() override;
93 
94  // Internal implementation details.
95  vtkInformationVectorInternals* Internal;
96 
98 
99  // Garbage collection support.
100  void ReportReferences(vtkGarbageCollector*) override;
101 
102 private:
104  void operator=(const vtkInformationVector&) = delete;
105 };
106 
107 #endif
vtkObjectBase::Register
virtual void Register(vtkObjectBase *o)
Increase the reference count (mark as used by another object).
vtkInformationVector::Internal
vtkInformationVectorInternals * Internal
Definition: vtkInformationVector.h:95
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkObjectBase::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *)
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:53
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:63
vtkInformationVector::NumberOfInformationObjects
int NumberOfInformationObjects
Definition: vtkInformationVector.h:97
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:94
vtkObject.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkInformationVector::GetNumberOfInformationObjects
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
Definition: vtkInformationVector.h:49
vtkX3D::index
Definition: vtkX3D.h:252
vtkObjectBase::UnRegister
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).