Salome HOME
b5ede17ea8c1ec3c2b9c21e89a4bd41773829b9c
[modules/smesh.git] / src / SMESH / SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx
1 // File:      SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx
2 // Created:   26.09.05 17:41:10
3 // Author:    Sergey KUUL
4 // Copyright: Open CASCADE 2005
5
6
7 #ifndef SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
8 #define SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
9
10 #include <SMESH_SequenceOfElemPtr.hxx>
11
12 #include <NCollection_DefineDataMap.hxx>
13
14 inline Standard_Integer HashCode(SMDS_MeshElementPtr theElem,
15                                  const Standard_Integer theUpper)
16 {
17   void* anElem = (void*) theElem;
18   return HashCode(anElem,theUpper);
19 }
20
21 inline Standard_Boolean IsEqual(SMDS_MeshElementPtr theOne,
22                                 SMDS_MeshElementPtr theTwo)
23 {
24   return theOne == theTwo;
25 }
26
27 DEFINE_BASECOLLECTION (SMESH_BaseCollectionSequenceOfElemPtr, SMESH_SequenceOfElemPtr)
28 DEFINE_DATAMAP (SMESH_DataMapOfElemPtrSequenceOfElemPtr,
29                 SMESH_BaseCollectionSequenceOfElemPtr,
30                 SMDS_MeshElementPtr, SMESH_SequenceOfElemPtr)
31 #endif