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 "vtkObject.h"
35 
36 class vtkInformation;
37 class vtkInformationVectorInternals;
38 
40 {
41 public:
42  static vtkInformationVector *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
51  int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; };
52  void SetNumberOfInformationObjects(int n);
54 
56 
60  void SetInformationObject(int index, vtkInformation* info);
61  vtkInformation* GetInformationObject(int index);
63 
65 
66  void Append(vtkInformation* info);
67  void Remove(vtkInformation* info);
69 
71 
72  virtual void Register(vtkObjectBase* o);
73  virtual void UnRegister(vtkObjectBase* o);
75 
81  void Copy(vtkInformationVector* from, int deep=0);
82 
83 protected:
86 
87  // Internal implementation details.
88  vtkInformationVectorInternals* Internal;
89 
91 
92  // Garbage collection support.
94 private:
95  vtkInformationVector(const vtkInformationVector&); // Not implemented.
96  void operator=(const vtkInformationVector&); // Not implemented.
97 };
98 
99 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void Register(vtkObjectBase *o)
Store vtkAlgorithm input/output information.
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:37
virtual void ReportReferences(vtkGarbageCollector *)
#define VTK_COMMON_EXPORT
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
vtkInformationVectorInternals * Internal
Store zero or more vtkInformation instances.
static vtkObject * New()