MHashKey Class Reference

class MHashKey

Interface that a hash key must implement. These functions are needed to determine the location of a data item in the hash table, and to indicate when two keys are equal.

Public Member Functions
TBool IsEqual(const MHashKey &)
TUint ToInt()

Member Functions Documentation

IsEqual(const MHashKey &)

TBool IsEqual(const MHashKey &aKey)[pure virtual]

Return ETrue if this key is considered equal to the another key. Equality can be a non-trivial concept, as can be seen in the implementation of THashKeyIp6 that implements this virtual class.

Parameters

const MHashKey & aKey

ToInt()

TUint ToInt()[pure virtual]

Generate a unsigned integer value from the key. It can be used, e.g. as an index to the hash table. The integer generation must be deterministic.