![]() |
#include <list.h>
Classes | |
| struct | AuxiliaryComparator |
| class | Element |
Public Member Functions | |
| _FORCE_INLINE_ const Element * | front () const |
| _FORCE_INLINE_ Element * | front () |
| _FORCE_INLINE_ const Element * | back () const |
| _FORCE_INLINE_ Element * | back () |
| Element * | push_back (const T &value) |
| void | pop_back () |
| Element * | push_front (const T &value) |
| void | pop_front () |
| template<class T_v > | |
| Element * | find (const T_v &p_val) |
| bool | erase (const Element *p_I) |
| bool | erase (const T &value) |
| _FORCE_INLINE_ bool | empty () const |
| void | clear () |
| _FORCE_INLINE_ int | size () const |
| void | swap (Element *p_A, Element *p_B) |
| void | operator= (const List &p_list) |
| T & | operator[] (int p_index) |
| const T & | operator[] (int p_index) const |
| void | move_to_back (Element *p_I) |
| void | invert () |
| void | move_to_front (Element *p_I) |
| void | move_before (Element *value, Element *where) |
| void | sort () |
| template<class C > | |
| void | sort_custom_inplace () |
| template<class C > | |
| void | sort_custom () |
| List (const List &p_list) | |
Generic Templatized Linked List Implementation. The implementation differs from the STL one because a compatible preallocated linked list can be written using the same API, or features such as erasing an element from the iterator.
|
inline |
copy constructor for the list
|
inline |
return an const iterator to the last member of the list.
return an iterator to the last member of the list.
|
inline |
clear the list
|
inline |
return wether the list is empty
|
inline |
erase an element in the list, by iterator pointing to it. Return true if it was found/erased.
|
inline |
erase the first element in the list, that contains value
|
inline |
find an element in the list,
|
inline |
return an const iterator to the begining of the list.
|
inline |
return an iterator to the begining of the list.
|
inline |
copy the list
|
inline |
store a new element at the end of the list
|
inline |
store a new element at the begining of the list
|
inline |
simple insertion sort
1.8.11