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

vtkAbstractMap.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: vtkAbstractMap.h,v 1.3 2004/06/03 18:58:28 xpxqx Exp $ 00004 * 00005 * Copyright (c) 2004 Sean McInerney 00006 * All rights reserved. 00007 * 00008 * See Copyright.txt or http://vtkextensions.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_ABSTRACT_MAP_H_ 00017 # define VTK_ABSTRACT_MAP_H_ 00018 # include "vtkContainer.h" 00019 # include "vtkAbstractMapIterator.h" 00020 00021 VTK_EXTENSIONS_CONTAINERS_NAMESPACE_BEGIN 00022 00036 class VTK_EXTENSIONS_CONTAINERS_EXPORT vtkAbstractMap 00037 : public vtkContainer 00038 { 00039 public: 00040 vtkTypeRevisionMacro (vtkAbstractMap, vtkContainer); 00041 void PrintSelf (ostream&, vtkIndent); 00042 00047 virtual int Swap (vtkAbstractMap* container) = 0; 00048 00053 virtual vtkIdType GetCapacity (void) const; 00054 00057 virtual int GetCheckUnique (void) const; 00058 virtual void SetCheckUnique (int a); 00059 vtkBooleanMacro (CheckUnique, int); 00064 virtual int GetCheckCase (void) const; 00065 virtual void SetCheckCase (int a); 00066 vtkBooleanMacro (CheckCase, int); 00078 virtual vtkObjectBase* Find (const char* key) const; 00079 00092 virtual int Insert (const char* key, 00093 vtkObjectBase* object) = 0; 00094 00105 virtual int Erase (const char* key) = 0; 00106 00111 virtual const char* FindKey (const vtkObjectBase* object) = 0; 00112 00119 virtual const char* FindNextKey (void) = 0; 00120 00128 virtual int Front (const char* & key, 00129 vtkObjectBase* & object) const; 00130 00136 virtual int Back (const char* & key, 00137 vtkObjectBase* & object) const; 00141 virtual vtkAbstractMapIterator* CreateIterator (void) = 0; 00142 00143 protected: 00144 vtkAbstractMap (void) {} 00145 ~vtkAbstractMap() {} 00146 00147 private: 00148 //BTX 00151 int Swap (vtkContainer* a) 00152 { return this->Swap(static_cast<vtkAbstractMap*>(a)); } 00154 //ETX 00155 00156 private: 00162 vtkAbstractMap (const vtkAbstractMap&); 00163 void operator= (const vtkAbstractMap&); 00165 }; 00166 00167 VTK_EXTENSIONS_CONTAINERS_NAMESPACE_END 00168 00169 #endif /* VTK_ABSTRACT_MAP_H_ */ 00170 /* 00171 * End of: $Id: vtkAbstractMap.h,v 1.3 2004/06/03 18:58:28 xpxqx Exp $. 00172 * 00173 */

Generated on Tue Aug 10 03:37:03 2004 for vtkExtensions by doxygen 1.3.7