Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMESHDS / SMESHDS_DataMapOfShapeListOfPtrHypothesis.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 _SMESHDS_DataMapOfShapeListOfPtrHypothesis_HeaderFile
16 #define _SMESHDS_DataMapOfShapeListOfPtrHypothesis_HeaderFile
17
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
20 #endif
21 #ifndef _Handle_SMESHDS_DataMapNodeOfDataMapOfShapeListOfPtrHypothesis_HeaderFile
22 #include "Handle_SMESHDS_DataMapNodeOfDataMapOfShapeListOfPtrHypothesis.hxx"
23 #endif
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class Standard_DomainError;
31 class Standard_NoSuchObject;
32 class TopoDS_Shape;
33 class SMESHDS_ListOfPtrHypothesis;
34 class TopTools_ShapeMapHasher;
35 class SMESHDS_DataMapNodeOfDataMapOfShapeListOfPtrHypothesis;
36 class SMESHDS_DataMapIteratorOfDataMapOfShapeListOfPtrHypothesis;
37
38
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
41 #endif
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
44 #endif
45
46 class SMESHDS_DataMapOfShapeListOfPtrHypothesis  : public TCollection_BasicMap {
47
48 public:
49
50     inline void* operator new(size_t,void* anAddress) 
51       {
52         return anAddress;
53       }
54     inline void* operator new(size_t size) 
55       { 
56         return Standard::Allocate(size); 
57       }
58     inline void  operator delete(void *anAddress) 
59       { 
60         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
61       }
62 //    inline void  operator delete(void *anAddress, size_t size) 
63 //      { 
64 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
65 //      }
66  // Methods PUBLIC
67  // 
68 Standard_EXPORT SMESHDS_DataMapOfShapeListOfPtrHypothesis(const Standard_Integer NbBuckets = 1);
69 Standard_EXPORT   SMESHDS_DataMapOfShapeListOfPtrHypothesis& Assign(const SMESHDS_DataMapOfShapeListOfPtrHypothesis& Other) ;
70   SMESHDS_DataMapOfShapeListOfPtrHypothesis& operator =(const SMESHDS_DataMapOfShapeListOfPtrHypothesis& Other) 
71 {
72   return Assign(Other);
73 }
74
75 Standard_EXPORT   void ReSize(const Standard_Integer NbBuckets) ;
76 Standard_EXPORT   void Clear() ;
77 ~SMESHDS_DataMapOfShapeListOfPtrHypothesis()
78 {
79   Clear();
80 }
81
82 Standard_EXPORT   Standard_Boolean Bind(const TopoDS_Shape& K,const SMESHDS_ListOfPtrHypothesis& I) ;
83 Standard_EXPORT   Standard_Boolean IsBound(const TopoDS_Shape& K) const;
84 Standard_EXPORT   Standard_Boolean UnBind(const TopoDS_Shape& K) ;
85 Standard_EXPORT  const SMESHDS_ListOfPtrHypothesis& Find(const TopoDS_Shape& K) const;
86  const SMESHDS_ListOfPtrHypothesis& operator()(const TopoDS_Shape& K) const
87 {
88   return Find(K);
89 }
90
91 Standard_EXPORT   SMESHDS_ListOfPtrHypothesis& ChangeFind(const TopoDS_Shape& K) ;
92   SMESHDS_ListOfPtrHypothesis& operator()(const TopoDS_Shape& K) 
93 {
94   return ChangeFind(K);
95 }
96
97
98
99
100
101
102 protected:
103
104  // Methods PROTECTED
105  // 
106
107
108  // Fields PROTECTED
109  //
110
111
112 private: 
113
114  // Methods PRIVATE
115  // 
116 Standard_EXPORT SMESHDS_DataMapOfShapeListOfPtrHypothesis(const SMESHDS_DataMapOfShapeListOfPtrHypothesis& Other);
117
118
119  // Fields PRIVATE
120  //
121
122
123 };
124
125
126
127
128
129 // other inline functions and methods (like "C++: function call" methods)
130 //
131
132
133 #endif