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

vtkObjectVector.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: vtkObjectVector.h,v 1.3 2005/06/24 23:17:16 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_H_
00017 #  define VTK_OBJECT_VECTOR_H_
00018 #  include "vtkObjectBaseVector.h"
00019 #  include "vtkObjectVectorIterator.h" // Covariant return type.
00020 
00031 class VTK_CONTAINERS_EXPORT vtkObjectVector
00032   : public vtkObjectBaseVector
00033 {
00034 public:
00035   static vtkObjectVector* New (void);
00036   vtkTypeRevisionMacro (vtkObjectVector, vtkObjectBaseVector);
00037   void PrintSelf (ostream&, vtkIndent);
00038 
00043   virtual int   Swap (vtkObjectVector* container)
00044     { return this->Superclass::Swap(container); }
00045 
00050   virtual int   Copy (vtkObjectVector* container)
00051     { return this->Superclass::Copy(container); }
00052 
00059   vtkObject*    At (vtkIdType position) const
00060     { return static_cast<vtkObject*>(this->Superclass::At(position)); }
00061 
00075   virtual int   Insert (vtkIdType position, vtkObject* item)
00076     { return this->Superclass::Insert(position, item); }
00077 
00093   virtual int   Insert (vtkIdType        position,
00094                         vtkObjectVector* sequence)
00095     { return this->Superclass::Insert(position, sequence); }
00096 
00114   virtual int   Insert (vtkIdType        position,
00115                         vtkObjectVector* sequence,
00116                         vtkIdType        seqBeg,
00117                         vtkIdType        seqEnd)
00118     { return this->Superclass::Insert(position, sequence, seqBeg, seqEnd); }
00119 
00124   virtual int   Assign (vtkIdType position, vtkObject* item)
00125     { return this->Superclass::Assign(position, item); }
00126 
00131   virtual int   PushBack (vtkObject* item)
00132     { return this->Superclass::PushBack(item); }
00133 
00143   virtual int   PushFront (vtkObject* item)
00144     { return this->Superclass::PushFront(item); }
00145 
00150   vtkObject*    Front (void) const
00151     { return static_cast<vtkObject*>(this->Superclass::Front()); }
00152 
00157   vtkObject*    Back (void) const
00158     { return static_cast<vtkObject*>(this->Superclass::Back()); }
00159 
00161   vtkObjectVectorIterator* CreateIterator (void);
00162 
00163 protected:
00164   vtkObjectVector (void);
00165   ~vtkObjectVector();
00166 
00167 private:
00168   //BTX
00170   friend class vtkObjectVectorIterator;
00171 
00173   int Swap (vtkObjectBaseVector* a)
00174     { return this->Superclass::Swap(a); }
00175   int Copy (vtkObjectBaseVector* a)
00176     { return this->Superclass::Copy(a); }
00177   int Insert (vtkIdType position, vtkObjectBase* object)
00178     { return this->Superclass::Insert(position, object); }
00179   int Insert (vtkIdType pos, vtkObjectBaseVector* seq)
00180     { return this->Superclass::Insert(pos, seq); }
00181   int Insert (vtkIdType pos, vtkObjectBaseVector* seq,
00182               vtkIdType seqBeg, vtkIdType seqEnd)
00183     { return this->Superclass::Insert(pos, seq, seqBeg, seqEnd); }
00184   int Assign (vtkIdType position, vtkObjectBase* object)
00185     { return this->Superclass::Assign(position, object); }
00186   int PushBack (vtkObjectBase* object)
00187     { return this->Superclass::PushBack(object); }
00188   int PushFront (vtkObjectBase* object)
00189     { return this->Superclass::PushFront(object); }
00191   //ETX
00192 
00193 private:
00199   vtkObjectVector (const vtkObjectVector&);
00200   void operator= (const vtkObjectVector&);
00202 };
00203 
00204 #endif /* VTK_OBJECT_VECTOR_H_ */
00205 /* 
00206  * End of: $Id: vtkObjectVector.h,v 1.3 2005/06/24 23:17:16 xpxqx Exp $.
00207  * 
00208  */

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