Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Common/vtkOverrideInformationCollection.h

Go to the documentation of this file.
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 =========================================================================*/
00042 #ifndef __vtkOverrideInformationCollection_h
00043 #define __vtkOverrideInformationCollection_h
00044 
00045 #include "vtkCollection.h"
00046 
00047 #include "vtkOverrideInformation.h" // Needed for inline methods
00048 
00049 class VTK_COMMON_EXPORT vtkOverrideInformationCollection : public vtkCollection
00050 {
00051 public:
00052   vtkTypeRevisionMacro(vtkOverrideInformationCollection,vtkCollection);
00053   static vtkOverrideInformationCollection *New();
00054 
00056   void AddItem(vtkOverrideInformation *);
00057 
00059   vtkOverrideInformation *GetNextItem();
00060   
00061 protected:
00062   vtkOverrideInformationCollection() {};
00063   ~vtkOverrideInformationCollection() {};
00064   
00065 
00066 private:
00067   // hide the standard AddItem from the user and the compiler.
00068   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00069 
00070 private:
00071   vtkOverrideInformationCollection(const vtkOverrideInformationCollection&);  // Not implemented.
00072   void operator=(const vtkOverrideInformationCollection&);  // Not implemented.
00073 };
00074 
00075 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f) 
00076 {
00077   this->vtkCollection::AddItem((vtkObject *)f);
00078 }
00079 
00080 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem() 
00081 { 
00082   return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
00083 }
00084 
00085 #endif