CPtrC16Array Class Reference

class CPtrC16Array : public CArrayFixFlat< TPtrC16 >
An array of 16 bit non-modifiable pointer descriptors, TPtrC16, implemented using a flat buffer. "bafl.lib"
Since
5.0
Public Member Functions
CPtrC16Array(TInt)
~CPtrC16Array()
IMPORT_C voidCopyL(const MDesC16Array &)
IMPORT_C TIntMdcaCount()
IMPORT_C TPtrC16MdcaPoint(TInt)
voidoperator=(const MDesC16Array &)
Inherited Functions
CArrayFix< TPtrC16 >::AppendL(const TPtrC16 &)
CArrayFix< TPtrC16 >::AppendL(const TPtrC16 &,TInt)
CArrayFix< TPtrC16 >::AppendL(const TPtrC16 *,TInt)
CArrayFix< TPtrC16 >::Array()const
CArrayFix< TPtrC16 >::At(TInt)
CArrayFix< TPtrC16 >::At(TInt)const
CArrayFix< TPtrC16 >::Back(TInt)
CArrayFix< TPtrC16 >::Back(TInt)const
CArrayFix< TPtrC16 >::CArrayFix(TBufRep,TInt)
CArrayFix< TPtrC16 >::End(TInt)
CArrayFix< TPtrC16 >::End(TInt)const
CArrayFix< TPtrC16 >::ExpandL(TInt)
CArrayFix< TPtrC16 >::ExtendL()
CArrayFix< TPtrC16 >::Find(const TPtrC16 &,TKeyArrayFix &,TInt &)const
CArrayFix< TPtrC16 >::FindIsq(const TPtrC16 &,TKeyArrayFix &,TInt &)const
CArrayFix< TPtrC16 >::InsertIsqAllowDuplicatesL(const TPtrC16 &,TKeyArrayFix &)
CArrayFix< TPtrC16 >::InsertIsqL(const TPtrC16 &,TKeyArrayFix &)
CArrayFix< TPtrC16 >::InsertL(TInt,const TPtrC16 &)
CArrayFix< TPtrC16 >::InsertL(TInt,const TPtrC16 &,TInt)
CArrayFix< TPtrC16 >::InsertL(TInt,const TPtrC16 *,TInt)
CArrayFix< TPtrC16 >::ResizeL(TInt)
CArrayFix< TPtrC16 >::ResizeL(TInt,const TPtrC16 &)
CArrayFix< TPtrC16 >::operator[](TInt)
CArrayFix< TPtrC16 >::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< TPtrC16 >::CArrayFixFlat(TInt)
CArrayFixFlat< TPtrC16 >::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()

Constructor & Destructor Documentation

CPtrC16Array(TInt)

IMPORT_CCPtrC16Array(TIntaGranularity)

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

No memory is allocated to the array buffer by constructor.

Parameters

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

~CPtrC16Array()

IMPORT_C~CPtrC16Array()

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

Member Functions Documentation

CopyL(const MDesC16Array &)

IMPORT_C voidCopyL(const MDesC16Array &aArray)

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

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

Parameters

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

MdcaCount()

IMPORT_C TIntMdcaCount()const

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

MdcaPoint(TInt)

IMPORT_C TPtrC16MdcaPoint(TIntaIndex)const

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

Parameters

TInt 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.

operator=(const MDesC16Array &)

voidoperator=(const MDesC16Array &aArray)[inline]

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

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

Parameters

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