diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/hashtableexample_8cpp.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/hashtableexample_8cpp.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,137 @@ + + +TB10.1 Example Applications: examples/Base/HashTableExample/hashtableexample.cpp File Reference + + + + +

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 on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by  + +doxygen 1.5.3
+ +