00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOverrideInformationCollection.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00031 #ifndef __vtkOverrideInformationCollection_h 00032 #define __vtkOverrideInformationCollection_h 00033 00034 #include "vtkCollection.h" 00035 00036 #include "vtkOverrideInformation.h" // Needed for inline methods 00037 00038 class VTK_COMMON_EXPORT vtkOverrideInformationCollection : public vtkCollection 00039 { 00040 public: 00041 vtkTypeRevisionMacro(vtkOverrideInformationCollection,vtkCollection); 00042 static vtkOverrideInformationCollection *New(); 00043 00045 void AddItem(vtkOverrideInformation *); 00046 00048 vtkOverrideInformation *GetNextItem(); 00049 00050 protected: 00051 vtkOverrideInformationCollection() {}; 00052 ~vtkOverrideInformationCollection() {}; 00053 00054 00055 private: 00056 // hide the standard AddItem from the user and the compiler. 00057 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00058 00059 private: 00060 vtkOverrideInformationCollection(const vtkOverrideInformationCollection&); // Not implemented. 00061 void operator=(const vtkOverrideInformationCollection&); // Not implemented. 00062 }; 00063 00064 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f) 00065 { 00066 this->vtkCollection::AddItem((vtkObject *)f); 00067 } 00068 00069 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem() 00070 { 00071 return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject()); 00072 } 00073 00074 #endif