#include <badesca.h>
| class CPtrC16Array : public CArrayFixFlat< TPtrC16 > |
| Public Member Functions | |
|---|---|
| CPtrC16Array(TInt) | |
| ~CPtrC16Array() | |
| IMPORT_C void | CopyL(const MDesC16Array &) |
| IMPORT_C TInt | MdcaCount() |
| IMPORT_C TPtrC16 | MdcaPoint(TInt) |
| void | operator=(const MDesC16Array &) |
| IMPORT_C | CPtrC16Array | ( | TInt | aGranularity | ) |
Constructs an array of 16 bit non-modifiable descriptors with the specified granularity. The length of all elements in the array buffer is the length of a TPtrC16 object.
No memory is allocated to the array buffer by constructor.
| Parameter | Description |
|---|---|
| aGranularity | The granularity of the array. This value must be positive otherwise the constructor raises an E32USER-CBase 18 panic. |
| IMPORT_C | ~CPtrC16Array | ( | ) |
Frees all resources owned by the object, prior to its destruction.
| IMPORT_C void | CopyL | ( | const MDesC16Array & | aArray | ) |
Copies a descriptor array into this array, deleting any pre-existing elements.
The function constructs TPtrC16 elements for each descriptor element in the specified descriptor array.
| Parameter | Description |
|---|---|
| aArray | A reference to any descriptor array which satisfies the protocol defined by this mixin class. |
| IMPORT_C TInt | MdcaCount | ( | ) | const |
Returns the number of elements in the array. The function implements the pure virtual function MDesC16Array::MdcaCount().
Returns: The number of elements.
Indexes into the descriptor array. The function implements the pure virtual function MDesC16Array::MdcaPoint().
| Parameter | Description |
|---|---|
| aIndex | The position of the descriptor element within the array. The position is relative to zero; i.e. zero implies the first descriptor element in the array. This value must be non-negative and must be less than the number of elements currently in the array otherwise the operator raises a E32USER-CBase 21 panic. |
Returns: A non-modifiable pointer descriptor for the data represented by the element at position aIndex within the array.
| void | operator= | ( | const MDesC16Array & | aArray | ) | [inline] |
Copies a descriptor array into this array, deleting any pre-existing elements.
The function constructs TPtrC16 elements for each descriptor element in the specified descriptor array.This operator behaves in the same ways as CPtrC16Array::CopyL().
| Parameter | Description |
|---|---|
| aArray | A reference to any descriptor array which satisfies the protocol defined by this mixin class. |