Salome HOME
PAL8395: Improve CheckCompoundOfBlocks and RemoveExtraEdges. Improvement done by...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ListOfCoupleOfShapes.hxx
1 // File generated by CPPExt (Value)
2 //
3 //                     Copyright (C) 1991 - 2000 by  
4 //                      Matra Datavision SA.  All rights reserved.
5 //  
6 //                     Copyright (C) 2001 - 2004 by
7 //                     Open CASCADE SA.  All rights reserved.
8 // 
9 // This file is part of the Open CASCADE Technology software.
10 //
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
14 //  
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
20 // License.
21
22 #ifndef _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
23 #define _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
24
25 #ifndef _Standard_Address_HeaderFile
26 #include <Standard_Address.hxx>
27 #endif
28 #ifndef _Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes_HeaderFile
29 #include <Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
30 #endif
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
33 #endif
34 #ifndef _Standard_Boolean_HeaderFile
35 #include <Standard_Boolean.hxx>
36 #endif
37 class Standard_NoSuchObject;
38 class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
39 class GEOMAlgo_CoupleOfShapes;
40 class GEOMAlgo_ListNodeOfListOfCoupleOfShapes;
41
42
43 #ifndef _Standard_HeaderFile
44 #include <Standard.hxx>
45 #endif
46 #ifndef _Standard_Macro_HeaderFile
47 #include <Standard_Macro.hxx>
48 #endif
49
50 class GEOMAlgo_ListOfCoupleOfShapes  {
51
52 public:
53
54     void* operator new(size_t,void* anAddress) 
55       {
56         return anAddress;
57       }
58     void* operator new(size_t size) 
59       { 
60         return Standard::Allocate(size); 
61       }
62     void  operator delete(void *anAddress) 
63       { 
64         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
65       }
66  // Methods PUBLIC
67  // 
68 Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes();
69 Standard_EXPORT   void Assign(const GEOMAlgo_ListOfCoupleOfShapes& Other) ;
70   void operator=(const GEOMAlgo_ListOfCoupleOfShapes& Other) 
71 {
72   Assign(Other);
73 }
74
75 Standard_EXPORT   Standard_Integer Extent() const;
76 Standard_EXPORT   void Clear() ;
77 ~GEOMAlgo_ListOfCoupleOfShapes()
78 {
79   Clear();
80 }
81
82   Standard_Boolean IsEmpty() const;
83 Standard_EXPORT   void Prepend(const GEOMAlgo_CoupleOfShapes& I) ;
84 Standard_EXPORT   void Prepend(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
85 Standard_EXPORT   void Prepend(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
86 Standard_EXPORT   void Append(const GEOMAlgo_CoupleOfShapes& I) ;
87 Standard_EXPORT   void Append(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
88 Standard_EXPORT   void Append(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
89 Standard_EXPORT   GEOMAlgo_CoupleOfShapes& First() const;
90 Standard_EXPORT   GEOMAlgo_CoupleOfShapes& Last() const;
91 Standard_EXPORT   void RemoveFirst() ;
92 Standard_EXPORT   void Remove(GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
93 Standard_EXPORT   void InsertBefore(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
94 Standard_EXPORT   void InsertBefore(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
95 Standard_EXPORT   void InsertAfter(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
96 Standard_EXPORT   void InsertAfter(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
97
98
99 friend class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
100
101
102
103 protected:
104
105  // Methods PROTECTED
106  // 
107
108
109  // Fields PROTECTED
110  //
111
112
113 private: 
114
115  // Methods PRIVATE
116  // 
117 Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes(const GEOMAlgo_ListOfCoupleOfShapes& Other);
118
119
120  // Fields PRIVATE
121  //
122 Standard_Address myFirst;
123 Standard_Address myLast;
124
125
126 };
127
128 #define Item GEOMAlgo_CoupleOfShapes
129 #define Item_hxx <GEOMAlgo_CoupleOfShapes.hxx>
130 #define TCollection_ListNode GEOMAlgo_ListNodeOfListOfCoupleOfShapes
131 #define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
132 #define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfCoupleOfShapes
133 #define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx>
134 #define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes
135 #define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfCoupleOfShapes_Type_()
136 #define TCollection_List GEOMAlgo_ListOfCoupleOfShapes
137 #define TCollection_List_hxx <GEOMAlgo_ListOfCoupleOfShapes.hxx>
138
139 #include <TCollection_List.lxx>
140
141 #undef Item
142 #undef Item_hxx
143 #undef TCollection_ListNode
144 #undef TCollection_ListNode_hxx
145 #undef TCollection_ListIterator
146 #undef TCollection_ListIterator_hxx
147 #undef Handle_TCollection_ListNode
148 #undef TCollection_ListNode_Type_
149 #undef TCollection_List
150 #undef TCollection_List_hxx
151
152
153 // other Inline functions and methods (like "C++: function call" methods)
154 //
155
156
157 #endif