Salome HOME
Porting to OCCT 7.8.0
[modules/shaper.git] / src / GeomAlgoImpl / GEOMAlgo_PassKeyShapeMapHasher.hxx
index d6aafc70d782968ca8aba0fd091f4c8646d9a126..57e4564487884ad28c5c470291241a885ccb28df 100644 (file)
@@ -36,6 +36,8 @@
 #include <Standard_Boolean.hxx>
 #include <GEOMAlgo_PassKeyShape.hxx>
 
+#include <Basics_OCCTVersion.hxx>
+
 //=======================================================================
 //class    : GEOMAlgo_PassKeyShapeMapHasher
 //purpose  :
@@ -43,6 +45,7 @@
 class GEOMAlgo_PassKeyShapeMapHasher
 {
  public:
+#if OCC_VERSION_LARGE < 0x07080000
   GEOMALGOIMPL_EXPORT
     static  Standard_Integer HashCode(const GEOMAlgo_PassKeyShape& aPKey,
                                       const Standard_Integer Upper) ;
@@ -50,5 +53,13 @@ class GEOMAlgo_PassKeyShapeMapHasher
   GEOMALGOIMPL_EXPORT
     static  Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aPKey1,
                                      const GEOMAlgo_PassKeyShape& aPKey2) ;
+#else
+  GEOMALGOIMPL_EXPORT
+  size_t operator()(const GEOMAlgo_PassKeyShape& aPKey) const;
+
+  GEOMALGOIMPL_EXPORT
+  bool operator()(const GEOMAlgo_PassKeyShape& aPKey1,
+                  const GEOMAlgo_PassKeyShape& aPKey2) const;
+#endif // OCC_VERSION_LARGE < 0x07080000
 };
 #endif