Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
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 "vtkCollection.h"
00031 
00032 #include "vtkOverrideInformation.h" // Needed for inline methods
00033 
00034 class VTK_COMMON_EXPORT vtkOverrideInformationCollection : public vtkCollection
00035 {
00036 public:
00037   vtkTypeRevisionMacro(vtkOverrideInformationCollection,vtkCollection);
00038   static vtkOverrideInformationCollection *New();
00039 
00041   void AddItem(vtkOverrideInformation *);
00042 
00044   vtkOverrideInformation *GetNextItem();
00045   
00046 protected:
00047   vtkOverrideInformationCollection() {};
00048   ~vtkOverrideInformationCollection() {};
00049   
00050 
00051 private:
00052   // hide the standard AddItem from the user and the compiler.
00053   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00054 
00055 private:
00056   vtkOverrideInformationCollection(const vtkOverrideInformationCollection&);  // Not implemented.
00057   void operator=(const vtkOverrideInformationCollection&);  // Not implemented.
00058 };
00059 
00060 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f) 
00061 {
00062   this->vtkCollection::AddItem((vtkObject *)f);
00063 }
00064 
00065 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem() 
00066 { 
00067   return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
00068 }
00069 
00070 #endif