Salome HOME
Update mail address
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 #ifndef _GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
21 #define _GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
22
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
25 #endif
26 #ifndef _Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
27 #include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
28 #endif
29
30 #ifndef _GEOMAlgo_PassKey_HeaderFile
31 #include <GEOMAlgo_PassKey.hxx>
32 #endif
33 #ifndef _Standard_Integer_HeaderFile
34 #include <Standard_Integer.hxx>
35 #endif
36 #ifndef _TCollection_MapNode_HeaderFile
37 #include <TCollection_MapNode.hxx>
38 #endif
39 #ifndef _TCollection_MapNodePtr_HeaderFile
40 #include <TCollection_MapNodePtr.hxx>
41 #endif
42 class GEOMAlgo_PassKey;
43 class GEOMAlgo_PassKeyMapHasher;
44 class GEOMAlgo_DataMapOfPassKeyInteger;
45 class GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger;
46
47
48 class GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger : public TCollection_MapNode {
49
50 public:
51
52     void* operator new(size_t,void* anAddress) 
53       {
54         return anAddress;
55       }
56     void* operator new(size_t size) 
57       { 
58         return Standard::Allocate(size); 
59       }
60     void  operator delete(void *anAddress) 
61       { 
62         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
63       }
64  // Methods PUBLIC
65  // 
66 GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger(const GEOMAlgo_PassKey& K,const Standard_Integer& I,const TCollection_MapNodePtr& n);
67   GEOMAlgo_PassKey& Key() const;
68   Standard_Integer& Value() const;
69 Standard_EXPORT ~GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger();
70
71
72
73
74  // Type management
75  //
76  Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_();
77  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
78  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
79
80 protected:
81
82  // Methods PROTECTED
83  // 
84
85
86  // Fields PROTECTED
87  //
88
89
90 private: 
91
92  // Methods PRIVATE
93  // 
94
95
96  // Fields PRIVATE
97  //
98 GEOMAlgo_PassKey myKey;
99 Standard_Integer myValue;
100
101
102 };
103
104 #define TheKey GEOMAlgo_PassKey
105 #define TheKey_hxx <GEOMAlgo_PassKey.hxx>
106 #define TheItem Standard_Integer
107 #define TheItem_hxx <Standard_Integer.hxx>
108 #define Hasher GEOMAlgo_PassKeyMapHasher
109 #define Hasher_hxx <GEOMAlgo_PassKeyMapHasher.hxx>
110 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
111 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
112 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger
113 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger.hxx>
114 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
115 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_()
116 #define TCollection_DataMap GEOMAlgo_DataMapOfPassKeyInteger
117 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfPassKeyInteger.hxx>
118
119 #include <TCollection_DataMapNode.lxx>
120
121 #undef TheKey
122 #undef TheKey_hxx
123 #undef TheItem
124 #undef TheItem_hxx
125 #undef Hasher
126 #undef Hasher_hxx
127 #undef TCollection_DataMapNode
128 #undef TCollection_DataMapNode_hxx
129 #undef TCollection_DataMapIterator
130 #undef TCollection_DataMapIterator_hxx
131 #undef Handle_TCollection_DataMapNode
132 #undef TCollection_DataMapNode_Type_
133 #undef TCollection_DataMap
134 #undef TCollection_DataMap_hxx
135
136
137 // other Inline functions and methods (like "C++: function call" methods)
138 //
139
140
141 #endif