VTK
dox/Common/Core/vtkOverrideInformationCollection.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOverrideInformationCollection.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 =========================================================================*/
00027 #ifndef __vtkOverrideInformationCollection_h
00028 #define __vtkOverrideInformationCollection_h
00029 
00030 #include "vtkCommonCoreModule.h" // For export macro
00031 #include "vtkCollection.h"
00032 
00033 #include "vtkOverrideInformation.h" // Needed for inline methods
00034 
00035 class VTKCOMMONCORE_EXPORT vtkOverrideInformationCollection : public vtkCollection
00036 {
00037 public:
00038   vtkTypeMacro(vtkOverrideInformationCollection,vtkCollection);
00039   static vtkOverrideInformationCollection *New();
00040 
00042   void AddItem(vtkOverrideInformation *);
00043 
00045   vtkOverrideInformation *GetNextItem();
00046 
00047   //BTX
00049 
00051   vtkOverrideInformation *GetNextOverrideInformation(
00052     vtkCollectionSimpleIterator &cookie) {
00053     return static_cast<vtkOverrideInformation *>(
00054       this->GetNextItemAsObject(cookie));};
00055   //ETX
00057 
00058 protected:
00059   vtkOverrideInformationCollection() {}
00060   ~vtkOverrideInformationCollection() {}
00061 
00062 
00063 private:
00064   // hide the standard AddItem from the user and the compiler.
00065   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00066 
00067 private:
00068   vtkOverrideInformationCollection(const vtkOverrideInformationCollection&);  // Not implemented.
00069   void operator=(const vtkOverrideInformationCollection&);  // Not implemented.
00070 };
00071 
00072 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f)
00073 {
00074   this->vtkCollection::AddItem(f);
00075 }
00076 
00077 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem()
00078 {
00079   return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
00080 }
00081 
00082 #endif
00083 // VTK-HeaderTest-Exclude: vtkOverrideInformationCollection.h