#include <e32base.h>
Link against: euser_v5.lib
class CArrayFixBase : public CBase |
Public Member Functions | |
---|---|
~CArrayFixBase() | |
IMPORT_C TAny * | At(TInt) |
IMPORT_C TAny * | Back(TInt) |
IMPORT_C void | Compress() |
TInt | Count() |
IMPORT_C void | Delete(TInt) |
IMPORT_C void | Delete(TInt, TInt) |
IMPORT_C TAny * | End(TInt) |
IMPORT_C TAny * | ExpandL(TInt) |
IMPORT_C TInt | Find(const TAny *, TKeyArrayFix &, TInt &) |
IMPORT_C TInt | FindIsq(const TAny *, TKeyArrayFix &, TInt &) |
IMPORT_C TInt | InsertIsqAllowDuplicatesL(const TAny *, TKeyArrayFix &) |
IMPORT_C TInt | InsertIsqL(const TAny *, TKeyArrayFix &) |
IMPORT_C void | InsertL(TInt, const TAny *) |
IMPORT_C void | InsertL(TInt, const TAny *, TInt) |
TInt | Length() |
IMPORT_C void | Reset() |
IMPORT_C void | ResizeL(TInt, const TAny *) |
IMPORT_C TInt | Sort(TKeyArrayFix &) |
Protected Member Functions | |
---|---|
CArrayFixBase(TBufRep, TInt, TInt) | |
IMPORT_C const TAny * | AtR(const CBase *, TInt) |
IMPORT_C TInt | CountR(const CBase *) |
IMPORT_C void | InsertRepL(TInt, const TAny *, TInt) |
IMPORT_C void | SetKey(TKeyArrayFix &) |
IMPORT_C void | SetReserveFlatL(TInt) |
Base class for arrays of fixed length objects.
It provides implementation and public functions which are common to all arrays of this type.
The class is always derived from and is never instantiated explicitly.
IMPORT_C | ~CArrayFixBase | ( | ) |
Destructor.
This frees all resources owned by the object, prior to its destruction.
IMPORT_C void | Compress | ( | ) |
Compresses the array.
The function removes the excess space from the array buffer. The effect is to reduce the memory allocated to the array buffer so that it is just sufficient to contain the elements of the array. This applies to both flat and segmented array buffers.
If the array is empty, then the memory allocated to the array buffer is freed.
TInt | Count | ( | ) | const [inline] |
Gets the number of elements held in the array.
IMPORT_C void | Delete | ( | TInt | anIndex | ) |
Deletes a single element from the array at a specified position.
Deleting elements from the array does not cause the array buffer to be automatically compressed. Call CArrayFixBase::Compress() to return excess space to the heap.
See also: CArrayFixBase::Compress
Parameters | |
---|---|
anIndex | The position within the array at which to delete the element, This is a value relative to zero. |
Panic Codes | |
---|---|
E32USER-CBase | 21, if anIndex is negative or is greater than or equal to the number of elements currently in the array. |
Deletes one or more contiguous elements from the array, starting at a specific position.
Deleting elements from the array does not cause the array buffer to be automatically compressed. Call CArrayFixBase::Compress() to return excess space to the heap.
Parameters | |
---|---|
anIndex | The position within the array from where deletion of elements is to start. The position is relative to zero, i.e. zero implies that elements, starting with the first, are deleted from the array. |
aCount | The number of contiguous elements to be deleted from the array. |
Panic Codes | |
---|---|
E32USER-CBase | 21, if anIndex is negative, or is greater than or equal to the number of elements currently in the array. |
E32USER-CBase | 22, if aCount is negative. |
E32USER-CBase | 29, if the sum of anIndex and aCount is greater than or equal to the number of elements currently in the array. |
IMPORT_C TInt | Find | ( | const TAny * | aPtr, |
TKeyArrayFix & | aKey, | |||
TInt & | anIndex | |||
) | const |
IMPORT_C TInt | FindIsq | ( | const TAny * | aPtr, |
TKeyArrayFix & | aKey, | |||
TInt & | anIndex | |||
) | const |
IMPORT_C TInt | InsertIsqAllowDuplicatesL | ( | const TAny * | aPtr, |
TKeyArrayFix & | aKey | |||
) |
IMPORT_C TInt | InsertIsqL | ( | const TAny * | aPtr, |
TKeyArrayFix & | aKey | |||
) |
TInt | Length | ( | ) | const [inline] |
Gets the length of an element.
IMPORT_C void | Reset | ( | ) |
Deletes all elements from the array and frees the memory allocated to the array buffer.
IMPORT_C void | SetKey | ( | TKeyArrayFix & | aKey | ) | const [protected] |
IMPORT_C void | SetReserveFlatL | ( | TInt | aCount | ) | [protected] |
IMPORT_C TInt | Sort | ( | TKeyArrayFix & | aKey | ) |
Sorts the elements of the array into key sequence.
Parameters | |
---|---|
aKey | The key object defining the properties of the key. |