|
||
class CDesC8Array : public CArrayFixBase, public MDesC8Array;
An implementation base class for 8 bit descriptor arrays.
It provides some of the behaviour for 8 bit descriptor arrays. The class is abstract and cannot be instantiated.
MDesC8Array
- Interface class for 8 bit descriptor arrays. It should be inherited by classes w...
CBase
-
Base class for all classes to be instantiated on the heap.
CArrayFixBase
-
Base class for arrays of fixed length objects.
CDesC8Array
- An implementation base class for 8 bit descriptor arrays.
Defined in CDesC8Array
:
AppendL(const TDesC8 &)
Appends a descriptor onto the end of any existing descriptor elements in the arr...CDesC8Array(TBufRep,TInt)
Delete(TInt)
Delete(TInt,TInt)
Deletes one or more logically contiguous descriptor elements from the array.Find(const TDesC8 &,TInt &,TKeyCmpText)const
Finds the position of a descriptor element within the array which matches the sp...FindIsq(const TDesC8 &,TInt &,TKeyCmpText)const
Finds the position of a descriptor element within the array which matches the sp...InsertIsqAllowDuplicatesL(const TDesC8 &,TKeyCmpText)
Inserts a descriptor into the array at a position which maintains the sequence o...InsertIsqL(const TDesC8 &,TKeyCmpText)
Inserts a descriptor into the array at a position which maintains the sequence o...InsertL(TInt,const TDesC8 &)
Inserts a descriptor into the array at the specified position.MdcaCount()const
Returns the number of descriptor elements in the array. The function implements ...MdcaPoint(TInt)const
Indexes into a descriptor array. The function implements the interface MDesC8Arr...Reset()
Deletes all descriptors from the array and frees the memory allocated to the arr...Sort(TKeyCmpText)
Sorts the descriptor elements into sequence.operator[](TInt)const
~CDesC8Array()
Frees all resources owned by the object, prior to its destruction. In particular...Inherited from CArrayFixBase
:
Compress()
Compresses the array.Count()const
Gets the number of elements held in the array.Length()const
Gets the length of an element.Sort(TKeyArrayFix &)
Sorts the elements of the array into key sequence.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...protected: IMPORT_C CDesC8Array(TBufRep aRep, TInt aGranularity);
|
IMPORT_C ~CDesC8Array();
Frees all resources owned by the object, prior to its destruction. In particular, it deletes all descriptors from the array and frees the memory allocated to the array buffer.
IMPORT_C void AppendL(const TDesC8 &aPtr);
Appends a descriptor onto the end of any existing descriptor elements in the array.
|
|
IMPORT_C void InsertL(TInt aPos, const TDesC8 &aPtr);
Inserts a descriptor into the array at the specified position.
If the specified position is the same as the current number of descriptor elements in the array, this has the effect of appending the element.
|
|
IMPORT_C TInt InsertIsqL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);
Inserts a descriptor into the array at a position which maintains the sequence of the descriptors.
The sequence is determined by comparing descriptors using one of the TDesC comparison functions. The enumeration aTextComparisonType governs how the descriptors are to be compared.
The array should already be in sequence, otherwise the position of the new descriptor element is unpredictable. Descriptor elements which are the same are not permitted.
|
|
|
IMPORT_C TInt InsertIsqAllowDuplicatesL(const TDesC8 &aPtr, TKeyCmpText aTextComparisonType=ECmpFolded);
Inserts a descriptor into the array at a position which maintains the sequence of the descriptors - allows duplicates.
The sequence is determined by comparing descriptors using one of the TDesC comparison functions. The enumeration aTextComparisonType governs how the descriptors are to be compared.
The array should already be in sequence, otherwise the position of the new descriptor element is unpredictable. Descriptor elements which are the same are permitted; if the descriptor aPtr is a duplicate of an existing descriptor within the array, then the new descriptor element is positioned after the existing descriptor element.
|
|
|
IMPORT_C void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);
Sorts the descriptor elements into sequence.
The sequence is determined by comparing descriptors using one of the member functions of the descriptor base class TDesC.
|
IMPORT_C TInt Find(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const;
Finds the position of a descriptor element within the array which matches the specified descriptor using a sequential search.
The array is searched sequentially for a matching descriptor element, starting with the first descriptor element in the array. Descriptors are compared using one of the TDesC comparison functions. The enumeration aTextComparisonType governs how the descriptors are to be compared.
Where an array has duplicate descriptor elements, the function only supplies the position of the first descriptor element.
|
|
IMPORT_C TInt FindIsq(const TDesC8 &aPtr, TInt &aPos, TKeyCmpText aTextComparisonType=ECmpFolded) const;
Finds the position of a descriptor element within the array which matches the specified descriptor using a binary search technique. The array must be in sequence, otherwise the outcome is unpredictable.
Descriptors are compared using one of the TDesC comparison functions. The enumeration aTextComparisonType governs how the descriptors are to be compared.
Where an array has duplicate descriptor elements, the function cannot guarantee which matching descriptor element it will return; except that it will find one of them.
|
|
IMPORT_C void Delete(TInt aIndex, TInt aCount);
Deletes one or more logically contiguous descriptor elements from the array.
The deletion starts at the specified position.Deleting descriptor elements from the array frees the memory occupied by the
associated heap descriptors and removes their pointers from the array buffer but does not cause the array buffer to be automatically
compressed. Call the CArrayFixBase::Compress()
function to return excess space in the array buffer to the heap.
|
IMPORT_C void Reset();
Deletes all descriptors from the array and frees the memory allocated to the array buffer.
IMPORT_C virtual TInt MdcaCount() const;
Returns the number of descriptor elements in the array. The function implements the interface MDesC8Array::MdcaCount()const
.
|
IMPORT_C virtual TPtrC8 MdcaPoint(TInt aIndex) const;
Indexes into a descriptor array. The function implements the interface MDesC8Array::MdcaPoint(TInt)const
.
|
|