Salome HOME
NRI : Change lGeometryClient by lGEOMClient.
[modules/smesh.git] / src / SMDS / SMDS_MeshElementMapHasher.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _SMDS_MeshElementMapHasher_HeaderFile
16 #define _SMDS_MeshElementMapHasher_HeaderFile
17
18 #ifndef _Standard_Integer_HeaderFile
19 #include <Standard_Integer.hxx>
20 #endif
21 #ifndef _Handle_SMDS_MeshElement_HeaderFile
22 #include "Handle_SMDS_MeshElement.hxx"
23 #endif
24 #ifndef _Standard_Boolean_HeaderFile
25 #include <Standard_Boolean.hxx>
26 #endif
27 class SMDS_MeshElement;
28
29
30 #ifndef _Standard_HeaderFile
31 #include <Standard.hxx>
32 #endif
33 #ifndef _Standard_Macro_HeaderFile
34 #include <Standard_Macro.hxx>
35 #endif
36
37 class SMDS_MeshElementMapHasher  {
38
39 public:
40
41     inline void* operator new(size_t,void* anAddress) 
42       {
43         return anAddress;
44       }
45     inline void* operator new(size_t size) 
46       { 
47         return Standard::Allocate(size); 
48       }
49     inline void  operator delete(void *anAddress) 
50       { 
51         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
52       }
53 //    inline void  operator delete(void *anAddress, size_t size) 
54 //      { 
55 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
56 //      }
57  // Methods PUBLIC
58  // 
59 Standard_EXPORT inline static  Standard_Integer HashCode(const Handle(SMDS_MeshElement)& ME,const Standard_Integer Upper) ;
60 Standard_EXPORT inline static  Standard_Boolean IsEqual(const Handle(SMDS_MeshElement)& ME1,const Handle(SMDS_MeshElement)& ME2) ;
61
62
63
64
65
66 protected:
67
68  // Methods PROTECTED
69  // 
70
71
72  // Fields PROTECTED
73  //
74
75
76 private: 
77
78  // Methods PRIVATE
79  // 
80
81
82  // Fields PRIVATE
83  //
84
85
86 };
87
88
89 #include "SMDS_MeshElementMapHasher.lxx"
90
91
92
93 // other inline functions and methods (like "C++: function call" methods)
94 //
95
96
97 #endif