#include <llist.h>
Public Member Functions | |
| _T * | back () |
| bool | empty () const |
| _T * | front () |
| LinkedList () | |
| _T * | pop_back () |
| _T * | pop_front () |
| void | push_back (_T *e) |
| void | push_front (_T *e) |
| void | remove (_T *e) |
| uint32 | size () const |
This class is quite similar to a STL linked list; the main difference is that the elements that are in the list have the linked list pointers inside them; this is useful when is not advisable to have external pointers holding the items, and the control of allocated memory must be inside the linked item themselves.
Class _T must be a subclass of Falcon::LinkableElement or the compilation of this module will fail.
| Falcon::LinkedList< _T >::LinkedList | ( | ) | [inline] |
| _T* Falcon::LinkedList< _T >::back | ( | ) | [inline] |
| bool Falcon::LinkedList< _T >::empty | ( | ) | const [inline] |
| _T* Falcon::LinkedList< _T >::front | ( | ) | [inline] |
| _T* Falcon::LinkedList< _T >::pop_back | ( | ) | [inline] |
| _T* Falcon::LinkedList< _T >::pop_front | ( | ) | [inline] |
| void Falcon::LinkedList< _T >::push_back | ( | _T * | e | ) | [inline] |
| void Falcon::LinkedList< _T >::push_front | ( | _T * | e | ) | [inline] |
| void Falcon::LinkedList< _T >::remove | ( | _T * | e | ) | [inline] |
| uint32 Falcon::LinkedList< _T >::size | ( | ) | const [inline] |
1.5.8