Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkObjectVectorIterator.h

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

Generated on Thu Jul 14 14:39:40 2005 for vtkContainers by doxygen 1.3.6