Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkInformationVector.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInformationVector.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00036 #ifndef __vtkInformationVector_h
00037 #define __vtkInformationVector_h
00038 
00039 #include "vtkObject.h"
00040 
00041 class vtkInformation;
00042 class vtkInformationVectorInternals;
00043 
00044 class VTK_FILTERING_EXPORT vtkInformationVector : public vtkObject
00045 {
00046 public:
00047   static vtkInformationVector *New();
00048   vtkTypeRevisionMacro(vtkInformationVector,vtkObject);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00056   int GetNumberOfInformationObjects();
00057   void SetNumberOfInformationObjects(int n);
00059 
00061 
00065   void SetInformationObject(int index, vtkInformation* info);
00066   vtkInformation* GetInformationObject(int index);
00068 
00072   void DeepCopy(vtkInformationVector* from);
00073 
00077   void ShallowCopy(vtkInformationVector* from);
00078 
00080   virtual void UnRegister(vtkObjectBase* o);
00081 
00082 protected:
00083   vtkInformationVector();
00084   ~vtkInformationVector();
00085 
00086   // Internal implementation details.
00087   vtkInformationVectorInternals* Internal;
00088 
00089   // Garbage collection support.
00090   virtual void ReportReferences(vtkGarbageCollector*);
00091   virtual void RemoveReferences();
00092   virtual void GarbageCollectionStarting();
00093   int GarbageCollecting;
00094 private:
00095   vtkInformationVector(const vtkInformationVector&);  // Not implemented.
00096   void operator=(const vtkInformationVector&);  // Not implemented.
00097 };
00098 
00099 #endif