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

LinkedList< TYPE > Class Template Reference

#include <LinkedList.h>

List of all members.

Public Member Functions

 LinkedList ()
virtual ~LinkedList ()
void clear ()
const unsigned int getCount ()
LLNode< TYPE > * getFirst ()
LLNode< TYPE > * getLast ()
LLNode< TYPE > * popFirst ()
void addFirst (const TYPE &object)
void addLast (const TYPE &object)
void addNodeFirst (LLNode< TYPE > *node)
void addNodeLast (LLNode< TYPE > *node)
void removeNode (LLNode< TYPE > *node)

Protected Attributes

unsigned int size
LLNode< TYPE > * first
LLNode< TYPE > * last


Detailed Description

template<class TYPE>
class LinkedList< TYPE >

Definition at line 21 of file LinkedList.h.


Constructor & Destructor Documentation

template<class TYPE>
LinkedList< TYPE >::LinkedList  ) 
 

Definition at line 44 of file LinkedList.h.

References LinkedList< TYPE >::first, and LinkedList< TYPE >::last.

template<class TYPE>
LinkedList< TYPE >::~LinkedList  )  [virtual]
 

Definition at line 50 of file LinkedList.h.

References LinkedList< TYPE >::clear().

Here is the call graph for this function:


Member Function Documentation

template<class TYPE>
void LinkedList< TYPE >::addFirst const TYPE &  object  )  [inline]
 

Definition at line 91 of file LinkedList.h.

References LinkedList< TYPE >::addNodeFirst(), and LLNode< TYPE >::obj.

Here is the call graph for this function:

template<class TYPE>
void LinkedList< TYPE >::addLast const TYPE &  object  )  [inline]
 

Definition at line 98 of file LinkedList.h.

References LinkedList< TYPE >::addNodeLast(), and LLNode< TYPE >::obj.

Referenced by Console::add(), and Console::addEx().

Here is the call graph for this function:

template<class TYPE>
void LinkedList< TYPE >::addNodeFirst LLNode< TYPE > *  node  )  [inline]
 

Definition at line 105 of file LinkedList.h.

References LinkedList< TYPE >::first, LinkedList< TYPE >::last, LLNode< TYPE >::next, and LLNode< TYPE >::prev.

Referenced by LinkedList< TYPE >::addFirst().

template<class TYPE>
void LinkedList< TYPE >::addNodeLast LLNode< TYPE > *  node  )  [inline]
 

Definition at line 123 of file LinkedList.h.

References LinkedList< TYPE >::first, LinkedList< TYPE >::last, LLNode< TYPE >::next, and LLNode< TYPE >::prev.

Referenced by LinkedList< TYPE >::addLast().

template<class TYPE>
void LinkedList< TYPE >::clear  )  [inline]
 

Definition at line 55 of file LinkedList.h.

References LinkedList< TYPE >::first, LinkedList< TYPE >::last, and LLNode< TYPE >::next.

Referenced by Console::Console(), and LinkedList< TYPE >::~LinkedList().

template<class TYPE>
const unsigned int LinkedList< TYPE >::getCount  )  [inline]
 

Definition at line 69 of file LinkedList.h.

Referenced by Console::add(), and Console::addEx().

template<class TYPE>
LLNode< TYPE > * LinkedList< TYPE >::getFirst  )  [inline]
 

Definition at line 81 of file LinkedList.h.

References LinkedList< TYPE >::first.

Referenced by Console::add(), and Console::addEx().

template<class TYPE>
LLNode< TYPE > * LinkedList< TYPE >::getLast  )  [inline]
 

Definition at line 86 of file LinkedList.h.

References LinkedList< TYPE >::last.

Referenced by OpenGLConsole::draw().

template<class TYPE>
LLNode< TYPE > * LinkedList< TYPE >::popFirst  )  [inline]
 

Definition at line 74 of file LinkedList.h.

References LinkedList< TYPE >::removeNode().

Here is the call graph for this function:

template<class TYPE>
void LinkedList< TYPE >::removeNode LLNode< TYPE > *  node  )  [inline]
 

Definition at line 141 of file LinkedList.h.

References LinkedList< TYPE >::first, LinkedList< TYPE >::last, LLNode< TYPE >::next, and LLNode< TYPE >::prev.

Referenced by Console::add(), Console::addEx(), and LinkedList< TYPE >::popFirst().


Member Data Documentation

template<class TYPE>
LLNode<TYPE>* LinkedList< TYPE >::first [protected]
 

Definition at line 40 of file LinkedList.h.

Referenced by LinkedList< TYPE >::addNodeFirst(), LinkedList< TYPE >::addNodeLast(), LinkedList< TYPE >::clear(), LinkedList< TYPE >::getFirst(), LinkedList< TYPE >::LinkedList(), and LinkedList< TYPE >::removeNode().

template<class TYPE>
LLNode<TYPE> * LinkedList< TYPE >::last [protected]
 

Definition at line 40 of file LinkedList.h.

Referenced by LinkedList< TYPE >::addNodeFirst(), LinkedList< TYPE >::addNodeLast(), LinkedList< TYPE >::clear(), LinkedList< TYPE >::getLast(), LinkedList< TYPE >::LinkedList(), and LinkedList< TYPE >::removeNode().

template<class TYPE>
unsigned int LinkedList< TYPE >::size [protected]
 

Definition at line 39 of file LinkedList.h.


Generated on Sun Jun 5 15:49:56 2005 for Defacto by  doxygen 1.4.3