|
Public Types |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
Public Member Functions |
| List () throw () |
| Default constructor.
|
| List (const List< T > &) throw () |
| Copy constructor.
|
| ~List () throw () |
| Destructor.
|
void | Init () |
| Inits the list.
|
void | Copy (const List< T > &) |
| Copies a list.
|
void | AddAtTheEnd (T &X) |
| Adds an element at the tail.
|
void | AddAtTheEnd (Cell< T > *NewTail) |
| Adds a cell at the tail.
|
void | Reverse () |
| Removes the current cell (cursor) from the list.
|
Cell< T > * | RemoveCurrent () |
| Removes the current cell (cursor) from the list.
|
void | DeleteCurrent () |
Cell< T > * | Remove (Cell< T > *cell) |
| Removes a given cell (cursor) from the list.
|
void | ClearAll () |
| Clears the list.
|
const_reference | GetHeadValue () const |
| Returns the element stored at the head.
|
const_reference | GetCurrentValue () const |
| Returns the element stored where the cursor points.
|
const_reference | GetTailValue () const |
| Returns the element stored at the tail.
|
reference | GetHeadValue () |
| Returns the element stored at the head.
|
reference | GetCurrentValue () |
| Returns the element stored where the cursor points.
|
reference | GetTailValue () |
| Returns the element stored at the tail.
|
Cell< T > * | GetCurrent () const |
| Returns the pointer to the current cell (cursor).
|
void | GoToTheHead () |
| Sets the current cell (cursor) to the pointer to the head.
|
void | GoToTheTail () |
| Sets the current cell (cursor) to the pointer to the tail.
|
bool | GoToNext_StopAtTheTail () |
bool | IsEmpty () const |
| Is the list empty?
|
Protected Attributes |
Cell< T > * | head_ |
| Pointer to the head.
|
Cell< T > * | current_ |
| Pointer to the current element ("cursor").
|
Cell< T > * | tail_ |
| Pointer to the tail.
|