CPtrC8Array Class Reference

#include <badesca.h>

Link against: bafl.lib

class CPtrC8Array : public CArrayFixFlat< TPtrC8 >, public MDesC8Array
Public Member Functions
CPtrC8Array(TInt)
~CPtrC8Array()
IMPORT_C voidCopyL(const MDesC8Array &)
virtual IMPORT_C TIntMdcaCount()
virtual IMPORT_C TPtrC8MdcaPoint(TInt)
voidoperator=(const MDesC8Array &)
Inherited Functions
CArrayFix< TPtrC8 >::AppendL(const TPtrC8 &)
CArrayFix< TPtrC8 >::AppendL(const TPtrC8 &,TInt)
CArrayFix< TPtrC8 >::AppendL(const TPtrC8 *,TInt)
CArrayFix< TPtrC8 >::Array()const
CArrayFix< TPtrC8 >::At(TInt)
CArrayFix< TPtrC8 >::At(TInt)const
CArrayFix< TPtrC8 >::Back(TInt)
CArrayFix< TPtrC8 >::Back(TInt)const
CArrayFix< TPtrC8 >::CArrayFix(TBufRep,TInt)
CArrayFix< TPtrC8 >::End(TInt)
CArrayFix< TPtrC8 >::End(TInt)const
CArrayFix< TPtrC8 >::ExpandL(TInt)
CArrayFix< TPtrC8 >::ExtendL()
CArrayFix< TPtrC8 >::Find(const TPtrC8 &,TKeyArrayFix &,TInt &)const
CArrayFix< TPtrC8 >::FindIsq(const TPtrC8 &,TKeyArrayFix &,TInt &)const
CArrayFix< TPtrC8 >::InsertIsqAllowDuplicatesL(const TPtrC8 &,TKeyArrayFix &)
CArrayFix< TPtrC8 >::InsertIsqL(const TPtrC8 &,TKeyArrayFix &)
CArrayFix< TPtrC8 >::InsertL(TInt,const TPtrC8 &)
CArrayFix< TPtrC8 >::InsertL(TInt,const TPtrC8 &,TInt)
CArrayFix< TPtrC8 >::InsertL(TInt,const TPtrC8 *,TInt)
CArrayFix< TPtrC8 >::ResizeL(TInt)
CArrayFix< TPtrC8 >::ResizeL(TInt,const TPtrC8 &)
CArrayFix< TPtrC8 >::operator[](TInt)
CArrayFix< TPtrC8 >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
CArrayFixBase::Delete(TInt)
CArrayFixBase::Delete(TInt,TInt)
CArrayFixBase::Find(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::FindIsq(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::InsertIsqAllowDuplicatesL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertIsqL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertL(TInt,const TAny *)
CArrayFixBase::InsertL(TInt,const TAny *,TInt)
CArrayFixBase::InsertRepL(TInt,const TAny *,TInt)
CArrayFixBase::Length()const
CArrayFixBase::Reset()
CArrayFixBase::ResizeL(TInt,const TAny *)
CArrayFixBase::SetKey(TKeyArrayFix &)const
CArrayFixBase::SetReserveFlatL(TInt)
CArrayFixBase::Sort(TKeyArrayFix &)
CArrayFixBase::~CArrayFixBase()
CArrayFixFlat< TPtrC8 >::CArrayFixFlat(TInt)
CArrayFixFlat< TPtrC8 >::SetReserveL(TInt)
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
MDesC8Array::~MDesC8Array()

Detailed Description

Array of 8 bit non-modifiable pointer descriptors, TPtrC8, implemented using a flat buffer. "bafl.lib"
Since
5.0

Constructor & Destructor Documentation

CPtrC8Array ( TInt )

IMPORT_CCPtrC8Array(TIntaGranularity)

Constructs an array of 8 bit non-modifiable descriptors with the specified granularity. The length of all elements in the array buffer is the length of a TPtrC8 object.

No memory is allocated to the array buffer by this constructor.

Parameters
aGranularityThe granularity of the array. This value must be positive otherwise the constructor raises an E32USER-CBase 18 panic.

~CPtrC8Array ( )

IMPORT_C~CPtrC8Array()

Frees all resources owned by the object, prior to its destruction.

Member Function Documentation

CopyL ( const MDesC8Array & )

IMPORT_C voidCopyL(const MDesC8Array &aArray)

Copies a descriptor array into this array, deleting any pre-existing elements.

The function constructs TPtrC8 elements for each descriptor element in the specified descriptor array.

Parameters
aArrayA reference to any descriptor array which satisfies the protocol defined by this mixin class.

MdcaCount ( )

IMPORT_C TIntMdcaCount()const [virtual]

Reimplemented from MDesC8Array::MdcaCount()const

Returns the number of elements in the array. The function implements the pure virtual function MDesC8Array::MdcaCount().

Return Value
The number of elements.

MdcaPoint ( TInt )

IMPORT_C TPtrC8MdcaPoint(TIntaIndex)const [virtual]

Reimplemented from MDesC8Array::MdcaPoint(TInt)const

Indexes into the descriptor array. The function implements the pure virtual function MDesC8Array::MdcaPoint().

Parameters
aIndexThe 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.
Return Value
A non-modifiable pointer descriptor for the data represented by the element at position aIndex within the array.

operator= ( const MDesC8Array & )

voidoperator=(const MDesC8Array &aArray)[inline]

Copies a descriptor array into this array, deleting any pre-existing elements.

The function constructs TPtrC8 elements for each descriptor element in the specified descriptor array. This operator behaves in the same ways as CPtrC8Array::CopyL().