Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/geom.git] / src / NMTDS / NMTDS_ListOfPassKeyBoolean.hxx
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 _NMTDS_ListOfPassKeyBoolean_HeaderFile
23 #define _NMTDS_ListOfPassKeyBoolean_HeaderFile
24
25 #ifndef _Standard_Address_HeaderFile
26 #include <Standard_Address.hxx>
27 #endif
28 #ifndef _Handle_NMTDS_ListNodeOfListOfPassKeyBoolean_HeaderFile
29 #include <Handle_NMTDS_ListNodeOfListOfPassKeyBoolean.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 NMTDS_ListIteratorOfListOfPassKeyBoolean;
39 class NMTDS_PassKeyBoolean;
40 class NMTDS_ListNodeOfListOfPassKeyBoolean;
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
51 class NMTDS_ListOfPassKeyBoolean  {
52
53 public:
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
71 Standard_EXPORT NMTDS_ListOfPassKeyBoolean();
72
73
74 Standard_EXPORT   void Assign(const NMTDS_ListOfPassKeyBoolean& Other) ;
75   void operator=(const NMTDS_ListOfPassKeyBoolean& Other) 
76 {
77   Assign(Other);
78 }
79
80
81
82 Standard_EXPORT   Standard_Integer Extent() const;
83
84
85 Standard_EXPORT   void Clear() ;
86 ~NMTDS_ListOfPassKeyBoolean()
87 {
88   Clear();
89 }
90
91
92   Standard_Boolean IsEmpty() const;
93
94
95 Standard_EXPORT   void Prepend(const NMTDS_PassKeyBoolean& I) ;
96
97
98 Standard_EXPORT   void Prepend(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& theIt) ;
99
100
101 Standard_EXPORT   void Prepend(NMTDS_ListOfPassKeyBoolean& Other) ;
102
103
104 Standard_EXPORT   void Append(const NMTDS_PassKeyBoolean& I) ;
105
106
107 Standard_EXPORT   void Append(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& theIt) ;
108
109
110 Standard_EXPORT   void Append(NMTDS_ListOfPassKeyBoolean& Other) ;
111
112
113 Standard_EXPORT   NMTDS_PassKeyBoolean& First() const;
114
115
116 Standard_EXPORT   NMTDS_PassKeyBoolean& Last() const;
117
118
119 Standard_EXPORT   void RemoveFirst() ;
120
121
122 Standard_EXPORT   void Remove(NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
123
124
125 Standard_EXPORT   void InsertBefore(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
126
127
128 Standard_EXPORT   void InsertBefore(NMTDS_ListOfPassKeyBoolean& Other,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
129
130
131 Standard_EXPORT   void InsertAfter(const NMTDS_PassKeyBoolean& I,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
132
133
134 Standard_EXPORT   void InsertAfter(NMTDS_ListOfPassKeyBoolean& Other,NMTDS_ListIteratorOfListOfPassKeyBoolean& It) ;
135
136
137 friend class NMTDS_ListIteratorOfListOfPassKeyBoolean;
138
139
140
141 protected:
142
143  // Methods PROTECTED
144  // 
145
146
147  // Fields PROTECTED
148  //
149
150
151 private: 
152
153  // Methods PRIVATE
154  // 
155
156
157 Standard_EXPORT NMTDS_ListOfPassKeyBoolean(const NMTDS_ListOfPassKeyBoolean& Other);
158
159
160  // Fields PRIVATE
161  //
162 Standard_Address myFirst;
163 Standard_Address myLast;
164
165
166 };
167
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>
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