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

vtkObjectStack.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: vtkObjectStack.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_STACK_H_
00017 #  define VTK_OBJECT_STACK_H_
00018 #  include "vtkObjectBaseStack.h"
00019 
00030 class VTK_CONTAINERS_EXPORT vtkObjectStack
00031   : public vtkObjectBaseStack
00032 {
00033 public:
00034   static vtkObjectStack* New (void);
00035   vtkTypeRevisionMacro (vtkObjectStack, vtkObjectBaseStack);
00036   void PrintSelf (ostream&, vtkIndent);
00037 
00042   virtual int           Swap (vtkObjectStack*   container)
00043     { return this->Superclass::Swap(container); }
00044 
00049   virtual int           Copy (vtkObjectStack*   container)
00050     { return this->Superclass::Copy(container); }
00051 
00058   virtual int   Push (vtkObject* item)
00059     { return this->Superclass::Push(item); }
00060 
00062   vtkObject*    Top (void) const
00063     { return static_cast<vtkObject*>(this->Superclass::Top()); }
00064 
00071   vtkObject*    At (vtkIdType position) const
00072     { return static_cast<vtkObject*>(this->Superclass::At(position)); }
00073 
00074 protected:
00075   vtkObjectStack (void);
00076   ~vtkObjectStack();
00077 
00078 private:
00079   //BTX
00082   int Swap (vtkObjectBaseStack* a)
00083     { return this->Superclass::Swap(a); }
00084   int Copy (vtkObjectBaseStack* a)
00085     { return this->Superclass::Copy(a); }
00086   int Push (vtkObjectBase* object)
00087     { return this->Superclass::Push(object); }
00089   //ETX
00090 
00091 private:
00097   vtkObjectStack (const vtkObjectStack&);
00098   void operator= (const vtkObjectStack&);
00100 };
00101 
00102 #endif /* VTK_OBJECT_STACK_H_ */
00103 /* 
00104  * End of: $Id: vtkObjectStack.h,v 1.3 2005/06/24 23:17:16 xpxqx Exp $.
00105  * 
00106  */

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