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) VTK_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) VTK_OVERRIDE;
78  void UnRegister(vtkObjectBase* o) VTK_OVERRIDE;
80 
88  void Copy(vtkInformationVector* from, int deep=0);
89 
90 protected:
92  ~vtkInformationVector() VTK_OVERRIDE;
93 
94  // Internal implementation details.
95  vtkInformationVectorInternals* Internal;
96 
97  int NumberOfInformationObjects;
98 
99  // Garbage collection support.
100  void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
101 private:
102  vtkInformationVector(const vtkInformationVector&) VTK_DELETE_FUNCTION;
103  void operator=(const vtkInformationVector&) VTK_DELETE_FUNCTION;
104 };
105 
106 #endif
int GetNumberOfInformationObjects()
Get/Set the number of information objects in the vector.
abstract base class for most VTK objects
Definition: vtkObject.h:53
virtual void Register(vtkObjectBase *o)
Increase the reference count (mark as used by another object).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
Detect and break reference loops.
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract base class for most VTK objects
Definition: vtkObjectBase.h:62
Store zero or more vtkInformation instances.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...