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 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 (const TAny *, TInt &)
IMPORT_C TInt BinarySearchSigned (const TAny *, TInt &, TInt )
IMPORT_C TInt BinarySearchUnsigned (const TAny *, TInt &)
IMPORT_C TInt BinarySearchUnsigned (const TAny *, TInt &, TInt )
IMPORT_C void Close ()
IMPORT_C void Compress ()
IMPORT_C TInt Count ()
IMPORT_C TInt DoReserve ( TInt )
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 (const TAny *)
IMPORT_C TInt FindIsqSigned (const TAny *, TInt )
IMPORT_C TInt FindIsqUnsigned (const TAny *)
IMPORT_C TInt FindIsqUnsigned (const TAny *, 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 (const TAny *, TBool )
IMPORT_C TInt InsertIsqUnsigned (const TAny *, TBool )
IMPORT_C void Remove ( TInt )
IMPORT_C void Reset ()
IMPORT_C void SetKeyOffset ( 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_C RArrayBase ( TInt anEntrySize ) [protected]

Parameters

TInt anEntrySize

RArrayBase(TInt, TInt)

IMPORT_C RArrayBase ( TInt anEntrySize,
TInt aGranularity
) [protected]

Parameters

TInt anEntrySize
TInt aGranularity

RArrayBase(TInt, TInt, TInt)

IMPORT_C RArrayBase ( TInt anEntrySize,
TInt aGranularity,
TInt aKeyOffset
) [protected]

Parameters

TInt anEntrySize
TInt aGranularity
TInt aKeyOffset

RArrayBase(TInt, TInt, TInt, TInt)

IMPORT_C RArrayBase ( TInt anEntrySize,
TInt aMinGrowBy,
TInt aKeyOffset,
TInt aFactor
) [protected]

Parameters

TInt anEntrySize
TInt aMinGrowBy
TInt aKeyOffset
TInt aFactor

RArrayBase(TInt, TAny *, TInt)

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

Parameters

TInt aEntrySize
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(const TAny *, TInt &)

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

Parameters

const TAny * anEntry
TInt & anIndex

BinarySearchSigned(const TAny *, TInt &, TInt)

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

Parameters

const TAny * anEntry
TInt & anIndex
TInt aMode

BinarySearchUnsigned(const TAny *, TInt &)

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

Parameters

const TAny * anEntry
TInt & anIndex

BinarySearchUnsigned(const TAny *, TInt &, TInt)

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

Parameters

const TAny * 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

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(const TAny *)

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

Parameters

const TAny * anEntry

FindIsqSigned(const TAny *, TInt)

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

Parameters

const TAny * anEntry
TInt aMode

FindIsqUnsigned(const TAny *)

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

Parameters

const TAny * anEntry

FindIsqUnsigned(const TAny *, TInt)

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

Parameters

const TAny * 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(const TAny *, TBool)

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

Parameters

const TAny * anEntry
TBool aAllowRepeats

InsertIsqUnsigned(const TAny *, TBool)

IMPORT_C TInt InsertIsqUnsigned ( const TAny * anEntry,
TBool aAllowRepeats
) [protected]

Parameters

const TAny * anEntry
TBool aAllowRepeats

Remove(TInt)

IMPORT_C void Remove ( TInt anIndex ) [protected]

Parameters

TInt anIndex

Reset()

IMPORT_C void Reset ( ) [protected]

SetKeyOffset(TInt)

IMPORT_C void SetKeyOffset ( TInt aKeyOffset ) [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]