LLUUIDHashMap< DATA_TYPE, SIZE > Class Template Reference

#include <lluuidhashmap.h>

Inheritance diagram for LLUUIDHashMap< DATA_TYPE, SIZE >:

Inheritance graph
[legend]
Collaboration diagram for LLUUIDHashMap< DATA_TYPE, SIZE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLUUIDHashMap (BOOL(*equals)(const LLUUID &uuid, const DATA_TYPE &data), const DATA_TYPE &null_data)
 ~LLUUIDHashMap ()
DATA_TYPE & get (const LLUUID &uuid)
BOOL check (const LLUUID &uuid) const
DATA_TYPE & set (const LLUUID &uuid, const DATA_TYPE &type)
BOOL remove (const LLUUID &uuid)
void removeAll ()
S32 getLength () const

Public Attributes

BOOL(* mEquals )(const LLUUID &uuid, const DATA_TYPE &data)
LLUUIDHashNode< DATA_TYPE,
SIZE > 
mNodes [256]
S32 mIterCount

Protected Attributes

DATA_TYPE mNull

Detailed Description

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

Definition at line 142 of file lluuidhashmap.h.


Constructor & Destructor Documentation

template<class DATA_TYPE, int SIZE>
LLUUIDHashMap< DATA_TYPE, SIZE >::LLUUIDHashMap ( BOOL(*)(const LLUUID &uuid, const DATA_TYPE &data)  equals,
const DATA_TYPE &  null_data 
)

Definition at line 172 of file lluuidhashmap.h.

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

Definition at line 180 of file lluuidhashmap.h.

References LLUUIDHashMap< DATA_TYPE, SIZE >::removeAll().


Member Function Documentation

template<class DATA_TYPE, int SIZE>
BOOL LLUUIDHashMap< DATA_TYPE, SIZE >::check ( const LLUUID uuid  )  const [inline]

Definition at line 273 of file lluuidhashmap.h.

References count, i, LLUUIDHashNode< DATA, SIZE >::mCount, LLUUIDHashNode< DATA, SIZE >::mData, LLUUID::mData, LLUUIDHashMap< DATA_TYPE, SIZE >::mEquals, LLUUIDHashNode< DATA, SIZE >::mKey, LLUUIDHashNode< DATA, SIZE >::mNextNodep, LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes, S32, and TRUE.

Referenced by LLMotionRegistry::addMotion().

template<class DATA_TYPE, int SIZE>
DATA_TYPE & LLUUIDHashMap< DATA_TYPE, SIZE >::get ( const LLUUID uuid  )  [inline]

Definition at line 243 of file lluuidhashmap.h.

References count, i, LLUUIDHashNode< DATA, SIZE >::mCount, LLUUIDHashNode< DATA, SIZE >::mData, LLUUID::mData, LLUUIDHashMap< DATA_TYPE, SIZE >::mEquals, LLUUIDHashNode< DATA, SIZE >::mKey, LLUUIDHashNode< DATA, SIZE >::mNextNodep, LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

Referenced by LLMotionRegistry::createMotion().

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

Definition at line 226 of file lluuidhashmap.h.

References count, LLUUIDHashNode< DATA, SIZE >::mCount, LLUUIDHashNode< DATA, SIZE >::mNextNodep, LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

template<class DATA_TYPE, int SIZE>
BOOL LLUUIDHashMap< DATA_TYPE, SIZE >::remove ( const LLUUID uuid  )  [inline]

Definition at line 361 of file lluuidhashmap.h.

References count, i, llendl, llerrs, LLUUIDHashNode< DATA, SIZE >::mCount, LLUUIDHashNode< DATA, SIZE >::mData, LLUUID::mData, LLUUIDHashMap< DATA_TYPE, SIZE >::mEquals, LLUUIDHashMap< DATA_TYPE, SIZE >::mIterCount, LLUUIDHashNode< DATA, SIZE >::mKey, LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes, LLUUIDHashMap< DATA_TYPE, SIZE >::mNull, NULL, and S32.

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

Definition at line 186 of file lluuidhashmap.h.

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

Referenced by LLMotionRegistry::~LLMotionRegistry(), and LLUUIDHashMap< DATA_TYPE, SIZE >::~LLUUIDHashMap().

template<class DATA_TYPE, int SIZE>
DATA_TYPE & LLUUIDHashMap< DATA_TYPE, SIZE >::set ( const LLUUID uuid,
const DATA_TYPE &  type 
) [inline]

Definition at line 305 of file lluuidhashmap.h.

References count, i, LLUUIDHashNode< DATA, SIZE >::mCount, LLUUIDHashNode< DATA, SIZE >::mData, LLUUID::mData, LLUUIDHashMap< DATA_TYPE, SIZE >::mEquals, LLUUIDHashNode< DATA, SIZE >::mKey, LLUUIDHashNode< DATA, SIZE >::mNextNodep, LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes, and S32.

Referenced by LLMotionRegistry::addMotion(), and LLMotionRegistry::markBad().


Member Data Documentation

template<class DATA_TYPE, int SIZE>
BOOL(* LLUUIDHashMap< DATA_TYPE, SIZE >::mEquals)(const LLUUID &uuid, const DATA_TYPE &data)

Referenced by LLUUIDHashMap< DATA_TYPE, SIZE >::check(), LLUUIDHashMap< DATA_TYPE, SIZE >::get(), LLUUIDHashMap< DATA_TYPE, SIZE >::remove(), and LLUUIDHashMap< DATA_TYPE, SIZE >::set().

template<class DATA_TYPE, int SIZE>
S32 LLUUIDHashMap< DATA_TYPE, SIZE >::mIterCount

Definition at line 161 of file lluuidhashmap.h.

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

template<class DATA_TYPE, int SIZE>
LLUUIDHashNode<DATA_TYPE, SIZE> LLUUIDHashMap< DATA_TYPE, SIZE >::mNodes[256]

Definition at line 159 of file lluuidhashmap.h.

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

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

Definition at line 163 of file lluuidhashmap.h.

Referenced by LLUUIDHashMap< DATA_TYPE, SIZE >::remove(), and LLUUIDHashMap< DATA_TYPE, SIZE >::removeAll().


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