Salome HOME
0021787: [CEA 621] Desactivate preview for partition and boolean operations in prefer...
[modules/geom.git] / src / NMTDS / NMTDS_PassKeyShapeMapHasher.hxx
index 5c718dc44a97c818c51fd4b051f25a7d90018762..a674091dbe1a11426665c709c9dae4e0e39e4c39 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
+// File:        NMTDS_PassKeyMapHasher.cxx
+// Created:     
+// Author:      Peter KURNEV
+//              <pkv@irinox>
+//
 #ifndef _NMTDS_PassKeyShapeMapHasher_HeaderFile
 #define _NMTDS_PassKeyShapeMapHasher_HeaderFile
 
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-class NMTDS_PassKeyShape;
-
-
-#ifndef _Standard_HeaderFile
 #include <Standard.hxx>
-#endif
-#ifndef _Standard_Macro_HeaderFile
 #include <Standard_Macro.hxx>
-#endif
-
+#include <Standard_Integer.hxx>
+#include <NMTDS_PassKeyShape.hxx>
+#include <Standard_Boolean.hxx>
 
+//=======================================================================
+//function : NMTDS_PassKeyShapeMapHasher
+//purpose  : 
+//=======================================================================
 class NMTDS_PassKeyShapeMapHasher  {
-
-public:
-
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
- // Methods PUBLIC
- // 
-
-
-Standard_EXPORT static  Standard_Integer HashCode(const NMTDS_PassKeyShape& aPKey,const Standard_Integer Upper) ;
-
-
-Standard_EXPORT static  Standard_Boolean IsEqual(const NMTDS_PassKeyShape& aPKey1,const NMTDS_PassKeyShape& aPKey2) ;
-
-
-
-
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
-
-
+ public:
+  Standard_EXPORT
+    static  Standard_Integer HashCode(const NMTDS_PassKeyShape& aPKey,
+                                     const Standard_Integer Upper) ;
+  
+  Standard_EXPORT
+    static  Standard_Boolean IsEqual(const NMTDS_PassKeyShape& aPKey1,
+                                    const NMTDS_PassKeyShape& aPKey2) ;
 };
-
-
-
-
-
-// other Inline functions and methods (like "C++: function call" methods)
-//
-
-
 #endif