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

vtkObjectDeque.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: vtkObjectDeque.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_DEQUE_H_
00017 #  define VTK_OBJECT_DEQUE_H_
00018 #  include "vtkObjectBaseDeque.h"
00019 #  include "vtkObjectDequeIterator.h" // Covariant return type.
00020 
00031 class VTK_CONTAINERS_EXPORT vtkObjectDeque
00032   : public vtkObjectBaseDeque
00033 {
00034 public:
00035   static vtkObjectDeque* New (void);
00036   vtkTypeRevisionMacro (vtkObjectDeque, vtkObjectBaseDeque);
00037   void PrintSelf (ostream&, vtkIndent);
00038 
00043   virtual int   Swap (vtkObjectDeque* container)
00044     { return this->Superclass::Swap(container); }
00045 
00050   virtual int   Copy (vtkObjectDeque* 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                         vtkObjectDeque* sequence)
00095     { return this->Superclass::Insert(position, sequence); }
00096 
00114   virtual int   Insert (vtkIdType       position,
00115                         vtkObjectDeque* 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   PushFront (vtkObject* item)
00132     { return this->Superclass::PushFront(item); }
00133 
00138   virtual int   PushBack (vtkObject* item)
00139     { return this->Superclass::PushBack(item); }
00140 
00145   vtkObject*    Front (void) const
00146     { return static_cast<vtkObject*>(this->Superclass::Front()); }
00147 
00152   vtkObject*    Back (void) const
00153     { return static_cast<vtkObject*>(this->Superclass::Back()); }
00154 
00156   vtkObjectDequeIterator* CreateIterator (void);
00157 
00158 protected:
00159   vtkObjectDeque (void);
00160   ~vtkObjectDeque();
00161 
00162 private:
00163   //BTX
00165   friend class vtkObjectDequeIterator;
00166 
00168   int Swap (vtkObjectBaseDeque* a)
00169     { return this->Superclass::Swap(a); }
00170   int Copy (vtkObjectBaseDeque* a)
00171     { return this->Superclass::Copy(a); }
00172   int Insert (vtkIdType position, vtkObjectBase* object)
00173     { return this->Superclass::Insert(position, object); }
00174   int Insert (vtkIdType pos, vtkObjectBaseDeque* seq)
00175     { return this->Superclass::Insert(pos, seq); }
00176   int Insert (vtkIdType pos, vtkObjectBaseDeque* seq,
00177               vtkIdType seqBeg, vtkIdType seqEnd)
00178     { return this->Superclass::Insert(pos, seq, seqBeg, seqEnd); }
00179   int Assign (vtkIdType position, vtkObjectBase* object)
00180     { return this->Superclass::Assign(position, object); }
00181   int PushFront (vtkObjectBase* object)
00182     { return this->Superclass::PushFront(object); }
00183   int PushBack (vtkObjectBase* object)
00184     { return this->Superclass::PushBack(object); }
00186   //ETX
00187 
00188 private:
00194   vtkObjectDeque (const vtkObjectDeque&);
00195   void operator= (const vtkObjectDeque&);
00197 };
00198 
00199 #endif /* VTK_OBJECT_DEQUE_H_ */
00200 /* 
00201  * End of: $Id: vtkObjectDeque.h,v 1.3 2005/06/24 23:17:16 xpxqx Exp $.
00202  * 
00203  */

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