Public Member Functions | Private Member Functions | Private Attributes | List of all members
CDynamicArray Class Reference

#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)
 
CDynamicArrayElementFindBestMatch (const CDynamicArrayElement *pElement, float &fResultError)
 
CDynamicArrayElementFindFirstMatch (const CDynamicArrayElement *pElement)
 
CDynamicArrayElementGetElement (int nElement)
 
const CDynamicArrayElementGetElement (int nElement) const
 
CDynamicArrayElementGetElementNoCheck (int nElement)
 
const CDynamicArrayElementGetElementNoCheck (int nElement) const
 
int GetSize () const
 
CDynamicArrayElementoperator[] (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
 

Detailed Description

Definition at line 78 of file DynamicArray.h.

Constructor & Destructor Documentation

CDynamicArray::CDynamicArray ( int  nInititalSize)

Definition at line 58 of file DynamicArray.cpp.

CDynamicArray::~CDynamicArray ( )

Definition at line 68 of file DynamicArray.cpp.

Member Function Documentation

int CDynamicArray::_FindFirstMatch ( const CDynamicArrayElement pElement)
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.

CDynamicArrayElement* CDynamicArray::GetElement ( int  nElement)
inline

Definition at line 90 of file DynamicArray.h.

const CDynamicArrayElement* CDynamicArray::GetElement ( int  nElement) const
inline

Definition at line 91 of file DynamicArray.h.

CDynamicArrayElement* CDynamicArray::GetElementNoCheck ( int  nElement)
inline

Definition at line 92 of file DynamicArray.h.

const CDynamicArrayElement* CDynamicArray::GetElementNoCheck ( int  nElement) const
inline

Definition at line 93 of file DynamicArray.h.

int CDynamicArray::GetSize ( ) const
inline

Definition at line 102 of file DynamicArray.h.

CDynamicArrayElement* CDynamicArray::operator[] ( const int  nElement)
inline

Definition at line 94 of file DynamicArray.h.

void CDynamicArray::SetSize ( int  nSize)
private

Definition at line 102 of file DynamicArray.cpp.

Member Data Documentation

int CDynamicArray::m_nCurrentSize
private

Definition at line 112 of file DynamicArray.h.

int CDynamicArray::m_nElements
private

Definition at line 113 of file DynamicArray.h.

CDynamicArrayElement** CDynamicArray::m_ppElements
private

Definition at line 114 of file DynamicArray.h.


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


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28