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

vtkObjectSet.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: vtkObjectSet.h,v 1.4 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_SET_H_
00017 #  define VTK_OBJECT_SET_H_
00018 #  include "vtkObjectBaseSet.h"
00019 #  include "vtkObjectSetIterator.h" // Covariant return type.
00020 
00031 class VTK_CONTAINERS_EXPORT vtkObjectSet
00032   : public vtkObjectBaseSet
00033 {
00034 public:
00035   static vtkObjectSet* New (void);
00036   vtkTypeRevisionMacro (vtkObjectSet, vtkObjectBaseSet);
00037   void PrintSelf (ostream&, vtkIndent);
00038 
00043   virtual int   Swap (vtkObjectSet*     container)
00044     { return this->Superclass::Swap(container); }
00045 
00050   virtual int   Copy (vtkObjectSet*     container)
00051     { return this->Superclass::Copy(container); }
00052 
00057   virtual int   Find (vtkObject*        item) const
00058     { return this->Superclass::Find(item); }
00059 
00064   virtual int   Insert (vtkIdType       position,
00065                         vtkObject*      item)
00066     { return this->Superclass::Insert(position, item); }
00067 
00085   virtual int   CreateUnion (vtkObjectSet* source,
00086                              vtkObjectSet* destination)
00087     { return this->Superclass::CreateUnion(source, destination); }
00088 
00103   virtual int   CreateIntersection (vtkObjectSet* source,
00104                                     vtkObjectSet* destination)
00105     { return this->Superclass::CreateIntersection(source, destination); }
00106 
00121   virtual int   CreateDifference (vtkObjectSet* source,
00122                                   vtkObjectSet* destination)
00123     { return this->Superclass::CreateDifference(source, destination); }
00124 
00140   virtual int   CreateSymmetricDifference (vtkObjectSet* source,
00141                                            vtkObjectSet* destination)
00142     { return this->Superclass::CreateSymmetricDifference(source, destination); }
00153   vtkObject*    Front (void) const
00154     { return static_cast<vtkObject*>(this->Superclass::Front()); }
00155 
00162   vtkObject*    Back (void) const
00163     { return static_cast<vtkObject*>(this->Superclass::Back()); }
00167   vtkObjectSetIterator* CreateIterator (void);
00168 
00169 protected:
00170   vtkObjectSet (void);
00171   ~vtkObjectSet();
00172 
00173 private:
00174   //BTX
00175   friend class vtkObjectSetIterator;
00176 
00179   int Swap (vtkObjectBaseSet* a)
00180     { return this->Superclass::Swap(a); }
00181   int Copy (vtkObjectBaseSet* a)
00182     { return this->Superclass::Copy(a); }
00183   int Find (vtkObjectBase* a) const
00184     { return this->Superclass::Find(a); }
00185   int Insert (vtkIdType pos, vtkObjectBase* a)
00186     { return this->Superclass::Insert(pos, a); }
00187   int CreateUnion (vtkObjectBaseSet* src, vtkObjectBaseSet* dst)
00188     { return this->Superclass::CreateUnion(src, dst); }
00189   int CreateIntersection (vtkObjectBaseSet* src, vtkObjectBaseSet* dst)
00190     { return this->Superclass::CreateIntersection(src, dst); }
00191   int CreateDifference (vtkObjectBaseSet* src, vtkObjectBaseSet* dst)
00192     { return this->Superclass::CreateDifference(src, dst); }
00193   int CreateSymmetricDifference (vtkObjectBaseSet* src, vtkObjectBaseSet* dst)
00194     { return this->Superclass::CreateSymmetricDifference(src, dst); }
00196   //ETX
00197 
00198 private:
00204   vtkObjectSet (const vtkObjectSet&);
00205   void operator= (const vtkObjectSet&);
00207 };
00208 
00209 #endif /* VTK_OBJECT_SET_H_ */
00210 /* 
00211  * End of: $Id: vtkObjectSet.h,v 1.4 2005/06/24 23:17:16 xpxqx Exp $.
00212  * 
00213  */

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