arsa
2.7
|
Doubly linked list template. More...
#include <irrList.h>
Classes | |
class | ConstIterator |
List iterator for const access. More... | |
class | Iterator |
List iterator. More... | |
Public Types | |
typedef T | value_type |
typedef u32 | size_type |
Public Member Functions | |
list () | |
Default constructor for empty list. More... | |
list (const list< T > &other) | |
Copy constructor. More... | |
~list () | |
Destructor. More... | |
void | operator= (const list< T > &other) |
Assignment operator. More... | |
u32 | size () const |
Returns amount of elements in list. More... | |
u32 | getSize () const |
void | clear () |
Clears the list, deletes all elements in the list. More... | |
bool | empty () const |
Checks for empty list. More... | |
void | push_back (const T &element) |
Adds an element at the end of the list. More... | |
void | push_front (const T &element) |
Adds an element at the begin of the list. More... | |
Iterator | begin () |
Gets first node. More... | |
ConstIterator | begin () const |
Gets first node. More... | |
Iterator | end () |
Gets end node. More... | |
ConstIterator | end () const |
Gets end node. More... | |
Iterator | getLast () |
Gets last element. More... | |
ConstIterator | getLast () const |
Gets last element. More... | |
void | insert_after (const Iterator &it, const T &element) |
Inserts an element after an element. More... | |
void | insert_before (const Iterator &it, const T &element) |
Inserts an element before an element. More... | |
Iterator | erase (Iterator &it) |
Erases an element. More... | |
void | swap (list< T > &other) |
Swap the content of this list container with the content of another list. More... | |
Doubly linked list template.
typedef u32 irr::core::list< T >::size_type |
typedef T irr::core::list< T >::value_type |
|
inline |
|
inline |
|
inline |
Destructor.
Definition at line 144 of file irrList.h.
|
inline |
|
inline |
|
inline |
Clears the list, deletes all elements in the list.
All existing iterators of this list will be invalid.
Definition at line 183 of file irrList.h.
|
inline |
|
inline |
|
inline |
|
inline |
Erases an element.
it | Iterator pointing to the element which shall be erased. |
Definition at line 350 of file irrList.h.
|
inline |
|
inline |
|
inline |
|
inline |
Inserts an element after an element.
it | Iterator pointing to element after which the new element should be inserted. |
element | The new element to be inserted into the list. |
Definition at line 304 of file irrList.h.
|
inline |
Inserts an element before an element.
it | Iterator pointing to element before which the new element should be inserted. |
element | The new element to be inserted into the list. |
Definition at line 328 of file irrList.h.
|
inline |
Assignment operator.
Definition at line 151 of file irrList.h.
|
inline |
Adds an element at the end of the list.
element | Element to add to the list. |
Definition at line 209 of file irrList.h.
|
inline |
Adds an element at the begin of the list.
element | Element to add to the list. |
Definition at line 230 of file irrList.h.
|
inline |
|
inline |
Swap the content of this list container with the content of another list.
Afterward this object will contain the content of the other object and the other object will contain the content of this object. Iterators will afterward be valid for the swapped object.
other | Swap content with this object |
Definition at line 389 of file irrList.h.