RMap Class Reference

class RMap
Public Member Functions
RMap (const TLinearOrder < Tkey > &)
void Close ()
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 &)
void InsertL (const Tkey *, const Tvalue *)
const Tvalue * InsertReplaceL (const Tkey *, const Tvalue *)
Tkey & KeyAt ( TInt )
const Tkey & KeyAt ( TInt )
RSafePointerArray < Tkey > & Keys ()
void RemoveAtL ( TInt , Tkey *&, Tvalue *&)
void RemoveL (const Tkey &)
void ResetAndDestroy ()
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()

void Close ( ) [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 *)

void InsertL ( 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 ( TInt anIndex ) [inline]

Parameters

TInt anIndex

KeyAt(TInt)

const Tkey & KeyAt ( TInt anIndex ) const [inline]

Parameters

TInt anIndex

Keys()

RSafePointerArray < Tkey > & Keys ( ) [inline]

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

void RemoveAtL ( TInt anIndex,
Tkey *& aKey,
Tvalue *& aValue
) [inline]

Parameters

TInt anIndex
Tkey *& aKey
Tvalue *& aValue

RemoveL(const Tkey &)

void RemoveL ( const Tkey & aKey ) [inline]

Parameters

const Tkey & aKey

ResetAndDestroy()

void ResetAndDestroy ( ) [inline]

ValueAt(TInt)

Tvalue & ValueAt ( TInt anIndex ) [inline]

Parameters

TInt anIndex

ValueAt(TInt)

const Tvalue & ValueAt ( TInt anIndex ) 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]