1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef _NMTDS_ListOfPassKeyBoolean_HeaderFile
23 #define _NMTDS_ListOfPassKeyBoolean_HeaderFile
25 #ifndef _Standard_Address_HeaderFile
26 #include <Standard_Address.hxx>
28 #ifndef _Handle_NMTDS_ListNodeOfListOfPassKeyBoolean_HeaderFile
29 #include <Handle_NMTDS_ListNodeOfListOfPassKeyBoolean.hxx>
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
34 #ifndef _Standard_Boolean_HeaderFile
35 #include <Standard_Boolean.hxx>
37 class Standard_NoSuchObject;
38 class NMTDS_ListIteratorOfListOfPassKeyBoolean;
39 class NMTDS_PassKeyBoolean;
40 class NMTDS_ListNodeOfListOfPassKeyBoolean;
43 #ifndef _Standard_HeaderFile
44 #include <Standard.hxx>
46 #ifndef _Standard_Macro_HeaderFile
47 #include <Standard_Macro.hxx>
51 class NMTDS_ListOfPassKeyBoolean {
55 void* operator new(size_t,void* anAddress)
59 void* operator new(size_t size)
61 return Standard::Allocate(size);
63 void operator delete(void *anAddress)
65 if (anAddress) Standard::Free((Standard_Address&)anAddress);
71 Standard_EXPORT NMTDS_ListOfPassKeyBoolean();
74 Standard_EXPORT void Assign(const NMTDS_ListOfPassKeyBoolean& Other) ;
75 void operator=(const NMTDS_ListOfPassKeyBoolean& Other)
82 Standard_EXPORT Standard_Integer Extent() const;
85 Standard_EXPORT void Clear() ;
86 ~NMTDS_ListOfPassKeyBoolean()
92 Standard_Boolean IsEmpty() const;
95 Standard_EXPORT void Prepend(const NMTDS_PassKeyBoolean& I) ;
98 Standard_EXPORT void Prepend(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& theIt) ;
101 Standard_EXPORT void Prepend(NMTDS_ListOfPassKeyBoolean& Other) ;
104 Standard_EXPORT void Append(const NMTDS_PassKeyBoolean& I) ;
107 Standard_EXPORT void Append(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& theIt) ;
110 Standard_EXPORT void Append(NMTDS_ListOfPassKeyBoolean& Other) ;
113 Standard_EXPORT NMTDS_PassKeyBoolean& First() const;
116 Standard_EXPORT NMTDS_PassKeyBoolean& Last() const;
119 Standard_EXPORT void RemoveFirst() ;
122 Standard_EXPORT void Remove(NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
125 Standard_EXPORT void InsertBefore(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
128 Standard_EXPORT void InsertBefore(NMTDS_ListOfPassKeyBoolean& Other,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
131 Standard_EXPORT void InsertAfter(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
134 Standard_EXPORT void InsertAfter(NMTDS_ListOfPassKeyBoolean& Other,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
137 friend class NMTDS_ListIteratorOfListOfPassKeyBoolean;
157 Standard_EXPORT NMTDS_ListOfPassKeyBoolean(const NMTDS_ListOfPassKeyBoolean& Other);
162 Standard_Address myFirst;
163 Standard_Address myLast;
168 #define Item NMTDS_PassKeyBoolean
169 #define Item_hxx <NMTDS_PassKeyBoolean.hxx>
170 #define TCollection_ListNode NMTDS_ListNodeOfListOfPassKeyBoolean
171 #define TCollection_ListNode_hxx <NMTDS_ListNodeOfListOfPassKeyBoolean.hxx>
172 #define TCollection_ListIterator NMTDS_ListIteratorOfListOfPassKeyBoolean
173 #define TCollection_ListIterator_hxx <NMTDS_ListIteratorOfListOfPassKeyBoolean.hxx>
174 #define Handle_TCollection_ListNode Handle_NMTDS_ListNodeOfListOfPassKeyBoolean
175 #define TCollection_ListNode_Type_() NMTDS_ListNodeOfListOfPassKeyBoolean_Type_()
176 #define TCollection_List NMTDS_ListOfPassKeyBoolean
177 #define TCollection_List_hxx <NMTDS_ListOfPassKeyBoolean.hxx>
179 #include <TCollection_List.lxx>
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
193 // other Inline functions and methods (like "C++: function call" methods)