RMap Class Reference

class RMap
Public Member Functions
RMap(const TLinearOrder< Tkey > &)
voidClose()
TInt CompareAlphabetDes(const TDesC &, const TDesC &)
TInt CompareAlphabetDes8(const TDesC8 &, const TDesC8 &)
TInt CompareInt(const TInt64 &, const TInt64 &)
TBool ContainsKey(const Tkey &)
TBool ContainsValue(const Tvalue &)
TInt Count()
TInt Find(const Tkey &)
Tkey &GetKeyL(const Tvalue &)
Tvalue &GetValueL(const Tkey &)
voidInsertL(const Tkey *, const Tvalue *)
const Tvalue *InsertReplaceL(const Tkey *, const Tvalue *)
Tkey &KeyAt(TInt)
const Tkey &KeyAt(TInt)
RSafePointerArray< Tkey > &Keys()
voidRemoveAtL(TInt, Tkey *&, Tvalue *&)
voidRemoveL(const Tkey &)
voidResetAndDestroy()
Tvalue &ValueAt(TInt)
const Tvalue &ValueAt(TInt)
RSafePointerArray< Tvalue > &Values()
Protected Attributes
RSafePointerArray< Tkey >iKeys
TLinearOrder< Tkey >iOrder
RSafePointerArray< Tvalue >iValues

Constructor & Destructor Documentation

RMap(const TLinearOrder< Tkey > &)

RMap(const TLinearOrder< Tkey > &anOrder)[inline]

Parameters

const TLinearOrder< Tkey > & anOrder

Member Functions Documentation

Close()

voidClose()[inline]

CompareAlphabetDes(const TDesC &, const TDesC &)

TInt CompareAlphabetDes(const TDesC &aFirst,
const TDesC &aSecond
)[static, inline]

Parameters

const TDesC & aFirst
const TDesC & aSecond

CompareAlphabetDes8(const TDesC8 &, const TDesC8 &)

TInt CompareAlphabetDes8(const TDesC8 &aFirst,
const TDesC8 &aSecond
)[static, inline]

Parameters

const TDesC8 & aFirst
const TDesC8 & aSecond

CompareInt(const TInt64 &, const TInt64 &)

TInt CompareInt(const TInt64 &aFirst,
const TInt64 &aSecond
)[static, inline]

Parameters

const TInt64 & aFirst
const TInt64 & aSecond

ContainsKey(const Tkey &)

TBool ContainsKey(const Tkey &aKey)const [inline]

Parameters

const Tkey & aKey

ContainsValue(const Tvalue &)

TBool ContainsValue(const Tvalue &aValue)const [inline]

Parameters

const Tvalue & aValue

Count()

TInt Count()const [inline]

Find(const Tkey &)

TInt Find(const Tkey &aKey)const [inline]

Parameters

const Tkey & aKey

GetKeyL(const Tvalue &)

Tkey &GetKeyL(const Tvalue &aValue)const [inline]

Parameters

const Tvalue & aValue

GetValueL(const Tkey &)

Tvalue &GetValueL(const Tkey &aKey)const [inline]

Parameters

const Tkey & aKey

InsertL(const Tkey *, const Tvalue *)

voidInsertL(const Tkey *aKey,
const Tvalue *aValue
)[inline]

Parameters

const Tkey * aKey
const Tvalue * aValue

InsertReplaceL(const Tkey *, const Tvalue *)

const Tvalue *InsertReplaceL(const Tkey *aKey,
const Tvalue *aValue
)[inline]

Parameters

const Tkey * aKey
const Tvalue * aValue

KeyAt(TInt)

Tkey &KeyAt(TIntanIndex)[inline]

Parameters

TInt anIndex

KeyAt(TInt)

const Tkey &KeyAt(TIntanIndex)const [inline]

Parameters

TInt anIndex

Keys()

RSafePointerArray< Tkey > &Keys()[inline]

RemoveAtL(TInt, Tkey *&, Tvalue *&)

voidRemoveAtL(TIntanIndex,
Tkey *&aKey,
Tvalue *&aValue
)[inline]

Parameters

TInt anIndex
Tkey *& aKey
Tvalue *& aValue

RemoveL(const Tkey &)

voidRemoveL(const Tkey &aKey)[inline]

Parameters

const Tkey & aKey

ResetAndDestroy()

voidResetAndDestroy()[inline]

ValueAt(TInt)

Tvalue &ValueAt(TIntanIndex)[inline]

Parameters

TInt anIndex

ValueAt(TInt)

const Tvalue &ValueAt(TIntanIndex)const [inline]

Parameters

TInt anIndex

Values()

RSafePointerArray< Tvalue > &Values()[inline]

Member Data Documentation

RSafePointerArray< Tkey > iKeys

RSafePointerArray< Tkey >iKeys[protected]

TLinearOrder< Tkey > iOrder

TLinearOrder< Tkey >iOrder[protected]

RSafePointerArray< Tvalue > iValues

RSafePointerArray< Tvalue >iValues[protected]