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