Salome HOME
Porting to BR-D5-38-2003 branch
[modules/geom.git] / src / NMTTools / NMTTools_IndexedDataMapOfIndexedMapOfInteger.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 _NMTTools_IndexedDataMapOfIndexedMapOfInteger_HeaderFile
16 #define _NMTTools_IndexedDataMapOfIndexedMapOfInteger_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_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger_HeaderFile
25 #include <Handle_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class Standard_DomainError;
31 class Standard_OutOfRange;
32 class Standard_NoSuchObject;
33 class TColStd_IndexedMapOfInteger;
34 class TColStd_MapIntegerHasher;
35 class NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger;
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 NMTTools_IndexedDataMapOfIndexedMapOfInteger  : public TCollection_BasicMap {
46
47 public:
48
49     void* operator new(size_t,void* anAddress) 
50       {
51         return anAddress;
52       }
53     void* operator new(size_t size) 
54       { 
55         return Standard::Allocate(size); 
56       }
57     void  operator delete(void *anAddress) 
58       { 
59         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
60       }
61  // Methods PUBLIC
62  // 
63 Standard_EXPORT NMTTools_IndexedDataMapOfIndexedMapOfInteger(const Standard_Integer NbBuckets = 1);
64 Standard_EXPORT   NMTTools_IndexedDataMapOfIndexedMapOfInteger& Assign(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& Other) ;
65   NMTTools_IndexedDataMapOfIndexedMapOfInteger& operator =(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& Other) 
66 {
67   return Assign(Other);
68 }
69
70 Standard_EXPORT   void ReSize(const Standard_Integer NbBuckets) ;
71 Standard_EXPORT   void Clear() ;
72 ~NMTTools_IndexedDataMapOfIndexedMapOfInteger()
73 {
74   Clear();
75 }
76
77 Standard_EXPORT   Standard_Integer Add(const Standard_Integer& K,const TColStd_IndexedMapOfInteger& I) ;
78 Standard_EXPORT   void Substitute(const Standard_Integer I,const Standard_Integer& K,const TColStd_IndexedMapOfInteger& T) ;
79 Standard_EXPORT   void RemoveLast() ;
80 Standard_EXPORT   Standard_Boolean Contains(const Standard_Integer& K) const;
81 Standard_EXPORT  const Standard_Integer& FindKey(const Standard_Integer I) const;
82 Standard_EXPORT  const TColStd_IndexedMapOfInteger& FindFromIndex(const Standard_Integer I) const;
83  const TColStd_IndexedMapOfInteger& operator ()(const Standard_Integer I) const
84 {
85   return FindFromIndex(I);
86 }
87
88 Standard_EXPORT   TColStd_IndexedMapOfInteger& ChangeFromIndex(const Standard_Integer I) ;
89   TColStd_IndexedMapOfInteger& operator ()(const Standard_Integer I) 
90 {
91   return ChangeFromIndex(I);
92 }
93
94 Standard_EXPORT   Standard_Integer FindIndex(const Standard_Integer& K) const;
95 Standard_EXPORT  const TColStd_IndexedMapOfInteger& FindFromKey(const Standard_Integer& K) const;
96 Standard_EXPORT   TColStd_IndexedMapOfInteger& ChangeFromKey(const Standard_Integer& K) ;
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 NMTTools_IndexedDataMapOfIndexedMapOfInteger(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& 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