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