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