• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Common/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 =========================================================================*/
00028 #ifndef __vtkInformationVector_h
00029 #define __vtkInformationVector_h
00030 
00031 #include "vtkObject.h"
00032 
00033 class vtkInformation;
00034 class vtkInformationVectorInternals;
00035 
00036 class VTK_COMMON_EXPORT vtkInformationVector : public vtkObject
00037 {
00038 public:
00039   static vtkInformationVector *New();
00040   vtkTypeRevisionMacro(vtkInformationVector,vtkObject);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00048   int GetNumberOfInformationObjects() { return this->NumberOfInformationObjects; };
00049   void SetNumberOfInformationObjects(int n);
00051 
00053 
00057   void SetInformationObject(int index, vtkInformation* info);
00058   vtkInformation* GetInformationObject(int index);
00060 
00062 
00063   void Append(vtkInformation* info);
00064   void Remove(vtkInformation* info);
00066 
00068 
00069   virtual void Register(vtkObjectBase* o);
00070   virtual void UnRegister(vtkObjectBase* o);
00072 
00078   void Copy(vtkInformationVector* from, int deep=0);
00079 
00080 protected:
00081   vtkInformationVector();
00082   ~vtkInformationVector();
00083 
00084   // Internal implementation details.
00085   vtkInformationVectorInternals* Internal;
00086 
00087   int NumberOfInformationObjects;
00088   
00089   // Garbage collection support.
00090   virtual void ReportReferences(vtkGarbageCollector*);
00091 private:
00092   vtkInformationVector(const vtkInformationVector&);  // Not implemented.
00093   void operator=(const vtkInformationVector&);  // Not implemented.
00094 };
00095 
00096 #endif

Generated by  doxygen 1.7.1