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
38class vtkInformation;
39class vtkInformationVectorInternals;
40
41class VTKCOMMONCORE_EXPORT vtkInformationVector : public vtkObject
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47
49
55 int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; };
58
60
69
71
76 void Remove(int idx);
78
80
83 void Register(vtkObjectBase* o) VTK_OVERRIDE;
84 void UnRegister(vtkObjectBase* o) VTK_OVERRIDE;
86
94 void Copy(vtkInformationVector* from, int deep=0);
95
96protected:
98 ~vtkInformationVector() VTK_OVERRIDE;
99
100 // Internal implementation details.
101 vtkInformationVectorInternals* Internal;
102
103 int NumberOfInformationObjects;
104
105 // Garbage collection support.
106 void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
107private:
108 vtkInformationVector(const vtkInformationVector&) VTK_DELETE_FUNCTION;
109 void operator=(const vtkInformationVector&) VTK_DELETE_FUNCTION;
110};
111
112#endif
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
void SetNumberOfInformationObjects(int n)
static vtkInformationVector * New()
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
void Remove(vtkInformation *info)
~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 Register(vtkObjectBase *o) override
Initiate garbage collection when a reference is removed.
void Copy(vtkInformationVector *from, int deep=0)
Copy all information entries from the given vtkInformation instance.
vtkInformation * GetInformationObject(int index)
void Remove(int idx)
void Append(vtkInformation *info)
Append/Remove an information object.
void UnRegister(vtkObjectBase *o) override
Decrease the reference count (release by another object).
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ info
Definition: vtkX3D.h:376
@ index
Definition: vtkX3D.h:246