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 | |
Iterator | begin () |
Gets first node. | |
ConstIterator | begin () const |
Gets first node. | |
void | clear () |
Clears the list, deletes all elements in the list. | |
bool | empty () const |
Checks for empty list. | |
Iterator | end () |
Gets end node. | |
ConstIterator | end () const |
Gets end node. | |
Iterator | erase (Iterator &it) |
Erases an element. | |
Iterator | getLast () |
Gets last element. | |
ConstIterator | getLast () const |
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 () | |
Default constructor for empty list. | |
list (const list< T > &other) | |
Copy constructor. | |
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.
|
inline |
|
inline |
|
inline |
|
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::gui::IGUIElement::removeChild(), irr::scene::ISceneNode::removeChild(), irr::gui::IGUIElement::sendToBack(), irr::scene::ISceneNode::setSceneManager(), irr::gui::IGUIElement::updateAbsolutePosition(), irr::gui::IGUIElement::~IGUIElement(), and irr::scene::ISceneNode::~ISceneNode().
|
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< ISceneNode * >::operator=(), irr::scene::ISceneNode::removeAll(), irr::scene::ISceneNode::removeAnimators(), and irr::core::list< ISceneNode * >::~list().
|
inline |
|
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::gui::IGUIElement::removeChild(), irr::scene::ISceneNode::removeChild(), irr::gui::IGUIElement::sendToBack(), irr::scene::ISceneNode::setSceneManager(), irr::gui::IGUIElement::updateAbsolutePosition(), irr::gui::IGUIElement::~IGUIElement(), and irr::scene::ISceneNode::~ISceneNode().
|
inline |
|
inline |
Erases an element.
\param 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::gui::IGUIElement::removeChild(), irr::scene::ISceneNode::removeChild(), and irr::gui::IGUIElement::sendToBack().
|
inline |
Gets last element.
Definition at line 289 of file irrList.h.
Referenced by irr::gui::IGUIElement::getElementFromPoint().
|
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::scene::ISceneNode::addAnimator(), irr::scene::ISceneNode::addChild(), irr::gui::IGUIElement::addChildToEnd(), irr::gui::IGUIElement::bringToFront(), and irr::core::list< ISceneNode * >::operator=().
|
inline |
Adds an element at the begin of the list.
element,: | Element to add to the list. |
Definition at line 234 of file irrList.h.
Referenced by irr::gui::IGUIElement::sendToBack().
|
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 |
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 Mon May 6 2013 07:46:03 by Doxygen
(1.8.1.2) |