LLDynamicQueuePtr< Type > Class Template Reference

#include <lldqueueptr.h>

Collaboration diagram for LLDynamicQueuePtr< Type >:

Collaboration graph
[legend]
List of all members.

Public Types

 OKAY = 0
 FAIL = -1
enum  { OKAY = 0, FAIL = -1 }

Public Member Functions

 LLDynamicQueuePtr (const S32 size=8)
 ~LLDynamicQueuePtr ()
void init ()
void destroy ()
void reset ()
void realloc (U32 newsize)
const Type & get (const S32 index) const
Type & get (const S32 index)
const Type & operator[] (const S32 index) const
Type & operator[] (const S32 index)
S32 find (const Type &obj) const
S32 count () const
S32 getMax () const
S32 getFirst () const
S32 getLast () const
S32 push (const Type &obj)
S32 pull (Type &obj)
S32 remove (S32 index)
S32 removeObj (const Type &obj)
void print ()

Protected Attributes

S32 mFirstObj
S32 mLastObj
S32 mMaxObj
Type * mMemory

Detailed Description

template<class Type>
class LLDynamicQueuePtr< Type >

Definition at line 35 of file lldqueueptr.h.


Member Enumeration Documentation

template<class Type>
anonymous enum

Enumerator:
OKAY 
FAIL 

Definition at line 38 of file lldqueueptr.h.


Constructor & Destructor Documentation

template<class Type>
LLDynamicQueuePtr< Type >::LLDynamicQueuePtr ( const S32  size = 8  )  [inline]

Definition at line 115 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::init(), and LLDynamicQueuePtr< Type >::realloc().

template<class Type>
LLDynamicQueuePtr< Type >::~LLDynamicQueuePtr (  )  [inline]

Definition at line 122 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::destroy().


Member Function Documentation

template<class Type>
S32 LLDynamicQueuePtr< Type >::count (  )  const [inline]

Definition at line 59 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, and LLDynamicQueuePtr< Type >::mMaxObj.

Referenced by LLDynamicQueuePtr< Type >::pull(), LLDynamicQueuePtr< Type >::push(), LLDynamicQueuePtr< Type >::realloc(), and LLDynamicQueuePtr< Type >::remove().

template<class Type>
void LLDynamicQueuePtr< Type >::destroy (  )  [inline]

Definition at line 189 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mMemory, NULL, and LLDynamicQueuePtr< Type >::reset().

Referenced by LLDynamicQueuePtr< Type >::~LLDynamicQueuePtr().

template<class Type>
S32 LLDynamicQueuePtr< Type >::find ( const Type &  obj  )  const [inline]

Definition at line 211 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::FAIL, i, LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, and S32.

Referenced by LLDynamicQueuePtr< Type >::removeObj().

template<class Type>
Type & LLDynamicQueuePtr< Type >::get ( const S32  index  )  [inline]

Definition at line 351 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mMemory.

template<class Type>
const Type & LLDynamicQueuePtr< Type >::get ( const S32  index  )  const [inline]

Definition at line 345 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mMemory.

Referenced by LLDynamicQueuePtr< Type >::operator[](), and LLDynamicQueuePtr< Type >::reset().

template<class Type>
S32 LLDynamicQueuePtr< Type >::getFirst (  )  const [inline]

Definition at line 61 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mFirstObj.

template<class Type>
S32 LLDynamicQueuePtr< Type >::getLast (  )  const [inline]

Definition at line 62 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mLastObj.

template<class Type>
S32 LLDynamicQueuePtr< Type >::getMax (  )  const [inline]

Definition at line 60 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mMaxObj.

template<class Type>
void LLDynamicQueuePtr< Type >::init (  )  [inline]

Definition at line 128 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, and NULL.

Referenced by LLDynamicQueuePtr< Type >::LLDynamicQueuePtr().

template<class Type>
Type& LLDynamicQueuePtr< Type >::operator[] ( const S32  index  )  [inline]

Definition at line 56 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::get().

template<class Type>
const Type& LLDynamicQueuePtr< Type >::operator[] ( const S32  index  )  const [inline]

