![]() |
Public API Reference |
#include <list.h>
Public Methods | |
csList () | |
Default constructor. More... | |
csList (const csList &other) | |
Copyconstructor. More... | |
~csList () | |
Destructor. More... | |
csList & | operator= (const csList &other) |
Assignment, swallow copy. More... | |
Iterator | PushFront (const T &item) |
Add an item first in list. Copy T into the listdata. More... | |
Iterator | PushBack (const T &item) |
Add an item last in list. Copy T into the listdata. More... | |
void | Delete (Iterator &it) |
Remove specific item by iterator. More... | |
void | DeleteAll () |
Empty an list. More... | |
const T & | Front () const |
Return first element of the list. More... | |
const T & | Last () const |
Return last element of the list. More... | |
bool | PopFront () |
Deletes the first element of the list. More... | |
bool | PopBack () |
Deletes the last element of the list. More... | |
Protected Methods | |
void | Delete (csListElement *el) |
Remove specific item by explicit ref. More... |
This is VERY lightweight and not tested very well, as it was writen for one single purpose, and it has not been extended to be more general.
Definition at line 29 of file list.h.
|
Default constructor.
|
|
Copyconstructor.
Definition at line 188 of file list.h. References PushBack. |
|
Destructor.
Definition at line 67 of file list.h. References DeleteAll. |
|
Remove specific item by iterator.
Definition at line 257 of file list.h. References Delete. |
|
Remove specific item by explicit ref.
|
|
Empty an list.
|
|
Return first element of the list.
|
|
Return last element of the list.
|
|
Assignment, swallow copy.
|
|
Deletes the last element of the list.
Definition at line 173 of file list.h. References Delete. |
|
Deletes the first element of the list.
Definition at line 163 of file list.h. References Delete. |
|
Add an item last in list. Copy T into the listdata.
|
|
Add an item first in list. Copy T into the listdata.
|