Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

CDoubleList< T > Class Template Reference

Templated Doubly Linked List class. More...

#include <DoubleList.h>

List of all members.

Public Member Functions

int index (T data)
void erase (bool bDataErase=true)
void push_front (T data)
void push_back (T data)
pop_front ()
pop_back ()
at (int i)
void move_to (unsigned int index, T Element)
remove_from (int i)
tNode * remove_raw (T data)
void add_raw (tNode *node)
remove (T data)
operator[] (int i)
void set_ptr (T data)
next ()
prev ()
ptr ()
int size ()
begin ()
end ()


Detailed Description

template<class T>
class CDoubleList< T >

Templated Doubly Linked List class.

This class is a ... well, a doubly linked list class.

Definition at line 11 of file DoubleList.h.


Member Function Documentation

template<class T>
void CDoubleList< T >::add_raw tNode *  node  )  [inline]
 

Method details:

Parameters:
node - Pointer to node to add
Definition at line 343 of file DoubleList.h.

template<class T>
T CDoubleList< T >::at int  i  )  [inline]
 

Method details:

Parameters:
i - index of data to retrieve
Returns:
Data we just fetched
Definition at line 199 of file DoubleList.h.

Referenced by CGUIStatic::GetProperties(), CGUIElement::GetProperties(), CGUIButton::GetProperties(), and CDoubleList< CGUIElement * >::operator[]().

template<class T>
T CDoubleList< T >::begin  )  [inline]
 

Method details:

Returns:
Head of the list
Definition at line 457 of file DoubleList.h.

template<class T>
T CDoubleList< T >::end  )  [inline]
 

Method details:

Returns:
tail of the list
Definition at line 468 of file DoubleList.h.

template<class T>
void CDoubleList< T >::erase bool  bDataErase = true  )  [inline]
 

Method details:

Parameters:
bDataErase - Erase data with the node (if true)
Definition at line 62 of file DoubleList.h.

template<class T>
int CDoubleList< T >::index data  )  [inline]
 

Method details:

Parameters:
data - data to check index of
Returns:
Index of passed data in the list
Definition at line 41 of file DoubleList.h.

template<class T>
void CDoubleList< T >::move_to unsigned int  index,
Element
[inline]
 

Method details:

Parameters:
index - where to move the data to
Element - what data to move
Definition at line 223 of file DoubleList.h.

Referenced by CGUIElement::SetZOrder().

template<class T>
T CDoubleList< T >::next  )  [inline]
 

Method details:

Returns:
data next from current data
Definition at line 411 of file DoubleList.h.

template<class T>
T CDoubleList< T >::operator[] int  i  )  [inline]
 

Method details:

Parameters:
i - Index of the data to retrieve
Returns:
Data that has been fetched
Definition at line 386 of file DoubleList.h.

template<class T>
T CDoubleList< T >::pop_back  )  [inline]
 

Method details:

Returns:
Data we just removed from the back of the list
Definition at line 171 of file DoubleList.h.

Referenced by CDoubleList< CGUIElement * >::remove_from().

template<class T>
T CDoubleList< T >::pop_front  )  [inline]
 

Method details:

Returns:
Data we just removed from the front of the list
Definition at line 140 of file DoubleList.h.

Referenced by CDoubleList< CGUIElement * >::remove_from().

template<class T>
T CDoubleList< T >::prev  )  [inline]
 

Method details:

Returns:
data previous from current data
Definition at line 426 of file DoubleList.h.

template<class T>
T CDoubleList< T >::ptr  )  [inline]
 

Method details:

Returns:
Current data
Definition at line 441 of file DoubleList.h.

template<class T>
void CDoubleList< T >::push_back data  )  [inline]
 

Method details:

Parameters:
data - Data to add to the back of the list
Definition at line 115 of file DoubleList.h.

Referenced by CGUIWindow::Create().

template<class T>
void CDoubleList< T >::push_front data  )  [inline]
 

Method details:

Parameters:
data - Data to add to the front of the list
Definition at line 90 of file DoubleList.h.

template<class T>
T CDoubleList< T >::remove data  )  [inline]
 

Method details:

Parameters:
data - Data to remove from the list
Returns:
Data that has been removed
Definition at line 364 of file DoubleList.h.

Referenced by CDoubleList< CGUIElement * >::move_to().

template<class T>
T CDoubleList< T >::remove_from int  i  )  [inline]
 

Method details:

Parameters:
i - index of data to remove
Returns:
Data that is being removed
Definition at line 260 of file DoubleList.h.

Referenced by CDoubleList< CGUIElement * >::remove().

template<class T>
tNode* CDoubleList< T >::remove_raw data  )  [inline]
 

Method details:

Parameters:
data - Data to remove
Returns:
Pointer to the node containing data user has specified
Definition at line 309 of file DoubleList.h.

template<class T>
void CDoubleList< T >::set_ptr data  )  [inline]
 

Method details:

Parameters:
data - Data that is being set as current
Definition at line 392 of file DoubleList.h.

template<class T>
int CDoubleList< T >::size  )  [inline]
 

Method details:

Returns:
Size of the list
Definition at line 452 of file DoubleList.h.

Referenced by CGUIStatic::GetProperties(), CGUIElement::GetProperties(), CGUIButton::GetProperties(), CDoubleList< CGUIElement * >::index(), and CGUIElement::SetZOrder().


The documentation for this class was generated from the following file:
Generated on Sun Jul 17 21:34:29 2005 for OpenGL GUI by doxygen 1.3.8