Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
Doubly linked list template. More...
#include <irrList.h>
Classes | |
class | ConstIterator |
List iterator for const access. More... | |
class | Iterator |
List iterator. More... | |
struct | SKListNode |
List element node with pointer to previous and next element in the list. | |
Public Member Functions | |
ConstIterator | begin () const |
Gets first node. | |
Iterator | begin () |
Gets first node. | |
void | clear () |
Clears the list, deletes all elements in the list. | |
bool | empty () const |
Checks for empty list. | |
ConstIterator | end () const |
Gets end node. | |
Iterator | end () |
Gets end node. | |
Iterator | erase (Iterator &it) |
Erases an element. | |
ConstIterator | getLast () const |
Gets last element. | |
Iterator | getLast () |
Gets last element. | |
u32 | getSize () const |
void | insert_after (const Iterator &it, const T &element) |
Inserts an element after an element. | |
void | insert_before (const Iterator &it, const T &element) |
Inserts an element before an element. | |
list (const list< T > &other) | |
Copy constructor. | |
list () | |
Default constructor for empty list. | |
void | operator= (const list< T > &other) |
Assignment operator. | |
void | push_back (const T &element) |
Adds an element at the end of the list. | |
void | push_front (const T &element) |
Adds an element at the begin of the list. | |
u32 | size () const |
Returns amount of elements in list. | |
void | swap (list< T > &other) |
Swap the content of this list container with the content of another list. | |
~list () | |
Destructor. |
Doubly linked list template.
Definition at line 20 of file irrList.h.
irr::core::list< T >::list | ( | ) | [inline] |
irr::core::list< T >::list | ( | const list< T > & | other | ) | [inline] |
irr::core::list< T >::~list | ( | ) | [inline] |
ConstIterator irr::core::list< T >::begin | ( | ) | const [inline] |
Iterator irr::core::list< T >::begin | ( | ) | [inline] |
Gets first node.
Definition at line 257 of file irrList.h.
Referenced by irr::gui::IGUIElement::bringToFront(), irr::scene::ISceneNode::cloneMembers(), irr::gui::IGUIElement::draw(), irr::gui::IGUIElement::getElementFromId(), irr::gui::IGUIElement::getNextElement(), irr::scene::ISceneNode::OnAnimate(), irr::gui::IGUIElement::OnPostRender(), irr::scene::ISceneNode::OnRegisterSceneNode(), irr::gui::IGUIElement::recalculateAbsolutePosition(), irr::scene::ISceneNode::removeAll(), irr::scene::ISceneNode::removeAnimator(), irr::scene::ISceneNode::removeAnimators(), irr::scene::ISceneNode::removeChild(), irr::gui::IGUIElement::removeChild(), irr::scene::ISceneNode::setSceneManager(), irr::gui::IGUIElement::updateAbsolutePosition(), irr::gui::IGUIElement::~IGUIElement(), and irr::scene::ISceneNode::~ISceneNode().
void irr::core::list< T >::clear | ( | ) | [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< ISceneNode * >::operator=(), irr::scene::ISceneNode::removeAll(), irr::scene::ISceneNode::removeAnimators(), and irr::core::list< ISceneNode * >::~list().
bool irr::core::list< T >::empty | ( | ) | const [inline] |
ConstIterator irr::core::list< T >::end | ( | ) | const [inline] |
Iterator irr::core::list< T >::end | ( | ) | [inline] |
Gets end node.
Definition at line 273 of file irrList.h.
Referenced by irr::gui::IGUIElement::bringToFront(), irr::scene::ISceneNode::cloneMembers(), irr::gui::IGUIElement::draw(), irr::gui::IGUIElement::getElementFromId(), irr::gui::IGUIElement::getElementFromPoint(), irr::gui::IGUIElement::getNextElement(), irr::scene::ISceneNode::OnAnimate(), irr::gui::IGUIElement::OnPostRender(), irr::scene::ISceneNode::OnRegisterSceneNode(), irr::gui::IGUIElement::recalculateAbsolutePosition(), irr::scene::ISceneNode::removeAll(), irr::scene::ISceneNode::removeAnimator(), irr::scene::ISceneNode::removeAnimators(), irr::scene::ISceneNode::removeChild(), irr::gui::IGUIElement::removeChild(), irr::scene::ISceneNode::setSceneManager(), irr::gui::IGUIElement::updateAbsolutePosition(), irr::gui::IGUIElement::~IGUIElement(), and irr::scene::ISceneNode::~ISceneNode().
Iterator irr::core::list< T >::erase | ( | Iterator & | it | ) | [inline] |
Erases an element.
it | Iterator pointing to the element which shall be erased. |
Definition at line 354 of file irrList.h.
Referenced by irr::gui::IGUIElement::bringToFront(), irr::scene::ISceneNode::removeAnimator(), irr::scene::ISceneNode::removeChild(), and irr::gui::IGUIElement::removeChild().
ConstIterator irr::core::list< T >::getLast | ( | ) | const [inline] |
Iterator irr::core::list< T >::getLast | ( | ) | [inline] |
Gets last element.
Definition at line 289 of file irrList.h.
Referenced by irr::gui::IGUIElement::getElementFromPoint().
u32 irr::core::list< T >::getSize | ( | ) | const [inline] |
void irr::core::list< T >::insert_after | ( | const Iterator & | it, | |
const T & | element | |||
) | [inline] |
void irr::core::list< T >::insert_before | ( | const Iterator & | it, | |
const T & | element | |||
) | [inline] |
void irr::core::list< T >::operator= | ( | const list< T > & | other | ) | [inline] |
void irr::core::list< T >::push_back | ( | const T & | element | ) | [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::scene::ISceneNode::addAnimator(), irr::scene::ISceneNode::addChild(), irr::gui::IGUIElement::addChildToEnd(), irr::gui::IGUIElement::bringToFront(), and irr::core::list< ISceneNode * >::operator=().
void irr::core::list< T >::push_front | ( | const T & | element | ) | [inline] |
u32 irr::core::list< T >::size | ( | ) | const [inline] |
void irr::core::list< T >::swap | ( | list< T > & | other | ) | [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 |
Definition at line 393 of file irrList.h.
Referenced by irr::core::list< ISceneNode * >::swap().
The Irrlicht
Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated
on Sun Oct 24 12:42:03 2010 by Doxygen
(1.6.2) |