Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/geom.git] / src / NMTTools / NMTTools_ListOfCoupleOfShape.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 _NMTTools_ListOfCoupleOfShape_HeaderFile
21 #define _NMTTools_ListOfCoupleOfShape_HeaderFile
22
23 #ifndef _Standard_Address_HeaderFile
24 #include <Standard_Address.hxx>
25 #endif
26 #ifndef _Handle_NMTTools_ListNodeOfListOfCoupleOfShape_HeaderFile
27 #include <Handle_NMTTools_ListNodeOfListOfCoupleOfShape.hxx>
28 #endif
29 #ifndef _Standard_Integer_HeaderFile
30 #include <Standard_Integer.hxx>
31 #endif
32 #ifndef _Standard_Boolean_HeaderFile
33 #include <Standard_Boolean.hxx>
34 #endif
35 class Standard_NoSuchObject;
36 class NMTTools_ListIteratorOfListOfCoupleOfShape;
37 class NMTTools_CoupleOfShape;
38 class NMTTools_ListNodeOfListOfCoupleOfShape;
39
40
41 #ifndef _Standard_HeaderFile
42 #include <Standard.hxx>
43 #endif
44 #ifndef _Standard_Macro_HeaderFile
45 #include <Standard_Macro.hxx>
46 #endif
47
48 class NMTTools_ListOfCoupleOfShape  {
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 Standard_EXPORT NMTTools_ListOfCoupleOfShape();
67 Standard_EXPORT   void Assign(const NMTTools_ListOfCoupleOfShape& Other) ;
68   void operator=(const NMTTools_ListOfCoupleOfShape& Other) 
69 {
70   Assign(Other);
71 }
72
73 Standard_EXPORT   Standard_Integer Extent() const;
74 Standard_EXPORT   void Clear() ;
75 ~NMTTools_ListOfCoupleOfShape()
76 {
77   Clear();
78 }
79
80   Standard_Boolean IsEmpty() const;
81 Standard_EXPORT   void Prepend(const NMTTools_CoupleOfShape& I) ;
82 Standard_EXPORT   void Prepend(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& theIt) ;
83 Standard_EXPORT   void Prepend(NMTTools_ListOfCoupleOfShape& Other) ;
84 Standard_EXPORT   void Append(const NMTTools_CoupleOfShape& I) ;
85 Standard_EXPORT   void Append(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& theIt) ;
86 Standard_EXPORT   void Append(NMTTools_ListOfCoupleOfShape& Other) ;
87 Standard_EXPORT   NMTTools_CoupleOfShape& First() const;
88 Standard_EXPORT   NMTTools_CoupleOfShape& Last() const;
89 Standard_EXPORT   void RemoveFirst() ;
90 Standard_EXPORT   void Remove(NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
91 Standard_EXPORT   void InsertBefore(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
92 Standard_EXPORT   void InsertBefore(NMTTools_ListOfCoupleOfShape& Other,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
93 Standard_EXPORT   void InsertAfter(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
94 Standard_EXPORT   void InsertAfter(NMTTools_ListOfCoupleOfShape& Other,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
95
96
97 friend class NMTTools_ListIteratorOfListOfCoupleOfShape;
98
99
100
101 protected:
102
103  // Methods PROTECTED
104  // 
105
106
107  // Fields PROTECTED
108  //
109
110
111 private: 
112
113  // Methods PRIVATE
114  // 
115 Standard_EXPORT NMTTools_ListOfCoupleOfShape(const NMTTools_ListOfCoupleOfShape& Other);
116
117
118  // Fields PRIVATE
119  //
120 Standard_Address myFirst;
121 Standard_Address myLast;
122
123
124 };
125
126 #define Item NMTTools_CoupleOfShape
127 #define Item_hxx <NMTTools_CoupleOfShape.hxx>
128 #define TCollection_ListNode NMTTools_ListNodeOfListOfCoupleOfShape
129 #define TCollection_ListNode_hxx <NMTTools_ListNodeOfListOfCoupleOfShape.hxx>
130 #define TCollection_ListIterator NMTTools_ListIteratorOfListOfCoupleOfShape
131 #define TCollection_ListIterator_hxx <NMTTools_ListIteratorOfListOfCoupleOfShape.hxx>
132 #define Handle_TCollection_ListNode Handle_NMTTools_ListNodeOfListOfCoupleOfShape
133 #define TCollection_ListNode_Type_() NMTTools_ListNodeOfListOfCoupleOfShape_Type_()
134 #define TCollection_List NMTTools_ListOfCoupleOfShape
135 #define TCollection_List_hxx <NMTTools_ListOfCoupleOfShape.hxx>
136
137 #include <TCollection_List.lxx>
138
139 #undef Item
140 #undef Item_hxx
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
149
150
151 // other Inline functions and methods (like "C++: function call" methods)
152 //
153
154
155 #endif