#include <DynamicArray.h>
Public Member Functions | |
bool | AddElement (CDynamicArrayElement *pElement, bool bAddUniqueOnly=false, bool bManageMemory=true) |
CDynamicArray (int nInititalSize) | |
void | Clear () |
int | DeleteAllMatches (const CDynamicArrayElement *pElement) |
bool | DeleteElement (int nIndex) |
int | DeleteFirstMatch (const CDynamicArrayElement *pElement) |
void | DontManageMemory (int nElement) |
CDynamicArrayElement * | FindBestMatch (const CDynamicArrayElement *pElement, float &fResultError) |
CDynamicArrayElement * | FindFirstMatch (const CDynamicArrayElement *pElement) |
CDynamicArrayElement * | GetElement (int nElement) |
const CDynamicArrayElement * | GetElement (int nElement) const |
CDynamicArrayElement * | GetElementNoCheck (int nElement) |
const CDynamicArrayElement * | GetElementNoCheck (int nElement) const |
int | GetSize () const |
CDynamicArrayElement * | operator[] (const int nElement) |
~CDynamicArray () | |
Private Member Functions | |
int | _FindFirstMatch (const CDynamicArrayElement *pElement) |
void | SetSize (int nSize) |
Private Attributes | |
int | m_nCurrentSize |
int | m_nElements |
CDynamicArrayElement ** | m_ppElements |
Definition at line 78 of file DynamicArray.h.
CDynamicArray::CDynamicArray | ( | int | nInititalSize | ) |
Definition at line 58 of file DynamicArray.cpp.
CDynamicArray::~CDynamicArray | ( | ) |
Definition at line 68 of file DynamicArray.cpp.
|
private |
Definition at line 192 of file DynamicArray.cpp.
bool CDynamicArray::AddElement | ( | CDynamicArrayElement * | pElement, |
bool | bAddUniqueOnly = false , |
||
bool | bManageMemory = true |
||
) |
Definition at line 126 of file DynamicArray.cpp.
void CDynamicArray::Clear | ( | ) |
Definition at line 88 of file DynamicArray.cpp.
int CDynamicArray::DeleteAllMatches | ( | const CDynamicArrayElement * | pElement | ) |
Definition at line 168 of file DynamicArray.cpp.
bool CDynamicArray::DeleteElement | ( | int | nIndex | ) |
Definition at line 140 of file DynamicArray.cpp.
int CDynamicArray::DeleteFirstMatch | ( | const CDynamicArrayElement * | pElement | ) |
Definition at line 156 of file DynamicArray.cpp.
void CDynamicArray::DontManageMemory | ( | int | nElement | ) |
Definition at line 83 of file DynamicArray.cpp.
CDynamicArrayElement * CDynamicArray::FindBestMatch | ( | const CDynamicArrayElement * | pElement, |
float & | fResultError | ||
) |
Definition at line 203 of file DynamicArray.cpp.
CDynamicArrayElement * CDynamicArray::FindFirstMatch | ( | const CDynamicArrayElement * | pElement | ) |
Definition at line 181 of file DynamicArray.cpp.
|
inline |
Definition at line 90 of file DynamicArray.h.
|
inline |
Definition at line 91 of file DynamicArray.h.
|
inline |
Definition at line 92 of file DynamicArray.h.
|
inline |
Definition at line 93 of file DynamicArray.h.
|
inline |
Definition at line 102 of file DynamicArray.h.
|
inline |
Definition at line 94 of file DynamicArray.h.
|
private |
Definition at line 102 of file DynamicArray.cpp.
|
private |
Definition at line 112 of file DynamicArray.h.
|
private |
Definition at line 113 of file DynamicArray.h.
|
private |
Definition at line 114 of file DynamicArray.h.