#include <lldqueueptr.h>
Collaboration diagram for LLDynamicQueuePtr< Type >:
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 |
Definition at line 35 of file lldqueueptr.h.
anonymous enum |
LLDynamicQueuePtr< Type >::LLDynamicQueuePtr | ( | const S32 | size = 8 |
) | [inline] |
Definition at line 115 of file lldqueueptr.h.
References LLDynamicQueuePtr< Type >::init(), and LLDynamicQueuePtr< Type >::realloc().
LLDynamicQueuePtr< Type >::~LLDynamicQueuePtr | ( | ) | [inline] |
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().
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().
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().
Type & LLDynamicQueuePtr< Type >::get | ( | const S32 | index | ) | [inline] |
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().
S32 LLDynamicQueuePtr< Type >::getFirst | ( | ) | const [inline] |
S32 LLDynamicQueuePtr< Type >::getLast | ( | ) | const [inline] |
S32 LLDynamicQueuePtr< Type >::getMax | ( | ) | const [inline] |
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().
Type& LLDynamicQueuePtr< Type >::operator[] | ( | const S32 | index | ) | [inline] |
const Type& LLDynamicQueuePtr< Type >::operator[] | ( | const S32 | index | ) | const [inline] |
void LLDynamicQueuePtr< Type >::print | ( | ) | [inline] |
Definition at line 77 of file lldqueueptr.h.
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.
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().
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().
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().
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.
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().
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().
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().
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().
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().