1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
21 #define _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
23 #ifndef _Standard_Address_HeaderFile
24 #include <Standard_Address.hxx>
26 #ifndef _Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes_HeaderFile
27 #include <Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
29 #ifndef _Standard_Integer_HeaderFile
30 #include <Standard_Integer.hxx>
32 #ifndef _Standard_Boolean_HeaderFile
33 #include <Standard_Boolean.hxx>
35 class Standard_NoSuchObject;
36 class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
37 class GEOMAlgo_CoupleOfShapes;
38 class GEOMAlgo_ListNodeOfListOfCoupleOfShapes;
41 #ifndef _Standard_HeaderFile
42 #include <Standard.hxx>
44 #ifndef _Standard_Macro_HeaderFile
45 #include <Standard_Macro.hxx>
48 class GEOMAlgo_ListOfCoupleOfShapes {
52 void* operator new(size_t,void* anAddress)
56 void* operator new(size_t size)
58 return Standard::Allocate(size);
60 void operator delete(void *anAddress)
62 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes();
67 Standard_EXPORT void Assign(const GEOMAlgo_ListOfCoupleOfShapes& Other) ;
68 void operator=(const GEOMAlgo_ListOfCoupleOfShapes& Other)
73 Standard_EXPORT Standard_Integer Extent() const;
74 Standard_EXPORT void Clear() ;
75 ~GEOMAlgo_ListOfCoupleOfShapes()
80 Standard_Boolean IsEmpty() const;
81 Standard_EXPORT void Prepend(const GEOMAlgo_CoupleOfShapes& I) ;
82 Standard_EXPORT void Prepend(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
83 Standard_EXPORT void Prepend(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
84 Standard_EXPORT void Append(const GEOMAlgo_CoupleOfShapes& I) ;
85 Standard_EXPORT void Append(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
86 Standard_EXPORT void Append(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
87 Standard_EXPORT GEOMAlgo_CoupleOfShapes& First() const;
88 Standard_EXPORT GEOMAlgo_CoupleOfShapes& Last() const;
89 Standard_EXPORT void RemoveFirst() ;
90 Standard_EXPORT void Remove(GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
91 Standard_EXPORT void InsertBefore(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
92 Standard_EXPORT void InsertBefore(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
93 Standard_EXPORT void InsertAfter(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
94 Standard_EXPORT void InsertAfter(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
97 friend class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
115 Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes(const GEOMAlgo_ListOfCoupleOfShapes& Other);
120 Standard_Address myFirst;
121 Standard_Address myLast;
126 #define Item GEOMAlgo_CoupleOfShapes
127 #define Item_hxx <GEOMAlgo_CoupleOfShapes.hxx>
128 #define TCollection_ListNode GEOMAlgo_ListNodeOfListOfCoupleOfShapes
129 #define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
130 #define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfCoupleOfShapes
131 #define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx>
132 #define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes
133 #define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfCoupleOfShapes_Type_()
134 #define TCollection_List GEOMAlgo_ListOfCoupleOfShapes
135 #define TCollection_List_hxx <GEOMAlgo_ListOfCoupleOfShapes.hxx>
137 #include <TCollection_List.lxx>
141 #undef TCollection_ListNode
142 #undef TCollection_ListNode_hxx
143 #undef TCollection_ListIterator
144 #undef TCollection_ListIterator_hxx
145 #undef Handle_TCollection_ListNode
146 #undef TCollection_ListNode_Type_
147 #undef TCollection_List
148 #undef TCollection_List_hxx
151 // other Inline functions and methods (like "C++: function call" methods)