Public Member Functions |
Static Public Member Functions |
Protected Types |
Protected Member Functions |
Protected Attributes |
Static Protected Attributes |
List of all members
CXpArray< TYPE > Class Template Reference
#include <xparray.h>
Public Member Functions | |
CXpArray (const INT_PTR nGrowBy=10) | |
CXpArray (const CXpArray &Array) | |
virtual | ~CXpArray () |
HRESULT | Add (const TYPE &Element, INT_PTR *pNewIndex=NULL) |
HRESULT | Insert (const INT_PTR nIndex, const TYPE &Element) |
HRESULT | Remove (const INT_PTR nIndex, const INT_PTR nCount=1) |
void | RemoveAll () |
INT_PTR | GetCount () const |
HRESULT | SetCount (const INT_PTR nNewCount) |
INT_PTR | GetGrowBy () const |
void | SetGrowBy (const INT_PTR nGrowBy) |
HRESULT | PreAlloc (const INT_PTR nCount) |
HRESULT | FreeExtra () |
HRESULT | Append (const CXpArray &Array) |
HRESULT | Mid (CXpArray &Subset, const INT_PTR nFrom, const INT_PTR nCount=-1) const |
HRESULT | Left (CXpArray &Subset, const INT_PTR nCount) const |
HRESULT | Right (CXpArray &Subset, const INT_PTR nCount) const |
INT_PTR | Find (const TYPE &Element, const INT_PTR nStart=0) const |
INT_PTR | Find (const CXpArray &Subset, const INT_PTR nStart=0) const |
TYPE * | GetData () |
const TYPE * | GetData () const |
TYPE & | operator[] (const INT_PTR nIndex) |
const TYPE & | operator[] (const INT_PTR nIndex) const |
bool | operator== (const CXpArray &Array) const |
bool | operator!= (const CXpArray &Array) const |
HRESULT | Copy (const CXpArray &Array) |
CXpArray & | operator= (const CXpArray &Array) |
Static Public Member Functions | |
static void | SetMoveCallback (void(*pfnMoveCallback)(TYPE *pObject, const INT_PTR nCount)) |
Protected Types | |
typedef void(* | PFN_MoveCallback) (TYPE *pObject, const INT_PTR nCount) |
Protected Member Functions | |
HRESULT | Allocate (const INT_PTR nCount, const bool bInitialize=true) |
void | ConstructElement (const INT_PTR nIndex, const INT_PTR nCount=1) |
void | DestructElement (const INT_PTR nIndex, const INT_PTR nCount=1) |
Protected Attributes | |
TYPE * | m_pData |
INT_PTR | m_nElementCount |
INT_PTR | m_nAllocedCount |
INT_PTR | m_nGrowBy |
Static Protected Attributes | |
static void * | m_pfnMoveCallback |
Member Typedef Documentation
◆ PFN_MoveCallback
template<typename TYPE >
|
protected |
Constructor & Destructor Documentation
◆ CXpArray() [1/2]
template<typename TYPE >
|
inline |
◆ CXpArray() [2/2]
template<typename TYPE >
|
inline |
◆ ~CXpArray()
Member Function Documentation
◆ Add()
template<typename TYPE >
|
inline |
◆ Allocate()
template<typename TYPE >
|
protected |
◆ Append()
◆ ConstructElement()
template<typename TYPE >
|
inlineprotected |
◆ Copy()
◆ DestructElement()
template<typename TYPE >
|
inlineprotected |
◆ Find() [1/2]
template<typename TYPE >
INT_PTR CXpArray< TYPE >::Find | ( | const CXpArray< TYPE > & | Subset, |
const INT_PTR | nStart = 0 |
||
) | const |
◆ Find() [2/2]
template<typename TYPE >
INT_PTR CXpArray< TYPE >::Find | ( | const TYPE & | Element, |
const INT_PTR | nStart = 0 |
||
) | const |
◆ FreeExtra()
template<typename TYPE >
|
inline |
◆ GetCount()
template<typename TYPE >
|
inline |
◆ GetData() [1/2]
template<typename TYPE >
TYPE * CXpArray< TYPE >::GetData | ( | ) |
◆ GetData() [2/2]
template<typename TYPE >
const TYPE * CXpArray< TYPE >::GetData | ( | ) | const |
◆ GetGrowBy()
template<typename TYPE >
|
inline |
◆ Insert()
template<typename TYPE >
|
inline |
◆ Left()
template<typename TYPE >
HRESULT CXpArray< TYPE >::Left | ( | CXpArray< TYPE > & | Subset, |
const INT_PTR | nCount | ||
) | const |
◆ Mid()
template<typename TYPE >
HRESULT CXpArray< TYPE >::Mid | ( | CXpArray< TYPE > & | Subset, |
const INT_PTR | nFrom, | ||
const INT_PTR | nCount = -1 |
||
) | const |
◆ operator!=()
template<typename TYPE >
|
inline |
◆ operator=()
template<typename TYPE >
|
inline |
◆ operator==()
template<typename TYPE >
|
inline |
◆ operator[]() [1/2]
template<typename TYPE >
|
inline |
◆ operator[]() [2/2]
template<typename TYPE >
|
inline |
◆ PreAlloc()
template<typename TYPE >
|
inline |
◆ Remove()
template<typename TYPE >
|
inline |
◆ RemoveAll()
template<typename TYPE >
|
inline |
◆ Right()
template<typename TYPE >
HRESULT CXpArray< TYPE >::Right | ( | CXpArray< TYPE > & | Subset, |
const INT_PTR | nCount | ||
) | const |
◆ SetCount()
template<typename TYPE >
|
inline |
◆ SetGrowBy()
template<typename TYPE >
|
inline |
◆ SetMoveCallback()
template<typename TYPE >
|
static |
Member Data Documentation
◆ m_nAllocedCount
template<typename TYPE >
|
protected |
◆ m_nElementCount
template<typename TYPE >
|
protected |
◆ m_nGrowBy
template<typename TYPE >
|
protected |
◆ m_pData
template<typename TYPE >
|
protected |
◆ m_pfnMoveCallback
template<typename TYPE >
|
staticprotected |