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