Salome HOME
Fix bug 13341: geompy.SubShapeAllSortedIDs() works wrong.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ListNodeOfListOfCoupleOfShapes.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_ListNodeOfListOfCoupleOfShapes_HeaderFile
21 #define _GEOMAlgo_ListNodeOfListOfCoupleOfShapes_HeaderFile
22
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
25 #endif
26 #ifndef _Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes_HeaderFile
27 #include <Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
28 #endif
29
30 #ifndef _GEOMAlgo_CoupleOfShapes_HeaderFile
31 #include <GEOMAlgo_CoupleOfShapes.hxx>
32 #endif
33 #ifndef _TCollection_MapNode_HeaderFile
34 #include <TCollection_MapNode.hxx>
35 #endif
36 #ifndef _TCollection_MapNodePtr_HeaderFile
37 #include <TCollection_MapNodePtr.hxx>
38 #endif
39 class GEOMAlgo_CoupleOfShapes;
40 class GEOMAlgo_ListOfCoupleOfShapes;
41 class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
42
43
44 class GEOMAlgo_ListNodeOfListOfCoupleOfShapes : public TCollection_MapNode {
45
46 public:
47
48     void* operator new(size_t,void* anAddress) 
49       {
50         return anAddress;
51       }
52     void* operator new(size_t size) 
53       { 
54         return Standard::Allocate(size); 
55       }
56     void  operator delete(void *anAddress) 
57       { 
58         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
59       }
60  // Methods PUBLIC
61  // 
62 GEOMAlgo_ListNodeOfListOfCoupleOfShapes(const GEOMAlgo_CoupleOfShapes& I,const TCollection_MapNodePtr& n);
63   GEOMAlgo_CoupleOfShapes& Value() const;
64 Standard_EXPORT ~GEOMAlgo_ListNodeOfListOfCoupleOfShapes();
65
66
67
68
69  // Type management
70  //
71  Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_ListNodeOfListOfCoupleOfShapes_Type_();
72  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
73  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
74
75 protected:
76
77  // Methods PROTECTED
78  // 
79
80
81  // Fields PROTECTED
82  //
83
84
85 private: 
86
87  // Methods PRIVATE
88  // 
89
90
91  // Fields PRIVATE
92  //
93 GEOMAlgo_CoupleOfShapes myValue;
94
95
96 };
97
98 #define Item GEOMAlgo_CoupleOfShapes
99 #define Item_hxx <GEOMAlgo_CoupleOfShapes.hxx>
100 #define TCollection_ListNode GEOMAlgo_ListNodeOfListOfCoupleOfShapes
101 #define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
102 #define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfCoupleOfShapes
103 #define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx>
104 #define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes
105 #define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfCoupleOfShapes_Type_()
106 #define TCollection_List GEOMAlgo_ListOfCoupleOfShapes
107 #define TCollection_List_hxx <GEOMAlgo_ListOfCoupleOfShapes.hxx>
108
109 #include <TCollection_ListNode.lxx>
110
111 #undef Item
112 #undef Item_hxx
113 #undef TCollection_ListNode
114 #undef TCollection_ListNode_hxx
115 #undef TCollection_ListIterator
116 #undef TCollection_ListIterator_hxx
117 #undef Handle_TCollection_ListNode
118 #undef TCollection_ListNode_Type_
119 #undef TCollection_List
120 #undef TCollection_List_hxx
121
122
123 // other Inline functions and methods (like "C++: function call" methods)
124 //
125
126
127 #endif