00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 * 00003 * $Id: vtkObjectSetIterator.h,v 1.1.1.1 2005/06/17 17:48:42 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_SET_ITERATOR_H_ 00017 # define VTK_OBJECT_SET_ITERATOR_H_ 00018 # include "vtkObjectBaseSetIterator.h" 00019 00020 class vtkObjectSet; 00021 00032 class VTK_CONTAINERS_EXPORT vtkObjectSetIterator 00033 : public vtkObjectBaseSetIterator 00034 { 00035 public: 00036 static vtkObjectSetIterator* New (void); 00037 vtkTypeRevisionMacro (vtkObjectSetIterator, 00038 vtkObjectBaseSetIterator); 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 vtkObjectSetIterator (void); 00062 ~vtkObjectSetIterator(); 00063 00064 private: 00065 //BTX 00066 friend class vtkObjectSet; 00067 00068 int SetItem (vtkObjectBase* object) 00069 { return this->Superclass::SetItem(object); } 00070 //ETX 00071 00072 private: 00078 vtkObjectSetIterator (const vtkObjectSetIterator&); 00079 void operator= (const vtkObjectSetIterator&); 00081 }; 00082 00083 #endif /* VTK_OBJECT_SET_ITERATOR_H_ */ 00084 /* 00085 * End of: $Id: vtkObjectSetIterator.h,v 1.1.1.1 2005/06/17 17:48:42 xpxqx Exp $. 00086 * 00087 */