list Class Template Reference

#include <irrList.h>

template<class T>
class irr::core::list< T >

Public Member Functions

Data Structures


Constructor & Destructor Documentation

list (  )  [inline]

~list (  )  [inline]


Member Function Documentation

Iterator begin (  )  const [inline]

Gets begin node.

Returns:
Returns a list iterator pointing to the begin of the list.

void clear (  )  [inline]

Clears the list, deletes all elements in the list. All existing iterators of this list will be invalid.

bool empty (  )  const [inline]

Returns ture if the list is empty.

Returns:
Returns true if the list is empty and false if not.

Iterator end (  )  const [inline]

Gets end node.

Returns:
Returns a list iterator pointing to null.

Iterator erase ( Iterator it  )  [inline]

Erases an element

Parameters:
it,: Iterator pointing to the element which should be erased.
Returns:
Returns iterator pointing to next element.

Iterator getLast (  )  const [inline]

Gets last element.

Returns:
Returns a list iterator pointing to the end of the list.

u32 getSize (  )  const [inline]

Returns amount of elements in list.

Returns:
Returns amount of elements in the list.

void insert_after ( Iterator it,
const T &  element 
) [inline]

Inserts an element after an element.

Parameters:
it,: Iterator pointing to element after which the new element should be inserted.
element,: The new element to be insterted into the list.

void insert_before ( Iterator it,
const T &  element 
) [inline]

Inserts an element before an element.

Parameters:
it,: Iterator pointing to element before which the new element should be inserted.
element,: The new element to be insterted into the list.

void push_back ( const T &  element  )  [inline]

Adds an element at the end of the list.

Parameters:
element,: Element to add to the list.

void push_front ( const T &  element  )  [inline]

Adds an element at the begin of the list.

Parameters:
element,: Element to add to the list.


Generated on Fri Apr 27 14:47:02 2007 for IrrSpintz by  doxygen 1.5.1-p1