Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CXStringArray Class Reference

CXStringArray implement an array of CXString. More...

Detailed Description

CXStringArray implement an array of CXString.

Note
Implementation consideration.\nThe array is not based CElementArray, because it stores CXString in m_pData but most of the calling methods uses LPCTSTR.
SetAt beneficiate of the implicit conversion from LPCTSTR to CXString (m_pData[i] = (LPCTSTR)string;
CElementArray::SetAt assumes that the element provide is based on the class store in m_pData, but cannot perform conversion from raw data to a given class.
Using CElementArray would involves to convert any LPCTSTR to CXString which causes overhead.

#include <XStringArray.h>

Inheritance diagram for CXStringArray:

Public Member Functions

int GetSize () const
 
bool IsEmpty () const
 
int GetUpperBound () const
 
void SetSize (int nNewSize, int nGrowBy=-1)
 
void FreeExtra ()
 
void RemoveAll ()
 
const CXStringGetAt (int nIndex) const
 
void SetAt (int nIndex, LPCTSTR newElement)
 
void SetAt (int nIndex, const CXString &newElement)
 
CXStringElementAt (int nIndex)
 
const CXStringGetData () const
 
CXStringGetData ()
 
void SetAtGrow (int nIndex, LPCTSTR newElement)
 
void SetAtGrow (int nIndex, const CXString &newElement)
 
int Add (LPCTSTR newElement)
 
int Add (const CXString &newElement)
 
int Append (const CXStringArray &src)
 
void Copy (const CXStringArray &src)
 
const CXStringoperator[] (int nIndex) const
 
CXStringoperator[] (int nIndex)
 
void InsertAt (int nIndex, LPCTSTR newElement, int nCount=1)
 
void InsertAt (int nIndex, const CXString &newElement, int nCount=1)
 
void RemoveAt (int nIndex, int nCount=1)
 
void InsertAt (int nStartIndex, const CXStringArray *pNewArray)
 
void Serialize (CXArchive &)
 

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