LLLocalIDHashMap< DATA_TYPE, SIZE > Class Template Reference

#include <lllocalidhashmap.h>

Collaboration diagram for LLLocalIDHashMap< DATA_TYPE, SIZE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLLocalIDHashMap ()
 LLLocalIDHashMap (const DATA_TYPE &null_data)
 ~LLLocalIDHashMap ()
DATA_TYPE & get (const U32 local_id)
BOOL check (const U32 local_id) const
DATA_TYPE & set (const U32 local_id, const DATA_TYPE data)
BOOL remove (const U32 local_id)
void removeAll ()
void setNull (const DATA_TYPE data)
S32 getLength () const
void dumpIter ()
void dumpBin (U32 bin)

Protected Member Functions

void addIter (LLLocalIDHashMapIter< DATA_TYPE, SIZE > *iter)
void removeIter (LLLocalIDHashMapIter< DATA_TYPE, SIZE > *iter)
BOOL removeWithShift (const U32 local_id)

Protected Attributes

LLLocalIDHashNode< DATA_TYPE,
SIZE > 
mNodes [256]
S32 mIterCount
LLLocalIDHashMapIter< DATA_TYPE,
SIZE > * 
mIters [MAX_ITERS]
DATA_TYPE mNull

Friends

class LLLocalIDHashMapIter< DATA_TYPE, SIZE >

Detailed Description

template<class DATA_TYPE, int SIZE>
class LLLocalIDHashMap< DATA_TYPE, SIZE >

Definition at line 113 of file lllocalidhashmap.h.


Constructor & Destructor Documentation

template<class DATA_TYPE, int SIZE>
LLLocalIDHashMap< DATA_TYPE, SIZE >::LLLocalIDHashMap (  ) 

Definition at line 163 of file lllocalidhashmap.h.

References i, MAX_ITERS, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, NULL, and S32.

template<class DATA_TYPE, int SIZE>
LLLocalIDHashMap< DATA_TYPE, SIZE >::LLLocalIDHashMap ( const DATA_TYPE &  null_data  ) 

Definition at line 175 of file lllocalidhashmap.h.

References i, MAX_ITERS, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, NULL, and S32.

template<class DATA_TYPE, int SIZE>
LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap (  ) 

Definition at line 187 of file lllocalidhashmap.h.

References i, MAX_ITERS, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mHashMapp, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, NULL, LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll(), and S32.


Member Function Documentation

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::addIter ( LLLocalIDHashMapIter< DATA_TYPE, SIZE > *  iter  )  [protected]

Definition at line 707 of file lllocalidhashmap.h.

References i, llendl, llerrs, MAX_ITERS, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, NULL, and S32.

template<class DATA_TYPE, int SIZE>
BOOL LLLocalIDHashMap< DATA_TYPE, SIZE >::check ( const U32  local_id  )  const [inline]

Definition at line 334 of file lllocalidhashmap.h.

References count, i, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashNode< DATA, SIZE >::mKey, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, S32, and TRUE.

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpBin ( U32  bin  ) 

Definition at line 262 of file lllocalidhashmap.h.

References i, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashNode< DATA, SIZE >::mData, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpIter (  ) 

Definition at line 242 of file lllocalidhashmap.h.

References i, llendl, llinfos, MAX_ITERS, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mCurHashNodeKey, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mCurHashNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, and S32.

template<class DATA_TYPE, int SIZE>
DATA_TYPE & LLLocalIDHashMap< DATA_TYPE, SIZE >::get ( const U32  local_id  )  [inline]

Definition at line 306 of file lllocalidhashmap.h.

References count, i, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashNode< DATA, SIZE >::mData, LLLocalIDHashNode< DATA, SIZE >::mKey, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

template<class DATA_TYPE, int SIZE>
S32 LLLocalIDHashMap< DATA_TYPE, SIZE >::getLength (  )  const [inline]

Definition at line 289 of file lllocalidhashmap.h.

References count, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

template<class DATA_TYPE, int SIZE>
BOOL LLLocalIDHashMap< DATA_TYPE, SIZE >::remove ( const U32  local_id  )  [inline]

