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 =========================================================================*/
32 #ifndef vtkInformationVector_h
33 #define vtkInformationVector_h
34 
35 #include "vtkCommonCoreModule.h" // For export macro
36 #include "vtkObject.h"
37 
38 class vtkInformation;
39 class vtkInformationVectorInternals;
40 
41 class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
42 {
43 public:
44  static vtkInformationVector *New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
55  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; };
56  void SetNumberOfInformationObjects(int n);
58 
60 
66  void SetInformationObject(int index, vtkInformation* info);
67  vtkInformation* GetInformationObject(int index);
69 
71 
74  void Append(vtkInformation* info);
75  void Remove(vtkInformation* info);
76  void Remove(int idx);
78 
80 
83  void Register(vtkObjectBase* o) override;
84  void UnRegister(vtkObjectBase* o) override;
86 
94  void Copy(vtkInformationVector* from, int deep=0);
95 
96 protected:
98  ~vtkInformationVector() override;
99 
100  // Internal implementation details.
101  vtkInformationVectorInternals* Internal;
102 
104 
105  // Garbage collection support.
106  void ReportReferences(vtkGarbageCollector*) override;
107 private:
109  void operator=(const vtkInformationVector&) = delete;
110 };
111 
112 #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:101
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
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:59
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:65
vtkInformationVector::NumberOfInformationObjects
int NumberOfInformationObjects
Definition: vtkInformationVector.h:103
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
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:99
vtkObject.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkInformationVector::GetNumberOfInformationObjects
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
Definition: vtkInformationVector.h:55
vtkX3D::index
Definition: vtkX3D.h:246
vtkObjectBase::UnRegister
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).