RArrayBase Class Reference

class RArrayBase

Base class used in the derivation of RArray.

The base class is inherited privately.

The class is internal and is not intended for use.

Protected Member Functions
RArrayBase(TInt)
RArrayBase(TInt, TInt)
RArrayBase(TInt, TInt, TInt)
RArrayBase(TInt, TInt, TInt, TInt)
RArrayBase(TInt, TAny *, TInt)
IMPORT_C TIntAppend(const TAny *)
IMPORT_C TAny *At(TInt)
IMPORT_C TIntBinarySearch(const TAny *, TInt &, TGeneralLinearOrder)
IMPORT_C TIntBinarySearch(const TAny *, TInt &, TGeneralLinearOrder, TInt)
IMPORT_C TIntBinarySearchSigned(const TAny *, TInt &)
IMPORT_C TIntBinarySearchSigned(const TAny *, TInt &, TInt)
IMPORT_C TIntBinarySearchUnsigned(const TAny *, TInt &)
IMPORT_C TIntBinarySearchUnsigned(const TAny *, TInt &, TInt)
IMPORT_C voidClose()
IMPORT_C voidCompress()
IMPORT_C TIntCount()
IMPORT_C TIntDoReserve(TInt)
IMPORT_C TIntFind(const TAny *)
IMPORT_C TIntFind(const TAny *, TGeneralIdentityRelation)
IMPORT_C TIntFindIsq(const TAny *, TGeneralLinearOrder)
IMPORT_C TIntFindIsq(const TAny *, TGeneralLinearOrder, TInt)
IMPORT_C TIntFindIsqSigned(const TAny *)
IMPORT_C TIntFindIsqSigned(const TAny *, TInt)
IMPORT_C TIntFindIsqUnsigned(const TAny *)
IMPORT_C TIntFindIsqUnsigned(const TAny *, TInt)
IMPORT_C TIntFindReverse(const TAny *)
IMPORT_C TIntFindReverse(const TAny *, TGeneralIdentityRelation)
IMPORT_C TIntGetCount(const CBase *)
IMPORT_C const TAny *GetElementPtr(const CBase *, TInt)
IMPORT_C voidGranularCompress()
IMPORT_C voidHeapSort(TGeneralLinearOrder)
IMPORT_C voidHeapSortSigned()
IMPORT_C voidHeapSortUnsigned()
IMPORT_C TIntInsert(const TAny *, TInt)
IMPORT_C TIntInsertIsq(const TAny *, TGeneralLinearOrder, TBool)
IMPORT_C TIntInsertIsqSigned(const TAny *, TBool)
IMPORT_C TIntInsertIsqUnsigned(const TAny *, TBool)
IMPORT_C voidRemove(TInt)
IMPORT_C voidReset()
IMPORT_C voidSetKeyOffset(TInt)
Private Member Functions
TInt Grow()
Private Attributes
TInt iAllocated
TInt iCount
TAny *iEntries
TInt iEntrySize
TInt iGranularity
TInt iKeyOffset
TInt iSpare1
TInt iSpare2

Constructor & Destructor Documentation

RArrayBase(TInt)

IMPORT_CRArrayBase(TIntanEntrySize)[protected]

Parameters

TInt anEntrySize

RArrayBase(TInt, TInt)

IMPORT_CRArrayBase(TIntanEntrySize,
TIntaGranularity
)[protected]

Parameters

TInt anEntrySize
TInt aGranularity

RArrayBase(TInt, TInt, TInt)

IMPORT_CRArrayBase(TIntanEntrySize,
TIntaGranularity,
TIntaKeyOffset
)[protected]

Parameters

TInt anEntrySize
TInt aGranularity
TInt aKeyOffset

RArrayBase(TInt, TInt, TInt, TInt)

IMPORT_CRArrayBase(TIntanEntrySize,
TIntaMinGrowBy,
TIntaKeyOffset,
TIntaFactor
)[protected]

Parameters

TInt anEntrySize
TInt aMinGrowBy
TInt aKeyOffset
TInt aFactor

RArrayBase(TInt, TAny *, TInt)

IMPORT_CRArrayBase(TIntaEntrySize,
TAny *aEntries,
TIntaCount
)[protected]

Parameters

TInt aEntrySize
TAny * aEntries
TInt aCount

Member Functions Documentation

Append(const TAny *)

IMPORT_C TIntAppend(const TAny *anEntry)[protected]

Parameters

const TAny * anEntry

At(TInt)

IMPORT_C TAny *At(TIntanIndex)const [protected]

Parameters

TInt anIndex

BinarySearch(const TAny *, TInt &, TGeneralLinearOrder)

