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 TInt Append (const TAny *)
IMPORT_C TAny *& At ( TInt )
IMPORT_C TInt BinarySearch (const TAny *, TInt &, TGeneralLinearOrder )
IMPORT_C TInt BinarySearch (const TAny *, TInt &, TGeneralLinearOrder , TInt )
IMPORT_C TInt BinarySearchSigned ( TInt , TInt &)
IMPORT_C TInt BinarySearchSigned ( TInt , TInt &, TInt )
IMPORT_C TInt BinarySearchUnsigned ( TUint , TInt &)
IMPORT_C TInt BinarySearchUnsigned ( TUint , TInt &, TInt )
IMPORT_C void Close ()
IMPORT_C void Compress ()
IMPORT_C TInt Count ()
IMPORT_C TInt DoReserve ( TInt )
TAny ** Entries ()
IMPORT_C TInt Find (const TAny *)
IMPORT_C TInt Find (const TAny *, TGeneralIdentityRelation )
IMPORT_C TInt FindIsq (const TAny *, TGeneralLinearOrder )
IMPORT_C TInt FindIsq (const TAny *, TGeneralLinearOrder , TInt )
IMPORT_C TInt FindIsqSigned ( TInt )
IMPORT_C TInt FindIsqSigned ( TInt , TInt )
IMPORT_C TInt FindIsqUnsigned ( TUint )
IMPORT_C TInt FindIsqUnsigned ( TUint , TInt )
IMPORT_C TInt FindReverse (const TAny *)
IMPORT_C TInt FindReverse (const TAny *, TGeneralIdentityRelation )
IMPORT_C TInt GetCount (const CBase *)
IMPORT_C const TAny * GetElementPtr (const CBase *, TInt )
IMPORT_C void GranularCompress ()
IMPORT_C void HeapSort ( TGeneralLinearOrder )
IMPORT_C void HeapSortSigned ()
IMPORT_C void HeapSortUnsigned ()
IMPORT_C TInt Insert (const TAny *, TInt )
IMPORT_C TInt InsertIsq (const TAny *, TGeneralLinearOrder , TBool )
IMPORT_C TInt InsertIsqSigned ( TInt , TBool )
IMPORT_C TInt InsertIsqUnsigned ( TUint , TBool )
IMPORT_C void Remove ( TInt )
IMPORT_C void Reset ()
void ZeroCount ()
Private Member Functions
TInt Grow ()
Private Attributes
TInt iAllocated
TInt iCount
TAny ** iEntries
TInt iGranularity
TInt iSpare1
TInt iSpare2

Constructor & Destructor Documentation

RPointerArrayBase()

IMPORT_C RPointerArrayBase ( ) [protected]

RPointerArrayBase(TInt)

IMPORT_C RPointerArrayBase ( TInt aGranularity ) [protected]

Parameters

TInt aGranularity

RPointerArrayBase(TInt, TInt)

IMPORT_C RPointerArrayBase ( TInt aMinGrowBy,
TInt aFactor
) [protected]

Parameters

TInt aMinGrowBy
TInt aFactor

RPointerArrayBase(TAny **, TInt)

IMPORT_C RPointerArrayBase ( TAny ** aEntries,
TInt aCount
) [protected]

Parameters

TAny ** aEntries
TInt aCount

Member Functions Documentation

Append(const TAny *)

IMPORT_C TInt Append ( const TAny * anEntry ) [protected]

Parameters

const TAny * anEntry

At(TInt)

IMPORT_C TAny *& At ( TInt anIndex ) const [protected]

Parameters

TInt anIndex

BinarySearch(const TAny *, TInt &, TGeneralLinearOrder)

IMPORT_C TInt BinarySearch ( const TAny * anEntry,
TInt & anIndex,
TGeneralLinearOrder anOrder
) const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TGeneralLinearOrder anOrder

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

IMPORT_C TInt BinarySearch ( const TAny * anEntry,
TInt & anIndex,
TGeneralLinearOrder anOrder,
TInt aMode
) const [protected]

Parameters

const TAny * anEntry
TInt & anIndex
TGeneralLinearOrder anOrder
TInt aMode

BinarySearchSigned(TInt, TInt &)

IMPORT_C TInt BinarySearchSigned ( TInt anEntry,
TInt & anIndex
) const [protected]

Parameters

TInt anEntry
TInt & anIndex

BinarySearchSigned(TInt, TInt &, TInt)

IMPORT_C TInt BinarySearchSigned ( TInt anEntry,
TInt & anIndex,
TInt aMode
) const [protected]

Parameters

TInt anEntry
TInt & anIndex
TInt aMode

BinarySearchUnsigned(TUint, TInt &)

IMPORT_C TInt BinarySearchUnsigned ( TUint anEntry,
TInt & anIndex
) const [protected]

