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 =========================================================================*/
31 #ifndef vtkInformationVector_h
32 #define vtkInformationVector_h
33 
34 #include "vtkCommonCoreModule.h" // For export macro
35 #include "vtkObject.h"
36 
37 class vtkInformation;
38 class vtkInformationVectorInternals;
39 
41 {
42 public:
43  static vtkInformationVector *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
52  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; };
53  void SetNumberOfInformationObjects(int n);
55 
57 
61  void SetInformationObject(int index, vtkInformation* info);
62  vtkInformation* GetInformationObject(int index);
64 
66 
67  void Append(vtkInformation* info);
68  void Remove(vtkInformation* info);
69  void Remove(int idx);
71 
73 
74  virtual void Register(vtkObjectBase* o);
75  virtual void UnRegister(vtkObjectBase* o);
77 
83  void Copy(vtkInformationVector* from, int deep=0);
84 
85 protected:
88 
89  // Internal implementation details.
90  vtkInformationVectorInternals* Internal;
91 
93 
94  // Garbage collection support.
96 private:
97  vtkInformationVector(const vtkInformationVector&); // Not implemented.
98  void operator=(const vtkInformationVector&); // Not implemented.
99 };
100 
101 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void Register(vtkObjectBase *o)
Store vtkAlgorithm input/output information.
#define VTKCOMMONCORE_EXPORT
Detect and break reference loops.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void UnRegister(vtkObjectBase *o)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ReportReferences(vtkGarbageCollector *)
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
vtkInformationVectorInternals * Internal
Store zero or more vtkInformation instances.
static vtkObject * New()