SALOME - SMESH
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SMESH_DefineIndexedMap.hxx
Go to the documentation of this file.
1 // File: NCollection_DefineIndexedMap.hxx
2 // Created: Thu Apr 24 15:02:53 2002
3 // Author: Alexander KARTOMIN (akm)
4 // <akm@opencascade.com>
5 //
6 // Purpose: An indexed map is used to store keys and to bind
7 // an index to them. Each new key stored in the map
8 // gets an index. Index are incremented as keys are
9 // stored in the map. A key can be found by the index
10 // and an index by the key. No key but the last can
11 // be removed so the indices are in the range 1..Extent.
12 // See the class Map from NCollection for a
13 // discussion about the number of buckets.
14 //
15 
16 #ifndef SMESH_DefineIndexedMap_HeaderFile
17 #define SMESH_DefineIndexedMap_HeaderFile
18 
19 #include <NCollection_DefineBaseCollection.hxx>
20 #include <SMESH_IndexedMap.hxx>
21 
22 #ifdef WNT
23 // Disable the warning "operator new unmatched by delete"
24 #pragma warning (disable:4291)
25 #endif
26 
27 // *********************************************** Class IndexedMap ***********
28 
29 #define SMESH_DEFINE_INDEXEDMAP(_ClassName_, _BaseCollection_, TheKeyType) \
30  typedef SMESH_IndexedMap <TheKeyType > _ClassName_;
31 
32 #endif