PageRenderTime 34ms CodeModel.GetById 14ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/geom-5.1.2.7/inc_pythonocc/GEOMAlgo_ListOfCoupleOfShapes.hxx

http://pythonocc.googlecode.com/
C++ Header | 197 lines | 94 code | 70 blank | 33 comment | 1 complexity | 258323bc3445fa569de04503fe1d3920 MD5 | raw file
  1//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
  2//
  3//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  4//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  5//
  6//  This library is free software; you can redistribute it and/or
  7//  modify it under the terms of the GNU Lesser General Public
  8//  License as published by the Free Software Foundation; either
  9//  version 2.1 of the License.
 10//
 11//  This library is distributed in the hope that it will be useful,
 12//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 13//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14//  Lesser General Public License for more details.
 15//
 16//  You should have received a copy of the GNU Lesser General Public
 17//  License along with this library; if not, write to the Free Software
 18//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 19//
 20//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 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
 37class Standard_NoSuchObject;
 38class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
 39class GEOMAlgo_CoupleOfShapes;
 40class 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
 51class GEOMAlgo_ListOfCoupleOfShapes  {
 52
 53public:
 54
 55    void* operator new(size_t,void* anAddress) 
 56      {
 57        return anAddress;
 58      }
 59    void* operator new(size_t size) 
 60      { 
 61        return Standard::Allocate(size); 
 62      }
 63    void  operator delete(void *anAddress) 
 64      { 
 65        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
 66      }
 67 // Methods PUBLIC
 68 // 
 69
 70
 71Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes();
 72
 73
 74Standard_EXPORT   void Assign(const GEOMAlgo_ListOfCoupleOfShapes& Other) ;
 75  void operator=(const GEOMAlgo_ListOfCoupleOfShapes& Other) 
 76{
 77  Assign(Other);
 78}
 79
 80
 81
 82Standard_EXPORT   Standard_Integer Extent() const;
 83
 84
 85Standard_EXPORT   void Clear() ;
 86~GEOMAlgo_ListOfCoupleOfShapes()
 87{
 88  Clear();
 89}
 90
 91
 92  Standard_Boolean IsEmpty() const;
 93
 94
 95Standard_EXPORT   void Prepend(const GEOMAlgo_CoupleOfShapes& I) ;
 96
 97
 98Standard_EXPORT   void Prepend(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
 99
100
101Standard_EXPORT   void Prepend(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
102
103
104Standard_EXPORT   void Append(const GEOMAlgo_CoupleOfShapes& I) ;
105
106
107Standard_EXPORT   void Append(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& theIt) ;
108
109
110Standard_EXPORT   void Append(GEOMAlgo_ListOfCoupleOfShapes& Other) ;
111
112
113Standard_EXPORT   GEOMAlgo_CoupleOfShapes& First() const;
114
115
116Standard_EXPORT   GEOMAlgo_CoupleOfShapes& Last() const;
117
118
119Standard_EXPORT   void RemoveFirst() ;
120
121
122Standard_EXPORT   void Remove(GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
123
124
125Standard_EXPORT   void InsertBefore(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
126
127
128Standard_EXPORT   void InsertBefore(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
129
130
131Standard_EXPORT   void InsertAfter(const GEOMAlgo_CoupleOfShapes& I,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
132
133
134Standard_EXPORT   void InsertAfter(GEOMAlgo_ListOfCoupleOfShapes& Other,GEOMAlgo_ListIteratorOfListOfCoupleOfShapes& It) ;
135
136
137friend class GEOMAlgo_ListIteratorOfListOfCoupleOfShapes;
138
139
140
141protected:
142
143 // Methods PROTECTED
144 // 
145
146
147 // Fields PROTECTED
148 //
149
150
151private: 
152
153 // Methods PRIVATE
154 // 
155
156
157Standard_EXPORT GEOMAlgo_ListOfCoupleOfShapes(const GEOMAlgo_ListOfCoupleOfShapes& Other);
158
159
160 // Fields PRIVATE
161 //
162Standard_Address myFirst;
163Standard_Address myLast;
164
165
166};
167
168#define Item GEOMAlgo_CoupleOfShapes
169#define Item_hxx <GEOMAlgo_CoupleOfShapes.hxx>
170#define TCollection_ListNode GEOMAlgo_ListNodeOfListOfCoupleOfShapes
171#define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfCoupleOfShapes.hxx>
172#define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfCoupleOfShapes
173#define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx>
174#define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfCoupleOfShapes
175#define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfCoupleOfShapes_Type_()
176#define TCollection_List GEOMAlgo_ListOfCoupleOfShapes
177#define TCollection_List_hxx <GEOMAlgo_ListOfCoupleOfShapes.hxx>
178
179#include <TCollection_List.lxx>
180
181#undef Item
182#undef Item_hxx
183#undef TCollection_ListNode
184#undef TCollection_ListNode_hxx
185#undef TCollection_ListIterator
186#undef TCollection_ListIterator_hxx
187#undef Handle_TCollection_ListNode
188#undef TCollection_ListNode_Type_
189#undef TCollection_List
190#undef TCollection_List_hxx
191
192
193// other Inline functions and methods (like "C++: function call" methods)
194//
195
196
197#endif