CArrayFixBase Class Reference

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.

Inherits from

Public Member Functions
~CArrayFixBase()
IMPORT_C TAny *At(TInt)
IMPORT_C TAny *Back(TInt)
IMPORT_C voidCompress()
TInt Count()
IMPORT_C voidDelete(TInt)
IMPORT_C voidDelete(TInt, TInt)
IMPORT_C TAny *End(TInt)
IMPORT_C TAny *ExpandL(TInt)
IMPORT_C TIntFind(const TAny *, TKeyArrayFix &, TInt &)
IMPORT_C TIntFindIsq(const TAny *, TKeyArrayFix &, TInt &)
IMPORT_C TIntInsertIsqAllowDuplicatesL(const TAny *, TKeyArrayFix &)
IMPORT_C TIntInsertIsqL(const TAny *, TKeyArrayFix &)
IMPORT_C voidInsertL(TInt, const TAny *)
IMPORT_C voidInsertL(TInt, const TAny *, TInt)
TInt Length()
IMPORT_C voidReset()
IMPORT_C voidResizeL(TInt, const TAny *)
IMPORT_C TIntSort(TKeyArrayFix &)
Protected Member Functions
CArrayFixBase(TBufRep, TInt, TInt)
IMPORT_C const TAny *AtR(const CBase *, TInt)
IMPORT_C TIntCountR(const CBase *)
IMPORT_C voidInsertRepL(TInt, const TAny *, TInt)
IMPORT_C voidSetKey(TKeyArrayFix &)
IMPORT_C voidSetReserveFlatL(TInt)
Inherited Functions
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()
Private Attributes
CBufBase *iBase
TInt iCount
TBufRep iCreateRep
TInt iGranularity
TInt iLength

Constructor & Destructor Documentation

CArrayFixBase(TBufRep, TInt, TInt)

IMPORT_CCArrayFixBase(TBufRepaRep,
TIntaRecordLength,
TIntaGranularity
)[protected]

Parameters

TBufRep aRep
TInt aRecordLength
TInt aGranularity

~CArrayFixBase()

IMPORT_C~CArrayFixBase()

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

Back(TInt)

IMPORT_C TAny *Back(TIntanIndex)const

Parameters

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

End(TInt)

IMPORT_C TAny *End(TIntanIndex)const

Parameters

TInt anIndex

ExpandL(TInt)

IMPORT_C TAny *ExpandL(TIntanIndex)

Parameters

TInt anIndex

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

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

Parameters

const TAny * aPtr
TKeyArrayFix & aKey
TInt & anIndex

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

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

Parameters

const TAny * aPtr
TKeyArrayFix & aKey
TInt & anIndex

InsertIsqAllowDuplicatesL(const TAny *, TKeyArrayFix &)

IMPORT_C TIntInsertIsqAllowDuplicatesL(const TAny *aPtr,
TKeyArrayFix &aKey
)

Parameters

const TAny * aPtr
TKeyArrayFix & aKey

InsertIsqL(const TAny *, TKeyArrayFix &)

IMPORT_C TIntInsertIsqL(const TAny *aPtr,
TKeyArrayFix &aKey
)

Parameters

const TAny * aPtr
TKeyArrayFix & aKey

InsertL(TInt, const TAny *)

IMPORT_C voidInsertL(TIntanIndex,
const TAny *aPtr
)

Parameters

TInt anIndex
const TAny * aPtr

InsertL(TInt, const TAny *, TInt)

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

Parameters

TInt anIndex
const TAny * aPtr
TInt aCount

InsertRepL(TInt, const TAny *, TInt)

IMPORT_C voidInsertRepL(TIntanIndex,
const TAny *aPtr,
TIntaReplicas
)[protected]

Parameters

TInt anIndex
const TAny * aPtr
TInt aReplicas

Length()

TInt Length()const [inline]

Gets the length of an element.

The length of an element of type class T.

Reset()

IMPORT_C voidReset()

ResizeL(TInt, const TAny *)

IMPORT_C voidResizeL(TIntaCount,
const TAny *aPtr
)

Parameters

TInt aCount
const TAny * aPtr

SetKey(TKeyArrayFix &)

IMPORT_C voidSetKey(TKeyArrayFix &aKey)const [protected]

Parameters

TKeyArrayFix & aKey

SetReserveFlatL(TInt)

IMPORT_C voidSetReserveFlatL(TIntaCount)[protected]

Parameters

TInt aCount

Sort(TKeyArrayFix &)

IMPORT_C TIntSort(TKeyArrayFix &aKey)

Parameters

TKeyArrayFix & aKey

Member Data Documentation

CBufBase * iBase

CBufBase *iBase[private]

TInt iCount

TInt iCount[private]

TBufRep iCreateRep

TBufRep iCreateRep[private]

TInt iGranularity

TInt iGranularity[private]

TInt iLength

TInt iLength[private]