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