00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 * 00003 * $Id: vtkObjectListIterator.h,v 1.1.1.1 2005/06/17 17:48:40 xpxqx Exp $ 00004 * 00005 * Copyright (c) 2005 Sean McInerney 00006 * All rights reserved. 00007 * 00008 * See Copyright.txt or http://vtkcontainers.sourceforge.net/Copyright.html 00009 * 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 */ 00016 #ifndef VTK_OBJECT_LIST_ITERATOR_H_ 00017 # define VTK_OBJECT_LIST_ITERATOR_H_ 00018 # include "vtkObjectBaseListIterator.h" 00019 00020 class vtkObjectList; 00021 00032 class VTK_CONTAINERS_EXPORT vtkObjectListIterator 00033 : public vtkObjectBaseListIterator 00034 { 00035 public: 00036 static vtkObjectListIterator* New (void); 00037 vtkTypeRevisionMacro (vtkObjectListIterator, 00038 vtkObjectBaseListIterator); 00039 void PrintSelf (ostream&, vtkIndent); 00040 00049 vtkObject* GetItem (void) const 00050 { return static_cast<vtkObject*>(this->Superclass::GetItem()); } 00051 00056 virtual int SetItem (vtkObject* object) 00057 { return this->Superclass::SetItem(object); } 00060 protected: 00061 vtkObjectListIterator (void); 00062 ~vtkObjectListIterator(); 00063 00064 private: 00065 //BTX 00066 friend class vtkObjectList; 00067 00068 int SetItem (vtkObjectBase* object) 00069 { return this->Superclass::SetItem(object); } 00070 //ETX 00071 00072 private: 00078 vtkObjectListIterator (const vtkObjectListIterator&); 00079 void operator= (const vtkObjectListIterator&); 00081 }; 00082 00083 #endif /* VTK_OBJECT_LIST_ITERATOR_H_ */ 00084 /* 00085 * End of: $Id: vtkObjectListIterator.h,v 1.1.1.1 2005/06/17 17:48:40 xpxqx Exp $. 00086 * 00087 */