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() ;
T * Pop()
Definition: t_list.hpp:19
virtual ~List()
Definition: t_list.hpp:46
T * Get()
Definition: t_list.hpp:161
void InsertAfter(T *V)
Definition: t_list.hpp:119
List & operator+=(const List &L)
Definition: t_list.hpp:300
List & operator=(const List &L)
Definition: t_list.hpp:313
List operator+(const List &L)
Definition: t_list.hpp:292
void Put(T *V)
Definition: t_list.hpp:175
Node< T > * Next
Definition: t_list.h:32
void Next()
Definition: t_list.hpp:237
int SizeList()
Definition: t_list.hpp:55
BasicCon & Warning(bool h=true)
set verbose level of next message to "wrn"
Definition: console.cpp:272
List & operator<<(T *V)
Definition: t_list.hpp:221
void Append(T *V)
Definition: t_list.hpp:95
List & operator>>(T *V)
Definition: t_list.hpp:229
void Prev()
Definition: t_list.hpp:243
void First()
Definition: t_list.hpp:249
#define NULL
Definition: t_list.h:17
T * Val
Definition: t_list.h:33
void Clear()
Definition: t_list.hpp:181
int IsStart()
Definition: t_list.hpp:267
BasicCon & Critical(bool h=true)
set verbose level of next message to "crt"
Definition: console.cpp:250
void Swap()
Definition: t_list.hpp:273
int IsEnd()
Definition: t_list.hpp:261
void InsertBefore(T *V)
Definition: t_list.hpp:138
Node< T > * Start
Pointer to Start of list.
Definition: t_list.h:43
List()
Pointer to current position in the list.
Definition: t_list.hpp:27
void Push(T *V)
Definition: t_list.hpp:14
void InsertAtStart(T *V)
Definition: t_list.hpp:71
Node< T > * Prev
Definition: t_list.h:32
void Last()
Definition: t_list.hpp:255
void Destroy()
Definition: t_list.hpp:214