Salome HOME
Optimization of GetShapesOn<xxx> functionality
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ListOfPnt.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_ListOfPnt_HeaderFile
23 #define _GEOMAlgo_ListOfPnt_HeaderFile
24
25 #ifndef _Standard_Address_HeaderFile
26 #include <Standard_Address.hxx>
27 #endif
28 #ifndef _Handle_GEOMAlgo_ListNodeOfListOfPnt_HeaderFile
29 #include <Handle_GEOMAlgo_ListNodeOfListOfPnt.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_ListIteratorOfListOfPnt;
39 class gp_Pnt;
40 class GEOMAlgo_ListNodeOfListOfPnt;
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_ListOfPnt  {
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_ListOfPnt();
69 Standard_EXPORT   void Assign(const GEOMAlgo_ListOfPnt& Other) ;
70   void operator=(const GEOMAlgo_ListOfPnt& Other) 
71 {
72   Assign(Other);
73 }
74
75 Standard_EXPORT   Standard_Integer Extent() const;
76 Standard_EXPORT   void Clear() ;
77 ~GEOMAlgo_ListOfPnt()
78 {
79   Clear();
80 }
81
82   Standard_Boolean IsEmpty() const;
83 Standard_EXPORT   void Prepend(const gp_Pnt& I) ;
84 Standard_EXPORT   void Prepend(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& theIt) ;
85 Standard_EXPORT   void Prepend(GEOMAlgo_ListOfPnt& Other) ;
86 Standard_EXPORT   void Append(const gp_Pnt& I) ;
87 Standard_EXPORT   void Append(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& theIt) ;
88 Standard_EXPORT   void Append(GEOMAlgo_ListOfPnt& Other) ;
89 Standard_EXPORT   gp_Pnt& First() const;
90 Standard_EXPORT   gp_Pnt& Last() const;
91 Standard_EXPORT   void RemoveFirst() ;
92 Standard_EXPORT   void Remove(GEOMAlgo_ListIteratorOfListOfPnt& It) ;
93 Standard_EXPORT   void InsertBefore(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
94 Standard_EXPORT   void InsertBefore(GEOMAlgo_ListOfPnt& Other,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
95 Standard_EXPORT   void InsertAfter(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
96 Standard_EXPORT   void InsertAfter(GEOMAlgo_ListOfPnt& Other,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
97
98
99 friend class GEOMAlgo_ListIteratorOfListOfPnt;
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_ListOfPnt(const GEOMAlgo_ListOfPnt& Other);
118
119
120  // Fields PRIVATE
121  //
122 Standard_Address myFirst;
123 Standard_Address myLast;
124
125
126 };
127
128 #define Item gp_Pnt
129 #define Item_hxx <gp_Pnt.hxx>
130 #define TCollection_ListNode GEOMAlgo_ListNodeOfListOfPnt
131 #define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfPnt.hxx>
132 #define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfPnt
133 #define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfPnt.hxx>
134 #define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfPnt
135 #define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfPnt_Type_()
136 #define TCollection_List GEOMAlgo_ListOfPnt
137 #define TCollection_List_hxx <GEOMAlgo_ListOfPnt.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