29 Start = End = Current =
NULL ;
36 Start = End = Current =
NULL ;
121 if ((Start==
NULL)||(Current==
NULL)||(Current->Next==
NULL))
129 Inter->
Prev = Current ;
130 Inter->
Next = Current->Next ;
132 Current->Next->Prev = Inter ;
133 Current->
Next = Inter ;
144 else if (Start==Current)
152 Inter->
Prev = Current->Prev ;
153 Inter->
Next = Current ;
155 Current->Prev->Next = Inter ;
156 Current->
Prev = Inter ;
171 return Current->Val ;
177 if (Current) Current->Val = V ;
187 Start = Current->Next ;
188 if (Start) Start->Prev =
NULL ;
193 else if (Current==End)
195 End = Current->Prev ;
204 Inter = Current->
Next ;
205 Current->Prev->Next = Current->Next ;
206 Current->Next->Prev = Current->Prev ;
217 while (Current) Clear() ;
231 if (Current) V = Current->Val ;
239 if (Current) Current=Current->Next ;
245 if (Current && Current->Prev) Current=Current->Prev ;
263 return (Current==
NULL) ;
269 return (Current==Start) ;
281 if (CP) CP->
Next = CS ;
286 if (CSS) CSS->
Prev = C ;
287 if (!CP) Start = CS ;
328 void ListWS<T>::PushPos()
330 stack.Push(Current) ;
334 void ListWS<T>::PopPos()
336 Current = stack.Pop() ;