CArrayVarBase Class Reference

class CArrayVarBase : public CBase

An implementation base class for variable length arrays.

It provides implementation and public functions which are common to all variable length type arrays.

The class is always derived from and is never instantiated explicitly.

Inherits from

Constructor & Destructor Documentation

CArrayVarBase(TBufRep, TInt)

IMPORT_CCArrayVarBase(TBufRepaRep,
TIntaGranularity
)[protected]

Parameters

TBufRep aRep
TInt aGranularity

~CArrayVarBase()

IMPORT_C~CArrayVarBase()

Member Functions Documentation

At(TInt)

IMPORT_C TAny *At(TIntanIndex)const

Parameters

TInt anIndex

AtR(const CBase *, TInt)

IMPORT_C const TAny *AtR(const CBase *aPtr,
TIntanIndex
)[protected, static]

Parameters

const CBase * aPtr
TInt anIndex

Compress()

IMPORT_C voidCompress()

Count()

TInt Count()const [inline]

Gets the number of elements held in the array.

The number of array elements.

CountR(const CBase *)

IMPORT_C TIntCountR(const CBase *aPtr)[protected, static]

Parameters

const CBase * aPtr

Delete(TInt)

IMPORT_C voidDelete(TIntanIndex)

Parameters

TInt anIndex

Delete(TInt, TInt)

IMPORT_C voidDelete(TIntanIndex,
TIntaCount
)

Parameters

TInt anIndex
TInt aCount

ExpandL(TInt, TInt)

IMPORT_C TAny *ExpandL(TIntanIndex,
TIntaLength
)

Parameters

TInt anIndex
TInt aLength

Find(const TAny *, TKeyArrayVar &, TInt &)

IMPORT_C TIntFind(const TAny *aPtr,
TKeyArrayVar &aKey,
TInt &anIndex
)const

Parameters

const TAny * aPtr
TKeyArrayVar & aKey
TInt & anIndex

FindIsq(const TAny *, TKeyArrayVar &, TInt &)

IMPORT_C TIntFindIsq(const TAny *aPtr,
TKeyArrayVar &aKey,
TInt &anIndex
)const

Parameters

const TAny * aPtr
TKeyArrayVar & aKey
TInt & anIndex

InsertIsqAllowDuplicatesL(const TAny *, TInt, TKeyArrayVar &)

IMPORT_C TIntInsertIsqAllowDuplicatesL(const TAny *aPtr,
TIntaLength,
TKeyArrayVar &aKey
)

Parameters

const TAny * aPtr
TInt aLength
TKeyArrayVar & aKey

InsertIsqL(const TAny *, TInt, TKeyArrayVar &)

IMPORT_C TIntInsertIsqL(const TAny *aPtr,
TIntaLength,
TKeyArrayVar &aKey
)

Parameters

const TAny * aPtr
TInt aLength
TKeyArrayVar & aKey

InsertL(TInt, const TAny *, TInt)

IMPORT_C voidInsertL(TIntanIndex,
const TAny *aPtr,
TIntaLength
)

Parameters

TInt anIndex
const TAny * aPtr
TInt aLength

Length(TInt)

IMPORT_C TIntLength(TIntanIndex)const

Parameters

TInt anIndex

Reset()

IMPORT_C voidReset()

SetKey(TKeyArrayVar &)

IMPORT_C voidSetKey(TKeyArrayVar &aKey)const [protected]

Parameters

TKeyArrayVar & aKey

Sort(TKeyArrayVar &)

IMPORT_C TIntSort(TKeyArrayVar &aKey)

Parameters

TKeyArrayVar & aKey

Member Data Documentation

CBufBase * iBase

CBufBase *iBase[private]

TInt iCount

TInt iCount[private]

TBufRep iCreateRep

TBufRep iCreateRep[private]

TInt iGranularity

TInt iGranularity[private]