-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
};
typedef SMESH_TNodeXYZ SMESH_NodeXYZ;
+// --------------------------------------------------------------------------------
+// SMESH_Hasher provide methods needed to put mesh data to NCollection maps
+
+struct SMESH_Hasher
+{
+ static Standard_Integer HashCode(const SMDS_MeshElement* e, const Standard_Integer upper)
+ {
+ return ::HashCode( e->GetID(), upper );
+ }
+ static Standard_Boolean IsEqual( const SMDS_MeshElement* e1, const SMDS_MeshElement* e2 )
+ {
+ return ( e1 == e2 );
+ }
+};
+
//--------------------------------------------------
/*!
* \brief Data of a node generated on FACE boundary