0026585: Eliminate compile warnings obtained by building occt with vc14: 'type cast...
[occt.git] / src / TDF / TDF_LabelMapHasher.hxx
index 63c0fe6..c7840d2 100644 (file)
 #ifndef _TDF_LabelMapHasher_HeaderFile
 #define _TDF_LabelMapHasher_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-class TDF_Label;
-
+#include <TDF_Label.hxx>
 
 //! A label hasher for label maps.
 class TDF_LabelMapHasher 
 {
 public:
 
-  DEFINE_STANDARD_ALLOC
+  //! Returns a HasCode value  for  the  Key <K>  in the range 0..Upper.
+  static Standard_Integer HashCode(const TDF_Label& aLab, const Standard_Integer Upper)
+  {
+    return ::HashCode((Standard_Address)aLab.myLabelNode, Upper);
+  }
 
-  
-  //! Returns a HasCode value  for  the  Key <K>  in the
-  //! range 0..Upper.
-    static Standard_Integer HashCode (const TDF_Label& aLab, const Standard_Integer Upper);
-  
   //! Returns True  when the two  keys are the same. Two
   //! same  keys  must   have  the  same  hashcode,  the
   //! contrary is not necessary.
-    static Standard_Boolean IsEqual (const TDF_Label& aLab1, const TDF_Label& aLab2);
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
+  static Standard_Boolean IsEqual(const TDF_Label& aLab1, const TDF_Label& aLab2)
+  {
+    return aLab1.IsEqual(aLab2);
+  }
 };
 
-
-#include <TDF_LabelMapHasher.lxx>
-
-
-
-
-
 #endif // _TDF_LabelMapHasher_HeaderFile