Definition at line 418 of file lllocalidhashmap.h.

References count, FALSE, i, MAX_ITERS, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mCurHashMapNodeNum, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mCurHashNodeKey, LLLocalIDHashMapIter< DATA_TYPE, SIZE >::mCurHashNodep, LLLocalIDHashNode< DATA, SIZE >::mData, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, LLLocalIDHashNode< DATA, SIZE >::mKey, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNull, NULL, LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), S32, and TRUE.

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll (  ) 

Definition at line 202 of file lllocalidhashmap.h.

References count, FALSE, first, i, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNull, NULL, S32, and TRUE.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap().

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::removeIter ( LLLocalIDHashMapIter< DATA_TYPE, SIZE > *  iter  )  [protected]

Definition at line 691 of file lllocalidhashmap.h.

References i, llendl, llerrs, MAX_ITERS, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, NULL, and S32.

template<class DATA_TYPE, int SIZE>
BOOL LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift ( const U32  local_id  )  [protected]

Definition at line 570 of file lllocalidhashmap.h.

References count, FALSE, i, MAX_ITERS, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashNode< DATA, SIZE >::mData, LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters, LLLocalIDHashNode< DATA, SIZE >::mKey, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNull, NULL, S32, and TRUE.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::remove().

template<class DATA_TYPE, int SIZE>
DATA_TYPE & LLLocalIDHashMap< DATA_TYPE, SIZE >::set ( const U32  local_id,
const DATA_TYPE  data 
) [inline]

Definition at line 363 of file lllocalidhashmap.h.

References count, i, LLLocalIDHashNode< DATA, SIZE >::mCount, LLLocalIDHashNode< DATA, SIZE >::mData, LLLocalIDHashNode< DATA, SIZE >::mKey, LLLocalIDHashNode< DATA, SIZE >::mNextNodep, LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

template<class DATA_TYPE, int SIZE>
void LLLocalIDHashMap< DATA_TYPE, SIZE >::setNull ( const DATA_TYPE  data  )  [inline]

Definition at line 132 of file lllocalidhashmap.h.

References LLLocalIDHashMap< DATA_TYPE, SIZE >::mNull.


Friends And Related Function Documentation

template<class DATA_TYPE, int SIZE>
friend class LLLocalIDHashMapIter< DATA_TYPE, SIZE > [friend]

Definition at line 116 of file lllocalidhashmap.h.


Member Data Documentation

template<class DATA_TYPE, int SIZE>
S32 LLLocalIDHashMap< DATA_TYPE, SIZE >::mIterCount [protected]

Definition at line 151 of file lllocalidhashmap.h.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::addIter(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpIter(), LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeIter(), and LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap().

template<class DATA_TYPE, int SIZE>
LLLocalIDHashMapIter<DATA_TYPE, SIZE>* LLLocalIDHashMap< DATA_TYPE, SIZE >::mIters[MAX_ITERS] [protected]

Definition at line 152 of file lllocalidhashmap.h.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::addIter(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpIter(), LLLocalIDHashMap< DATA_TYPE, SIZE >::LLLocalIDHashMap(), LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeIter(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), and LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap().

template<class DATA_TYPE, int SIZE>
LLLocalIDHashNode<DATA_TYPE, SIZE> LLLocalIDHashMap< DATA_TYPE, SIZE >::mNodes[256] [protected]

Definition at line 149 of file lllocalidhashmap.h.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::check(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpBin(), LLLocalIDHashMap< DATA_TYPE, SIZE >::get(), LLLocalIDHashMap< DATA_TYPE, SIZE >::getLength(), LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), and LLLocalIDHashMap< DATA_TYPE, SIZE >::set().

template<class DATA_TYPE, int SIZE>
DATA_TYPE LLLocalIDHashMap< DATA_TYPE, SIZE >::mNull [protected]

Definition at line 154 of file lllocalidhashmap.h.

Referenced by LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), and LLLocalIDHashMap< DATA_TYPE, SIZE >::setNull().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:28 2010 for Second Life Viewer by  doxygen 1.4.7