![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class CArrayFixBase : public CBase;
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CArrayFixBase
-
Base class for arrays of fixed length objects.
Defined in CArrayFixBase
:
Compress()
Compresses the array.Count()const
Gets the number of elements held in the array.Delete(TInt)
Deletes a single element from the array at a specified position.Delete(TInt,TInt)
Deletes one or more contiguous elements from the array, starting at a specific p...Length()const
Gets the length of an element.Reset()
Deletes all elements from the array and frees the memory allocated to the array ...Sort(TKeyArrayFix &)
Sorts the elements of the array into key sequence.~CArrayFixBase()
Destructor.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...IMPORT_C ~CArrayFixBase();
Destructor.
This frees all resources owned by the object, prior to its destruction.
inline TInt Count() const;
Gets the number of elements held in the array.
|
inline TInt Length() const;
Gets the length of an element.
|
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.
IMPORT_C void Reset();
Deletes all elements from the array and frees the memory allocated to the array buffer.
IMPORT_C TInt Sort(TKeyArrayFix &aKey);
Sorts the elements of the array into key sequence.
|
|
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.
|
|
CArrayFixBase::Compress()
Compresses the array.IMPORT_C void Delete(TInt anIndex, TInt aCount);
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.
|
|