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