VTK
dox/Common/Core/vtkInformationIterator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkInformationIterator.h
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 =========================================================================*/
00026 #ifndef __vtkInformationIterator_h
00027 #define __vtkInformationIterator_h
00028 
00029 #include "vtkCommonCoreModule.h" // For export macro
00030 #include "vtkObject.h"
00031 
00032 class vtkInformation;
00033 class vtkInformationKey;
00034 class vtkInformationIteratorInternals;
00035 
00036 class VTKCOMMONCORE_EXPORT vtkInformationIterator : public vtkObject
00037 {
00038 public:
00039   static vtkInformationIterator *New();
00040   vtkTypeMacro(vtkInformationIterator,vtkObject);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   void SetInformation(vtkInformation*);
00046   vtkGetObjectMacro(Information, vtkInformation);
00048 
00052   void SetInformationWeak(vtkInformation*);
00053 
00055   void InitTraversal() { this->GoToFirstItem(); }
00056 
00058   virtual void GoToFirstItem();
00059 
00061   virtual void GoToNextItem();
00062 
00065   virtual int IsDoneWithTraversal();
00066 
00069   virtual vtkInformationKey* GetCurrentKey();
00070 
00071 protected:
00072   vtkInformationIterator();
00073   ~vtkInformationIterator();
00074 
00075   vtkInformation* Information;
00076   vtkInformationIteratorInternals* Internal;
00077 
00078   bool ReferenceIsWeak;
00079 
00080 private:
00081   vtkInformationIterator(const vtkInformationIterator&);  // Not implemented.
00082   void operator=(const vtkInformationIterator&);  // Not implemented.
00083 };
00084 
00085 #endif