Parameters

TUint anEntry
TInt & anIndex

BinarySearchUnsigned(TUint, TInt &, TInt)

IMPORT_C TInt BinarySearchUnsigned ( TUint anEntry,
TInt & anIndex,
TInt aMode
) const [protected]

Parameters

TUint anEntry
TInt & anIndex
TInt aMode

Close()

IMPORT_C void Close ( ) [protected]

Compress()

IMPORT_C void Compress ( ) [protected]

Count()

IMPORT_C TInt Count ( ) const [protected]

DoReserve(TInt)

IMPORT_C TInt DoReserve ( TInt aCount ) [protected]

Parameters

TInt aCount

Entries()

TAny ** Entries ( ) [protected, inline]

Find(const TAny *)

IMPORT_C TInt Find ( const TAny * anEntry ) const [protected]

Parameters

const TAny * anEntry

Find(const TAny *, TGeneralIdentityRelation)

IMPORT_C TInt Find ( const TAny * anEntry,
TGeneralIdentityRelation anIdentity
) const [protected]

Parameters

const TAny * anEntry
TGeneralIdentityRelation anIdentity

FindIsq(const TAny *, TGeneralLinearOrder)

IMPORT_C TInt FindIsq ( const TAny * anEntry,
TGeneralLinearOrder anOrder
) const [protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder

FindIsq(const TAny *, TGeneralLinearOrder, TInt)

IMPORT_C TInt FindIsq ( const TAny * anEntry,
TGeneralLinearOrder anOrder,
TInt aMode
) const [protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder
TInt aMode

FindIsqSigned(TInt)

IMPORT_C TInt FindIsqSigned ( TInt anEntry ) const [protected]

Parameters

TInt anEntry

FindIsqSigned(TInt, TInt)

IMPORT_C TInt FindIsqSigned ( TInt anEntry,
TInt aMode
) const [protected]

Parameters

TInt anEntry
TInt aMode

FindIsqUnsigned(TUint)

IMPORT_C TInt FindIsqUnsigned ( TUint anEntry ) const [protected]

Parameters

TUint anEntry

FindIsqUnsigned(TUint, TInt)

IMPORT_C TInt FindIsqUnsigned ( TUint anEntry,
TInt aMode
) const [protected]

Parameters

TUint anEntry
TInt aMode

FindReverse(const TAny *)

IMPORT_C TInt FindReverse ( const TAny * aEntry ) const [protected]

Parameters

const TAny * aEntry

FindReverse(const TAny *, TGeneralIdentityRelation)

IMPORT_C TInt FindReverse ( const TAny * aEntry,
TGeneralIdentityRelation aIdentity
) const [protected]

Parameters

const TAny * aEntry
TGeneralIdentityRelation aIdentity

GetCount(const CBase *)

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

Parameters

const CBase * aPtr

GetElementPtr(const CBase *, TInt)

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

Parameters

const CBase * aPtr
TInt aIndex

GranularCompress()

IMPORT_C void GranularCompress ( ) [protected]

Grow()

TInt Grow ( ) [private]

HeapSort(TGeneralLinearOrder)

IMPORT_C void HeapSort ( TGeneralLinearOrder anOrder ) [protected]

Parameters

TGeneralLinearOrder anOrder

HeapSortSigned()

IMPORT_C void HeapSortSigned ( ) [protected]

HeapSortUnsigned()

IMPORT_C void HeapSortUnsigned ( ) [protected]

Insert(const TAny *, TInt)

IMPORT_C TInt Insert ( const TAny * anEntry,
TInt aPos
) [protected]

Parameters

const TAny * anEntry
TInt aPos

InsertIsq(const TAny *, TGeneralLinearOrder, TBool)

IMPORT_C TInt InsertIsq ( const TAny * anEntry,
TGeneralLinearOrder anOrder,
TBool aAllowRepeats
) [protected]

Parameters

const TAny * anEntry
TGeneralLinearOrder anOrder
TBool aAllowRepeats

InsertIsqSigned(TInt, TBool)

IMPORT_C TInt InsertIsqSigned ( TInt anEntry,
TBool aAllowRepeats
) [protected]

Parameters

TInt anEntry
TBool aAllowRepeats

InsertIsqUnsigned(TUint, TBool)

IMPORT_C TInt InsertIsqUnsigned ( TUint anEntry,
TBool aAllowRepeats
) [protected]

Parameters

TUint anEntry
TBool aAllowRepeats

Remove(TInt)

IMPORT_C void Remove ( TInt anIndex ) [protected]

Parameters

TInt anIndex

Reset()

IMPORT_C void Reset ( ) [protected]

ZeroCount()

void ZeroCount ( ) [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]