THashFunction32 Class Reference

class THashFunction32

A templated class which packages a function that calculates a 32 bit hash value from a key of templated type.

A THashFunction32<T> object is constructed and passed as a parameter to member functions of the hash table classes RHashSet<T>, RPtrHashSet<T>, RHashMap<T,V> and RPtrHashMap<T,V>.

RHashSet RPtrHashSet RHashMap RPtrHashMap

Public Member Functions
THashFunction32(TUint32(*)(const T &))
TUint32 Hash(const T &)
operator TGeneralHashFunction32()
Private Attributes
TGeneralHashFunction32 iHashFunction

Constructor & Destructor Documentation

THashFunction32(TUint32(*)(const T &))

THashFunction32(TUint32(*)(const T &)aHashFunc)[inline]

Parameters

TUint32(*)(const T &) aHashFunc

Member Functions Documentation

Hash(const T &)

TUint32 Hash(const T &aKey)const [inline]

Parameters

const T & aKey

operator TGeneralHashFunction32()

operator TGeneralHashFunction32()const [inline]

Member Data Documentation

TGeneralHashFunction32 iHashFunction

TGeneralHashFunction32 iHashFunction[private]