1 // File: SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx
2 // Created: 26.09.05 17:41:10
4 // Copyright: Open CASCADE 2005
7 #ifndef SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
8 #define SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
10 #include <SMESH_SequenceOfElemPtr.hxx>
12 #include <NCollection_DefineDataMap.hxx>
14 inline Standard_Integer HashCode(SMDS_MeshElementPtr theElem,
15 const Standard_Integer theUpper)
17 void* anElem = (void*) theElem;
18 return HashCode(anElem,theUpper);
21 inline Standard_Boolean IsEqual(SMDS_MeshElementPtr theOne,
22 SMDS_MeshElementPtr theTwo)
24 return theOne == theTwo;
27 DEFINE_BASECOLLECTION (SMESH_BaseCollectionSequenceOfElemPtr, SMESH_SequenceOfElemPtr)
28 DEFINE_DATAMAP (SMESH_DataMapOfElemPtrSequenceOfElemPtr,
29 SMESH_BaseCollectionSequenceOfElemPtr,
30 SMDS_MeshElementPtr, SMESH_SequenceOfElemPtr)