#include <xsi_string.h>
Public Member Functions |
|
| CStringArray (LONG in_size=0) | |
| CStringArray (const CStringArray &in_array) | |
| ~CStringArray () | |
| CStringArray & | operator= (const CStringArray &in_array) |
| LONG | GetCount () const |
| CStatus | Add (const CString &in_item) |
| CStatus | Clear () |
| CStatus | Resize (LONG in_size) |
| const CString & | operator[] (LONG in_index) const |
| CString & | operator[] (LONG in_index) |
| bool | operator== (const CStringArray &in_array) const |
| bool | operator!= (const CStringArray &in_array) const |
The array is zero-based, which means that the first item index is 0 and the largest index is one less than the number of elements contained in the array.
| CStringArray | ( | LONG | in_size = 0 |
) |
Constructs a CStringArray and optionally initializes the array to a known size.
| in_size | Initial size of array, defaults to 0. If you know the exact number of items you want to save in the array, it can be more efficient to specify the value using this argument, rather than calling CStringArray::Add() many times. |
| CStringArray | ( | const CStringArray & | in_array | ) |
Constructs a CStringArray object from another CStringArray object.
| in_array | read-only CStringArray object. |
Default destructor.
| CStringArray& operator= | ( | const CStringArray & | in_array | ) |
Assignment operator. Current contents of this array are replaced by a copy of in_array's contents.
| in_array | read-only class object. |
Returns the number of items in this CStringArray
Adds a CString at the end of this array's. This increases the size of the Array. The CString is copied.
| in_item | New item to be added at the end of the array. |
Erases all elements contained in the array.
Reallocates memory for the array. Existing contents are preserved, except for items at the end of the array if the new size is smaller than the existing size.
| in_size | New size of the array. |
CStatus::InvalidArgument in_size < 0
Accessor to elements at a given index. The returned value is read-only.
| in_index | index in this zero-based array. The index must be greater or equal to zero and smaller than the number of elements in the array, otherwise the results are unpredictable. |
| CString& operator[] | ( | LONG | in_index | ) |
Accessor to elements at a given index.
| in_index | index in this zero-based array. The index must be greater or equal to zero and smaller than the number of elements in the array, otherwise the results are unpredictable. |
Equality operator.
| in_array | CStringArray to compare with. |
Inequality operator.
| in_array |