00001 // File: NCollection_DefineIndexedMap.hxx 00002 // Created: Thu Apr 24 15:02:53 2002 00003 // Author: Alexander KARTOMIN (akm) 00004 // <akm@opencascade.com> 00005 // 00006 // Purpose: An indexed map is used to store keys and to bind 00007 // an index to them. Each new key stored in the map 00008 // gets an index. Index are incremented as keys are 00009 // stored in the map. A key can be found by the index 00010 // and an index by the key. No key but the last can 00011 // be removed so the indices are in the range 1..Extent. 00012 // See the class Map from NCollection for a 00013 // discussion about the number of buckets. 00014 // 00015 00016 #ifndef SMESH_DefineIndexedMap_HeaderFile 00017 #define SMESH_DefineIndexedMap_HeaderFile 00018 00019 #include <NCollection_DefineBaseCollection.hxx> 00020 #include <SMESH_IndexedMap.hxx> 00021 00022 #ifdef WNT 00023 // Disable the warning "operator new unmatched by delete" 00024 #pragma warning (disable:4291) 00025 #endif 00026 00027 // *********************************************** Class IndexedMap *********** 00028 00029 #define SMESH_DEFINE_INDEXEDMAP(_ClassName_, _BaseCollection_, TheKeyType) \ 00030 typedef SMESH_IndexedMap <TheKeyType > _ClassName_; 00031 00032 #endif