LLDynamicQueuePtr< Type > Class Template Reference

#include <lldqueueptr.h>

Collaboration diagram for LLDynamicQueuePtr< Type >:

Collaboration graph
[legend]

List of all members.

Public Types

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().

Here is the call graph for this function:

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

Definition at line 122 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::destroy().

Here is the call graph for this function:


Member Function Documentation

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

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 198 of file lldqueueptr.h.

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

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

Here is the caller graph for this function:

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

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.

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 >::operator[] ( const S32  index  )  const [inline]

Definition at line 55 of file lldqueueptr.h.

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

Definition at line 56 of file lldqueueptr.h.

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

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

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

Definition at line 60 of file lldqueueptr.h.

References LLDynamicQueuePtr< Type >::mMaxObj.

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 >::push ( const Type &  obj  )  [inline]

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

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

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(), and S32.

Here is the call graph for this function:

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

Definition at line 77 of file lldqueueptr.h.


Member Data Documentation

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

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

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

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


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

Generated on Fri May 16 08:44:13 2008 for SecondLife by  doxygen 1.5.5