Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMDS / SMDS_PntHasher.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_PntHasher_HeaderFile
16 #define _SMDS_PntHasher_HeaderFile
17
18 #ifndef _Standard_Integer_HeaderFile
19 #include <Standard_Integer.hxx>
20 #endif
21 #ifndef _Standard_Boolean_HeaderFile
22 #include <Standard_Boolean.hxx>
23 #endif
24 class gp_Pnt;
25
26
27 #ifndef _Standard_HeaderFile
28 #include <Standard.hxx>
29 #endif
30 #ifndef _Standard_Macro_HeaderFile
31 #include <Standard_Macro.hxx>
32 #endif
33
34 class SMDS_PntHasher  {
35
36 public:
37
38     inline void* operator new(size_t,void* anAddress) 
39       {
40         return anAddress;
41       }
42     inline void* operator new(size_t size) 
43       { 
44         return Standard::Allocate(size); 
45       }
46     inline void  operator delete(void *anAddress) 
47       { 
48         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
49       }
50 //    inline void  operator delete(void *anAddress, size_t size) 
51 //      { 
52 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
53 //      }
54  // Methods PUBLIC
55  // 
56 Standard_EXPORT inline static  Standard_Integer HashCode(const gp_Pnt& Point,const Standard_Integer Upper) ;
57 Standard_EXPORT inline static  Standard_Boolean IsEqual(const gp_Pnt& Point1,const gp_Pnt& Point2) ;
58
59
60
61
62
63 protected:
64
65  // Methods PROTECTED
66  // 
67
68
69  // Fields PROTECTED
70  //
71
72
73 private: 
74
75  // Methods PRIVATE
76  // 
77
78
79  // Fields PRIVATE
80  //
81
82
83 };
84
85
86 #include "SMDS_PntHasher.lxx"
87
88
89
90 // other inline functions and methods (like "C++: function call" methods)
91 //
92
93
94 #endif