LLAssocList< INDEX_TYPE, VALUE_TYPE > Class Template Reference

#include <llassoclist.h>

Collaboration diagram for LLAssocList< INDEX_TYPE, VALUE_TYPE >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLAssocList ()
 ~LLAssocList ()
BOOL isEmpty ()
U32 length ()
BOOL remove (const INDEX_TYPE &index)
void removeAll ()
void addToHead (const INDEX_TYPE &index, const VALUE_TYPE &value)
void addToTail (const INDEX_TYPE &index, const VALUE_TYPE &value)
BOOL setValue (const INDEX_TYPE &index, const VALUE_TYPE &value, BOOL addIfNotFound=FALSE)
BOOL setValueAt (U32 i, const VALUE_TYPE &value)
VALUE_TYPE * getValue (const INDEX_TYPE &index)
VALUE_TYPE * getValueAt (U32 i)
INDEX_TYPE * getIndex (const INDEX_TYPE &index)
INDEX_TYPE * getIndexAt (U32 i)
VALUE_TYPE * operator[] (const INDEX_TYPE &index)
VALUE_TYPE * operator[] (U32 i)

Private Attributes

NodemHead

Friends

std::ostream & operator<< (std::ostream &os, LLAssocList &map)

Classes

class  Node


Detailed Description

template<class INDEX_TYPE, class VALUE_TYPE>
class LLAssocList< INDEX_TYPE, VALUE_TYPE >

Definition at line 51 of file llassoclist.h.


Constructor & Destructor Documentation

template<class INDEX_TYPE, class VALUE_TYPE>
LLAssocList< INDEX_TYPE, VALUE_TYPE >::LLAssocList (  )  [inline]

Definition at line 75 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead, and NULL.

template<class INDEX_TYPE, class VALUE_TYPE>
LLAssocList< INDEX_TYPE, VALUE_TYPE >::~LLAssocList (  )  [inline]

Definition at line 81 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::removeAll().

Here is the call graph for this function:


Member Function Documentation

template<class INDEX_TYPE, class VALUE_TYPE>
BOOL LLAssocList< INDEX_TYPE, VALUE_TYPE >::isEmpty (  )  [inline]

Definition at line 87 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead, and NULL.

template<class INDEX_TYPE, class VALUE_TYPE>
U32 LLAssocList< INDEX_TYPE, VALUE_TYPE >::length (  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
BOOL LLAssocList< INDEX_TYPE, VALUE_TYPE >::remove ( const INDEX_TYPE &  index  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
void LLAssocList< INDEX_TYPE, VALUE_TYPE >::removeAll (  )  [inline]

Definition at line 135 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead, and LLAssocList< INDEX_TYPE, VALUE_TYPE >::Node::mNext.

Referenced by LLAssocList< INDEX_TYPE, VALUE_TYPE >::~LLAssocList().

Here is the caller graph for this function:

template<class INDEX_TYPE, class VALUE_TYPE>
void LLAssocList< INDEX_TYPE, VALUE_TYPE >::addToHead ( const INDEX_TYPE &  index,
const VALUE_TYPE &  value 
) [inline]

Definition at line 147 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead.

template<class INDEX_TYPE, class VALUE_TYPE>
void LLAssocList< INDEX_TYPE, VALUE_TYPE >::addToTail ( const INDEX_TYPE &  index,
const VALUE_TYPE &  value 
) [inline]

Definition at line 156 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead, LLAssocList< INDEX_TYPE, VALUE_TYPE >::Node::mNext, and NULL.

Referenced by LLAssocList< INDEX_TYPE, VALUE_TYPE >::setValue().

Here is the caller graph for this function:

template<class INDEX_TYPE, class VALUE_TYPE>
BOOL LLAssocList< INDEX_TYPE, VALUE_TYPE >::setValue ( const INDEX_TYPE &  index,
const VALUE_TYPE &  value,
BOOL  addIfNotFound = FALSE 
) [inline]

Definition at line 181 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::addToTail(), FALSE, LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValue(), and TRUE.

Here is the call graph for this function:

template<class INDEX_TYPE, class VALUE_TYPE>
BOOL LLAssocList< INDEX_TYPE, VALUE_TYPE >::setValueAt ( U32  i,
const VALUE_TYPE &  value 
) [inline]

Definition at line 198 of file llassoclist.h.

References FALSE, LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValueAt(), and TRUE.

Here is the call graph for this function:

template<class INDEX_TYPE, class VALUE_TYPE>
VALUE_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValue ( const INDEX_TYPE &  index  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
VALUE_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValueAt ( U32  i  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
INDEX_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::getIndex ( const INDEX_TYPE &  index  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
INDEX_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::getIndexAt ( U32  i  )  [inline]

template<class INDEX_TYPE, class VALUE_TYPE>
VALUE_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::operator[] ( const INDEX_TYPE &  index  )  [inline]

Definition at line 271 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValue().

Here is the call graph for this function:

template<class INDEX_TYPE, class VALUE_TYPE>
VALUE_TYPE* LLAssocList< INDEX_TYPE, VALUE_TYPE >::operator[] ( U32  i  )  [inline]

Definition at line 278 of file llassoclist.h.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValueAt().

Here is the call graph for this function:


Friends And Related Function Documentation

template<class INDEX_TYPE, class VALUE_TYPE>
std::ostream& operator<< ( std::ostream &  os,
LLAssocList< INDEX_TYPE, VALUE_TYPE > &  map 
) [friend]

Definition at line 284 of file llassoclist.h.


Member Data Documentation

template<class INDEX_TYPE, class VALUE_TYPE>
Node* LLAssocList< INDEX_TYPE, VALUE_TYPE >::mHead [private]


The documentation for this class was generated from the following file:

Generated on Fri May 16 08:39:11 2008 for SecondLife by  doxygen 1.5.5