#include <DynamicArrayTemplate.h>
Public Member Functions | |
void | AddElement (const T &element) |
T & | AddElement () |
CDynamicArrayTemplate (int nInitialSize=10) | |
void | Clear () |
void | ClearAndResize (int nSize) |
bool | DeleteElement (int nIndex) |
const T * | GetElements () const |
int | GetSize () const |
int | GetStorageSize () const |
const T & | operator[] (const int nElement) const |
T & | operator[] (const int nElement) |
~CDynamicArrayTemplate () | |
Private Member Functions | |
void | SetCurrentSize (int nCurrentSize) |
Private Attributes | |
int | m_nCurrentSize |
int | m_nElements |
T * | m_pElements |
Definition at line 58 of file DynamicArrayTemplate.h.
CDynamicArrayTemplate< T >::CDynamicArrayTemplate | ( | int | nInitialSize = 10 | ) | [inline] |
Definition at line 62 of file DynamicArrayTemplate.h.
CDynamicArrayTemplate< T >::~CDynamicArrayTemplate | ( | ) | [inline] |
Definition at line 70 of file DynamicArrayTemplate.h.
void CDynamicArrayTemplate< T >::AddElement | ( | const T & | element | ) | [inline] |
Definition at line 77 of file DynamicArrayTemplate.h.
T& CDynamicArrayTemplate< T >::AddElement | ( | ) | [inline] |
Definition at line 85 of file DynamicArrayTemplate.h.
void CDynamicArrayTemplate< T >::Clear | ( | ) | [inline] |
Definition at line 106 of file DynamicArrayTemplate.h.
void CDynamicArrayTemplate< T >::ClearAndResize | ( | int | nSize | ) | [inline] |
Definition at line 111 of file DynamicArrayTemplate.h.
bool CDynamicArrayTemplate< T >::DeleteElement | ( | int | nIndex | ) | [inline] |
Definition at line 93 of file DynamicArrayTemplate.h.
const T* CDynamicArrayTemplate< T >::GetElements | ( | ) | const [inline] |
Definition at line 123 of file DynamicArrayTemplate.h.
int CDynamicArrayTemplate< T >::GetSize | ( | ) | const [inline] |
Definition at line 121 of file DynamicArrayTemplate.h.
int CDynamicArrayTemplate< T >::GetStorageSize | ( | ) | const [inline] |
Definition at line 122 of file DynamicArrayTemplate.h.
const T& CDynamicArrayTemplate< T >::operator[] | ( | const int | nElement | ) | const [inline] |
Definition at line 126 of file DynamicArrayTemplate.h.
T& CDynamicArrayTemplate< T >::operator[] | ( | const int | nElement | ) | [inline] |
Definition at line 127 of file DynamicArrayTemplate.h.
void CDynamicArrayTemplate< T >::SetCurrentSize | ( | int | nCurrentSize | ) | [inline, private] |
Definition at line 133 of file DynamicArrayTemplate.h.
int CDynamicArrayTemplate< T >::m_nCurrentSize [private] |
Definition at line 154 of file DynamicArrayTemplate.h.
int CDynamicArrayTemplate< T >::m_nElements [private] |
Definition at line 155 of file DynamicArrayTemplate.h.
T* CDynamicArrayTemplate< T >::m_pElements [private] |
Definition at line 156 of file DynamicArrayTemplate.h.