examples/Base/HashTableExample/hashtableexample.cpp File Reference

Go to the source code of this file.

Functions

TUint32 MyHashFunction (const TMyOwnObject &aObject)
TBool MyIdentityFunction (const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)
void FindNumberInWords (const TInt &aNum, TDes &aDes)
void MainL ()
GLDEF_C TInt E32Main ()

Detailed Description

Definition in file hashtableexample.cpp.


Function Documentation

TUint32 MyHashFunction ( const TMyOwnObject &  aObject  ) 

This is a simple implementation of a hash function for a compound object. It is not intended as an example of an optimum hash function implementation

Parameters:
aObject Custom structure object
Returns:
Integer value of hash function for two values of a specified custom structure objects

Definition at line 99 of file hashtableexample.cpp.

TBool MyIdentityFunction ( const TMyOwnObject &  aObject1,
const TMyOwnObject &  aObject2 
)

Custom identity function in arbitary implementation to check the identity relation between the values of two custom structure objects.

Parameters:
aObj1 Custom structure object
aObj2 Custom structure object
Returns:
Boolean value of identity function for two custom structure objects

Definition at line 111 of file hashtableexample.cpp.

void FindNumberInWords ( const TInt &  aNum,
TDes &  aDes 
)

Converts the specified number into words

Parameters:
aNum Integer to convert
aDes Reference to the descriptor containing the result in words

Definition at line 266 of file hashtableexample.cpp.


Generated by  doxygen 1.6.2