RPointerArrayBase Class Reference

class RPointerArrayBase

Base class used in the derivation of RPointerArray, RArray<TInt>, and RArray<TUint>.

The base class is inherited privately.

The class is internal and is not intended for use.

Protected Member Functions
RPointerArrayBase()
RPointerArrayBase(TInt)
RPointerArrayBase(TInt, TInt)
RPointerArrayBase(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(TInt, TInt &)
IMPORT_C TIntBinarySearchSigned(TInt, TInt &, TInt)
IMPORT_C TIntBinarySearchUnsigned(TUint, TInt &)
IMPORT_C TIntBinarySearchUnsigned(TUint, TInt &, TInt)
IMPORT_C voidClose()
IMPORT_C voidCompress()
IMPORT_C TIntCount()
IMPORT_C TIntDoReserve(TInt)
TAny **Entries()
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(TInt)
IMPORT_C TIntFindIsqSigned(TInt, TInt)
IMPORT_C TIntFindIsqUnsigned(TUint)
IMPORT_C TIntFindIsqUnsigned(TUint, 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(TInt, TBool)
IMPORT_C TIntInsertIsqUnsigned(TUint, TBool)
IMPORT_C voidRemove(TInt)
IMPORT_C voidReset()
voidZeroCount()
Private Member Functions
TInt Grow()
Private Attributes
TInt iAllocated
TInt iCount
TAny **iEntries
TInt iGranularity
TInt iSpare1
TInt iSpare2

Constructor & Destructor Documentation

RPointerArrayBase()

IMPORT_CRPointerArrayBase()[protected]

RPointerArrayBase(TInt)

IMPORT_CRPointerArrayBase(TIntaGranularity)[protected]

Parameters

TInt aGranularity

RPointerArrayBase(TInt, TInt)

IMPORT_CRPointerArrayBase(TIntaMinGrowBy,
TIntaFactor
)[protected]

Parameters

TInt aMinGrowBy
TInt aFactor

RPointerArrayBase(TAny **, TInt)

IMPORT_CRPointerArrayBase(TAny **aEntries,
TIntaCount
)[protected]

Parameters

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(TInt, TInt &)

IMPORT_C TIntBinarySearchSigned(TIntanEntry,
TInt &anIndex
)const [protected]

Parameters

TInt anEntry
TInt & anIndex

BinarySearchSigned(TInt, TInt &, TInt)

IMPORT_C TIntBinarySearchSigned(TIntanEntry,
TInt &anIndex,
TIntaMode
)const [protected]

Parameters

TInt anEntry
TInt & anIndex
TInt aMode

BinarySearchUnsigned(TUint, TInt &)

IMPORT_C TIntBinarySearchUnsigned(TUintanEntry,
TInt &anIndex
)const [protected]

Parameters

TUint anEntry
TInt & anIndex

BinarySearchUnsigned(TUint, TInt &, TInt)

IMPORT_C TIntBinarySearchUnsigned(TUintanEntry,
TInt &anIndex,
TIntaMode
)const [protected]

Parameters

TUint 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

Entries()

TAny **Entries()[protected, inline]

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(TInt)

IMPORT_C TIntFindIsqSigned(TIntanEntry)const [protected]

Parameters

TInt anEntry

FindIsqSigned(TInt, TInt)

IMPORT_C TIntFindIsqSigned(TIntanEntry,
TIntaMode
)const [protected]

Parameters

TInt anEntry
TInt aMode

FindIsqUnsigned(TUint)

IMPORT_C TIntFindIsqUnsigned(TUintanEntry)const [protected]

Parameters

TUint anEntry

FindIsqUnsigned(TUint, TInt)

IMPORT_C TIntFindIsqUnsigned(TUintanEntry,
TIntaMode
)const [protected]

Parameters

TUint 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(TInt, TBool)

IMPORT_C TIntInsertIsqSigned(TIntanEntry,
TBoolaAllowRepeats
)[protected]

Parameters

TInt anEntry
TBool aAllowRepeats

InsertIsqUnsigned(TUint, TBool)

IMPORT_C TIntInsertIsqUnsigned(TUintanEntry,
TBoolaAllowRepeats
)[protected]

Parameters

TUint anEntry
TBool aAllowRepeats

Remove(TInt)

IMPORT_C voidRemove(TIntanIndex)[protected]

Parameters

TInt anIndex

Reset()

IMPORT_C voidReset()[protected]

ZeroCount()

voidZeroCount()[protected, inline]

Member Data Documentation

TInt iAllocated

TInt iAllocated[private]

TInt iCount

TInt iCount[private]

TAny ** iEntries

TAny **iEntries[private]

TInt iGranularity

TInt iGranularity[private]

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]