Definition at line 55 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::get().

template<class Type>
void LLDynamicQueuePtr< Type >::print (  )  [inline]

Definition at line 77 of file lldqueueptr.h.

template<class Type>
S32 LLDynamicQueuePtr< Type >::pull ( Type &  obj  )  [inline]

Definition at line 325 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, and NULL.

template<class Type>
S32 LLDynamicQueuePtr< Type >::push ( const Type &  obj  )  [inline]

Definition at line 307 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, and LLDynamicQueuePtr< Type >::realloc().

template<class Type>
void LLDynamicQueuePtr< Type >::realloc ( U32  newsize  )  [inline]

Definition at line 137 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::count(), i, llassert, m, LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, NULL, and S32.

Referenced by LLDynamicQueuePtr< Type >::LLDynamicQueuePtr(), and LLDynamicQueuePtr< Type >::push().

template<class Type>
S32 LLDynamicQueuePtr< Type >::remove ( S32  index  )  [inline]

Definition at line 246 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::FAIL, LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, LLDynamicQueuePtr< Type >::mMemory, and NULL.

Referenced by LLDynamicQueuePtr< Type >::removeObj().

template<class Type>
S32 LLDynamicQueuePtr< Type >::removeObj ( const Type &  obj  )  [inline]

Definition at line 296 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::FAIL, LLDynamicQueuePtr< Type >::find(), LLDynamicQueuePtr< Type >::remove(), and S32.

template<class Type>
void LLDynamicQueuePtr< Type >::reset (  ) 

Definition at line 198 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::get(), i, LLDynamicQueuePtr< Type >::mFirstObj, LLDynamicQueuePtr< Type >::mLastObj, LLDynamicQueuePtr< Type >::mMaxObj, NULL, and S32.

Referenced by LLDynamicQueuePtr< Type >::destroy().


Member Data Documentation

template<class Type>
S32 LLDynamicQueuePtr< Type >::mFirstObj [protected]

Definition at line 72 of file lldqueueptr.h.

Referenced by LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::find(), LLDynamicQueuePtr< Type >::getFirst(), LLDynamicQueuePtr< Type >::init(), LLDynamicQueuePtr< Type >::pull(), LLDynamicQueuePtr< Type >::realloc(), LLDynamicQueuePtr< Type >::remove(), and LLDynamicQueuePtr< Type >::reset().

template<class Type>
S32 LLDynamicQueuePtr< Type >::mLastObj [protected]

Definition at line 72 of file lldqueueptr.h.

Referenced by LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::find(), LLDynamicQueuePtr< Type >::getLast(), LLDynamicQueuePtr< Type >::init(), LLDynamicQueuePtr< Type >::push(), LLDynamicQueuePtr< Type >::realloc(), LLDynamicQueuePtr< Type >::remove(), and LLDynamicQueuePtr< Type >::reset().

template<class Type>
S32 LLDynamicQueuePtr< Type >::mMaxObj [protected]

Definition at line 72 of file lldqueueptr.h.

Referenced by LLDynamicQueuePtr< Type >::count(), LLDynamicQueuePtr< Type >::find(), LLDynamicQueuePtr< Type >::getMax(), LLDynamicQueuePtr< Type >::init(), LLDynamicQueuePtr< Type >::pull(), LLDynamicQueuePtr< Type >::push(), LLDynamicQueuePtr< Type >::realloc(), LLDynamicQueuePtr< Type >::remove(), and LLDynamicQueuePtr< Type >::reset().

template<class Type>
Type* LLDynamicQueuePtr< Type >::mMemory [protected]

Definition at line 73 of file lldqueueptr.h.

Referenced by LLDynamicQueuePtr< Type >::destroy(), LLDynamicQueuePtr< Type >::find(), LLDynamicQueuePtr< Type >::get(), LLDynamicQueuePtr< Type >::init(), LLDynamicQueuePtr< Type >::pull(), LLDynamicQueuePtr< Type >::push(), LLDynamicQueuePtr< Type >::realloc(), and LLDynamicQueuePtr< Type >::remove().


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