Location:
e32base.h
Link against: euser.lib
class CArrayPakBase : public CBase;
An implementation base class for all variable length, packed arrays.
The class is always derived from and is never instantiated explicitly.
CBase
- Base class for all classes to be instantiated on the heap
CArrayPakBase
- An implementation base class for all variable length, packed arrays
Defined in CArrayPakBase
:
Compress()
, Count()
, Delete()
, Delete()
, Length()
, Reset()
, SortL()
, ~CArrayPakBase()
Inherited from CBase
:
Extension_()
,
operator new()
IMPORT_C ~CArrayPakBase();
Destructor.
Frees all resources owned by the object, prior to its destruction.
inline TInt Count() const;
Gets the number of elements held in the array.
|
IMPORT_C TInt Length(TInt anIndex) const;
Gets the length of the specified element.
|
|
|
IMPORT_C void Compress();
Removes 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.
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 void SortL(TKeyArrayVar &aKey);
Sorts the elements of the array into key sequence.
Note that the function requires a TKeyArrayVar
key object because SortL()
creates a temporary CArrayVarFlat
array in its implementation and uses that array's Sort()
member function.
|
IMPORT_C void Delete(TInt anIndex);
Removes a single element from the array.
Deleting elements from the array does not cause the array buffer to be automatically compressed. Call CArrayPakBase::Compress()
to return excess space to the heap.
|
|
IMPORT_C void Delete(TInt anIndex, TInt aCount);
Removes 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 CArrayPakBase::Compress()
to return excess space to the heap.
|
|