IMPORT_C TIntBinarySearch(const TAny *anEntry,
TInt &anIndex,
TGeneralLinearOrderanOrder
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TGeneralLinearOrder anOrder

BinarySearch(const TAny *, TInt &, TGeneralLinearOrder, TInt)

IMPORT_C TIntBinarySearch(const TAny *anEntry,
TInt &anIndex,
TGeneralLinearOrderanOrder,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TGeneralLinearOrder anOrder
TInt aMode

BinarySearchSigned(const TAny *, TInt &)

IMPORT_C TIntBinarySearchSigned(const TAny *anEntry,
TInt &anIndex
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex

BinarySearchSigned(const TAny *, TInt &, TInt)

IMPORT_C TIntBinarySearchSigned(const TAny *anEntry,
TInt &anIndex,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TInt aMode

BinarySearchUnsigned(const TAny *, TInt &)

IMPORT_C TIntBinarySearchUnsigned(const TAny *anEntry,
TInt &anIndex
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex

BinarySearchUnsigned(const TAny *, TInt &, TInt)

IMPORT_C TIntBinarySearchUnsigned(const TAny *anEntry,
TInt &anIndex,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TInt aMode

Close()

IMPORT_C voidClose()[protected]

Compress()

IMPORT_C voidCompress()[protected]

Count()

IMPORT_C TIntCount()const [protected]

DoReserve(TInt)

IMPORT_C TIntDoReserve(TIntaCount)[protected]

Parameters

TInt aCount

Find(const TAny *)

IMPORT_C TIntFind(const TAny *anEntry)const [protected]

Parameters

const TAny * anEntry

Find(const TAny *, TGeneralIdentityRelation)

IMPORT_C TIntFind(const TAny *anEntry,
TGeneralIdentityRelationanIdentity
)const [protected]

Parameters

const TAny * anEntry
TGeneralIdentityRelation anIdentity

FindIsq(const TAny *, TGeneralLinearOrder)

IMPORT_C TIntFindIsq(const TAny *anEntry,
TGeneralLinearOrderanOrder
)const [protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder

FindIsq(const TAny *, TGeneralLinearOrder, TInt)

IMPORT_C TIntFindIsq(const TAny *anEntry,
TGeneralLinearOrderanOrder,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder
TInt aMode

FindIsqSigned(const TAny *)

IMPORT_C TIntFindIsqSigned(const TAny *anEntry)const [protected]

Parameters

const TAny * anEntry

FindIsqSigned(const TAny *, TInt)

IMPORT_C TIntFindIsqSigned(const TAny *anEntry,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TInt aMode

FindIsqUnsigned(const TAny *)

IMPORT_C TIntFindIsqUnsigned(const TAny *anEntry)const [protected]

Parameters

const TAny * anEntry

FindIsqUnsigned(const TAny *, TInt)

IMPORT_C TIntFindIsqUnsigned(const TAny *anEntry,
TIntaMode
)const [protected]

Parameters

const TAny * anEntry
TInt aMode

FindReverse(const TAny *)

IMPORT_C TIntFindReverse(const TAny *aEntry)const [protected]

Parameters

const TAny * aEntry

FindReverse(const TAny *, TGeneralIdentityRelation)

IMPORT_C TIntFindReverse(const TAny *aEntry,
TGeneralIdentityRelationaIdentity
)const [protected]

Parameters

const TAny * aEntry
TGeneralIdentityRelation aIdentity

GetCount(const CBase *)

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

Parameters

const CBase * aPtr

GetElementPtr(const CBase *, TInt)

IMPORT_C const TAny *GetElementPtr(const CBase *aPtr,
TIntaIndex
)[protected, static]

Parameters

const CBase * aPtr
TInt aIndex

GranularCompress()

IMPORT_C voidGranularCompress()[protected]

Grow()

TInt Grow()[private]

HeapSort(TGeneralLinearOrder)

IMPORT_C voidHeapSort(TGeneralLinearOrderanOrder)[protected]

Parameters

TGeneralLinearOrder anOrder

HeapSortSigned()

IMPORT_C voidHeapSortSigned()[protected]

HeapSortUnsigned()

IMPORT_C voidHeapSortUnsigned()[protected]

Insert(const TAny *, TInt)

IMPORT_C TIntInsert(const TAny *anEntry,
TIntaPos
)[protected]

Parameters

const TAny * anEntry
TInt aPos

InsertIsq(const TAny *, TGeneralLinearOrder, TBool)

IMPORT_C TIntInsertIsq(const TAny *anEntry,
TGeneralLinearOrderanOrder,
TBoolaAllowRepeats
)[protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder
TBool aAllowRepeats

InsertIsqSigned(const TAny *, TBool)

IMPORT_C TIntInsertIsqSigned(const TAny *anEntry,
TBoolaAllowRepeats
)[protected]

Parameters

const TAny * anEntry
TBool aAllowRepeats

InsertIsqUnsigned(const TAny *, TBool)

IMPORT_C TIntInsertIsqUnsigned(const TAny *anEntry,
TBoolaAllowRepeats
)[protected]

Parameters

const TAny * anEntry
TBool aAllowRepeats

Remove(TInt)

IMPORT_C voidRemove(TIntanIndex)[protected]

Parameters

TInt anIndex

Reset()

IMPORT_C voidReset()[protected]

SetKeyOffset(TInt)

IMPORT_C voidSetKeyOffset(TIntaKeyOffset)[protected]

Parameters

TInt aKeyOffset

Member Data Documentation

TInt iAllocated

TInt iAllocated[private]

TInt iCount

TInt iCount[private]

TAny * iEntries

TAny *iEntries[private]

TInt iEntrySize

TInt iEntrySize[private]

TInt iGranularity

TInt iGranularity[private]

TInt iKeyOffset

TInt iKeyOffset[private]

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]