Salome HOME
aef4e444817ab7e2facf026e7a4fbaa1df33c8cc
[modules/smesh.git] / src / SMDS / SMDS_MapOfMeshElement.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_MapOfMeshElement_HeaderFile
16 #define _SMDS_MapOfMeshElement_HeaderFile
17
18 #ifndef _SMDS_ExtendedMap_HeaderFile
19 #include "SMDS_ExtendedMap.hxx"
20 #endif
21 #ifndef _Standard_Integer_HeaderFile
22 #include <Standard_Integer.hxx>
23 #endif
24 #ifndef _Handle_SMDS_MeshElement_HeaderFile
25 #include "Handle_SMDS_MeshElement.hxx"
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class Standard_NoSuchObject;
31 class SMDS_MeshElement;
32
33
34 #ifndef _Standard_HeaderFile
35 #include <Standard.hxx>
36 #endif
37 #ifndef _Standard_Macro_HeaderFile
38 #include <Standard_Macro.hxx>
39 #endif
40
41 class SMDS_MapOfMeshElement  : public SMDS_ExtendedMap {
42
43 public:
44
45     inline void* operator new(size_t,void* anAddress) 
46       {
47         return anAddress;
48       }
49     inline void* operator new(size_t size) 
50       { 
51         return Standard::Allocate(size); 
52       }
53     inline void  operator delete(void *anAddress) 
54       { 
55         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
56       }
57 //    inline void  operator delete(void *anAddress, size_t size) 
58 //      { 
59 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
60 //      }
61  // Methods PUBLIC
62  // 
63 Standard_EXPORT inline SMDS_MapOfMeshElement(const Standard_Integer NbBuckets = 1);
64 Standard_EXPORT  const Handle_SMDS_MeshElement& Find(const Handle(SMDS_MeshElement)& K) const;
65  const Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) const
66 {
67   return Find(K);
68 }
69
70 Standard_EXPORT   Handle_SMDS_MeshElement& ChangeFind(const Handle(SMDS_MeshElement)& K) ;
71   Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) 
72 {
73   return ChangeFind(K);
74 }
75
76 Standard_EXPORT  const Handle_SMDS_MeshElement& FindID(const Standard_Integer ID) const;
77  const Handle_SMDS_MeshElement& operator()(const Standard_Integer ID) const
78 {
79   return FindID(ID);
80 }
81
82 Standard_EXPORT   Standard_Boolean ContainsID(const Standard_Integer ID) const;
83
84
85
86
87
88 protected:
89
90  // Methods PROTECTED
91  // 
92
93
94  // Fields PROTECTED
95  //
96
97
98 private: 
99
100  // Methods PRIVATE
101  // 
102
103
104  // Fields PRIVATE
105  //
106
107
108 };
109
110
111 #include "SMDS_MapOfMeshElement.lxx"
112
113
114
115 // other inline functions and methods (like "C++: function call" methods)
116 //
117
118
119 #endif