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

vtkContainer.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: vtkContainer.h,v 1.5 2005/07/11 23:18:48 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_CONTAINER_H_
00017 #  define VTK_CONTAINER_H_
00018 #  include "vtkContainersConfigure.h" // vtk configuration
00019 #  include "vtkObject.h"
00020 
00021 class vtkIterator;
00022 
00048 class VTK_CONTAINERS_EXPORT vtkContainer : public vtkObject
00049 {
00050 public:
00051   vtkTypeRevisionMacro (vtkContainer, vtkObject);
00052   void PrintSelf (ostream&, vtkIndent);
00053 
00055   virtual vtkIdType     GetSize (void) const;
00056 
00058   virtual int           IsEmpty (void) const;
00059 
00061   virtual vtkIdType     GetMaxSize (void) const;
00062 
00067   virtual int           Clear (void) = 0;
00068 
00073   virtual int           Swap (vtkContainer* container) = 0;
00074 
00079   virtual int           Copy (vtkContainer* container) = 0;
00080 
00087   virtual vtkObjectBase*        Front (void) const;
00088 
00093   virtual vtkObjectBase*        Back (void) const;
00097   virtual vtkIterator*          CreateIterator (void) = 0;
00098 
00100   void  Register (vtkObjectBase*);
00101 
00103   void  UnRegister (vtkObjectBase*);
00104 
00105 protected:
00106   vtkContainer (void);
00107   ~vtkContainer();
00108 
00109 private:
00115   vtkContainer (const vtkContainer&);
00116   void operator= (const vtkContainer&);
00118 };
00119 
00120 #endif /* VTK_CONTAINER_H_ */
00121 /* 
00122  * End of: $Id: vtkContainer.h,v 1.5 2005/07/11 23:18:48 xpxqx Exp $.
00123  * 
00124  */

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