Doubly linked list template. More...
#include <irrList.h>
Classes | |
class | ConstIterator |
List iterator for const access. More... | |
class | Iterator |
List iterator. More... | |
Public Member Functions | |
list () | |
Default constructor for empty list. More... | |
list (const list< T > &other) | |
Copy constructor. More... | |
~list () | |
Destructor. More... | |
Iterator | begin () |
Gets first node. More... | |
ConstIterator | begin () const |
Gets first node. More... | |
void | clear () |
Clears the list, deletes all elements in the list. More... | |
bool | empty () const |
Checks for empty list. More... | |
Iterator | end () |
Gets end node. More... | |
ConstIterator | end () const |
Gets end node. More... | |
Iterator | erase (Iterator &it) |
Erases an element. More... | |
Iterator | getLast () |
Gets last element. More... | |
ConstIterator | getLast () const |
Gets last element. More... | |
u32 | getSize () const |
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... | |
void | operator= (const list< T > &other) |
Assignment operator. 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... | |
u32 | size () const |
Returns amount of elements in list. More... | |
void | swap (list< T > &other) |
Swap the content of this list container with the content of another list. More... | |
Doubly linked list template.
|
inline |
|
inline |
|
inline |
|
inline |
Gets first node.
Definition at line 257 of file irrList.h.
Referenced by irr::core::list< T >::Iterator::operator->(), and irr::core::list< T >::ConstIterator::operator=().
|
inline |
|
inline |
Clears the list, deletes all elements in the list.
All existing iterators of this list will be invalid.
Definition at line 187 of file irrList.h.
Referenced by irr::core::list< irr::scene::ISceneNodeAnimator *>::operator=(), and irr::core::list< irr::scene::ISceneNodeAnimator *>::~list().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Adds an element at the end of the list.
element | Element to add to the list. |
Definition at line 213 of file irrList.h.
Referenced by irr::core::list< irr::scene::ISceneNodeAnimator *>::operator=().
|
inline |
|
inline |
|
inline |
Swap the content of this list container with the content of another list.
Afterwards this object will contain the content of the other object and the other object will contain the content of this object. Iterators will afterwards be valid for the swapped object.
other | Swap content with this object |