Salome HOME
PAL8378: fix a bug in Partition algorithm
[modules/geom.git] / src / NMTTools / NMTTools_ListOfCoupleOfShape.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _NMTTools_ListOfCoupleOfShape_HeaderFile
16 #define _NMTTools_ListOfCoupleOfShape_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _Handle_NMTTools_ListNodeOfListOfCoupleOfShape_HeaderFile
22 #include <Handle_NMTTools_ListNodeOfListOfCoupleOfShape.hxx>
23 #endif
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class Standard_NoSuchObject;
31 class NMTTools_ListIteratorOfListOfCoupleOfShape;
32 class NMTTools_CoupleOfShape;
33 class NMTTools_ListNodeOfListOfCoupleOfShape;
34
35
36 #ifndef _Standard_HeaderFile
37 #include <Standard.hxx>
38 #endif
39 #ifndef _Standard_Macro_HeaderFile
40 #include <Standard_Macro.hxx>
41 #endif
42
43 class NMTTools_ListOfCoupleOfShape  {
44
45 public:
46
47     void* operator new(size_t,void* anAddress) 
48       {
49         return anAddress;
50       }
51     void* operator new(size_t size) 
52       { 
53         return Standard::Allocate(size); 
54       }
55     void  operator delete(void *anAddress) 
56       { 
57         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
58       }
59  // Methods PUBLIC
60  // 
61 Standard_EXPORT NMTTools_ListOfCoupleOfShape();
62 Standard_EXPORT   void Assign(const NMTTools_ListOfCoupleOfShape& Other) ;
63   void operator=(const NMTTools_ListOfCoupleOfShape& Other) 
64 {
65   Assign(Other);
66 }
67
68 Standard_EXPORT   Standard_Integer Extent() const;
69 Standard_EXPORT   void Clear() ;
70 ~NMTTools_ListOfCoupleOfShape()
71 {
72   Clear();
73 }
74
75   Standard_Boolean IsEmpty() const;
76 Standard_EXPORT   void Prepend(const NMTTools_CoupleOfShape& I) ;
77 Standard_EXPORT   void Prepend(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& theIt) ;
78 Standard_EXPORT   void Prepend(NMTTools_ListOfCoupleOfShape& Other) ;
79 Standard_EXPORT   void Append(const NMTTools_CoupleOfShape& I) ;
80 Standard_EXPORT   void Append(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& theIt) ;
81 Standard_EXPORT   void Append(NMTTools_ListOfCoupleOfShape& Other) ;
82 Standard_EXPORT   NMTTools_CoupleOfShape& First() const;
83 Standard_EXPORT   NMTTools_CoupleOfShape& Last() const;
84 Standard_EXPORT   void RemoveFirst() ;
85 Standard_EXPORT   void Remove(NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
86 Standard_EXPORT   void InsertBefore(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
87 Standard_EXPORT   void InsertBefore(NMTTools_ListOfCoupleOfShape& Other,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
88 Standard_EXPORT   void InsertAfter(const NMTTools_CoupleOfShape& I,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
89 Standard_EXPORT   void InsertAfter(NMTTools_ListOfCoupleOfShape& Other,NMTTools_ListIteratorOfListOfCoupleOfShape& It) ;
90
91
92 friend class NMTTools_ListIteratorOfListOfCoupleOfShape;
93
94
95
96 protected:
97
98  // Methods PROTECTED
99  // 
100
101
102  // Fields PROTECTED
103  //
104
105
106 private: 
107
108  // Methods PRIVATE
109  // 
110 Standard_EXPORT NMTTools_ListOfCoupleOfShape(const NMTTools_ListOfCoupleOfShape& Other);
111
112
113  // Fields PRIVATE
114  //
115 Standard_Address myFirst;
116 Standard_Address myLast;
117
118
119 };
120
121 #define Item NMTTools_CoupleOfShape
122 #define Item_hxx <NMTTools_CoupleOfShape.hxx>
123 #define TCollection_ListNode NMTTools_ListNodeOfListOfCoupleOfShape
124 #define TCollection_ListNode_hxx <NMTTools_ListNodeOfListOfCoupleOfShape.hxx>
125 #define TCollection_ListIterator NMTTools_ListIteratorOfListOfCoupleOfShape
126 #define TCollection_ListIterator_hxx <NMTTools_ListIteratorOfListOfCoupleOfShape.hxx>
127 #define Handle_TCollection_ListNode Handle_NMTTools_ListNodeOfListOfCoupleOfShape
128 #define TCollection_ListNode_Type_() NMTTools_ListNodeOfListOfCoupleOfShape_Type_()
129 #define TCollection_List NMTTools_ListOfCoupleOfShape
130 #define TCollection_List_hxx <NMTTools_ListOfCoupleOfShape.hxx>
131
132 #include <TCollection_List.lxx>
133
134 #undef Item
135 #undef Item_hxx
136 #undef TCollection_ListNode
137 #undef TCollection_ListNode_hxx
138 #undef TCollection_ListIterator
139 #undef TCollection_ListIterator_hxx
140 #undef Handle_TCollection_ListNode
141 #undef TCollection_ListNode_Type_
142 #undef TCollection_List
143 #undef TCollection_List_hxx
144
145
146 // other Inline functions and methods (like "C++: function call" methods)
147 //
148
149
150 #endif