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