1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <title>TB10.1 Example Applications: examples/Base/HashTableExample/hashtableexample.cpp File Reference</title> |
3 <head> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
5 <title>TB9.2 Example Applications: examples/Base/HashTableExample/hashtableexample.cpp File Reference</title> |
6 </head><body> |
6 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
7 <!-- Generated by Doxygen 1.5.3 --> |
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 </head> |
|
9 <body> |
|
10 <!-- Generated by Doxygen 1.6.2 --> |
|
11 <div class="contents"> |
8 <h1>examples/Base/HashTableExample/hashtableexample.cpp File Reference</h1> |
12 <h1>examples/Base/HashTableExample/hashtableexample.cpp File Reference</h1> |
9 <p> |
13 <p><a href="hashtableexample_8cpp_source.html">Go to the source code of this file.</a></p> |
10 <a href="hashtableexample_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
14 <table border="0" cellpadding="0" cellspacing="0"> |
11 <tr><td></td></tr> |
15 <tr><td colspan="2"><h2>Functions</h2></td></tr> |
12 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
16 <tr><td class="memItemLeft" align="right" valign="top">TUint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#af116fb9d6e7d2da4bc1190cc359bacb7">MyHashFunction</a> (const TMyOwnObject &aObject)</td></tr> |
13 <tr><td class="memItemLeft" nowrap align="right" valign="top">TUint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#f116fb9d6e7d2da4bc1190cc359bacb7">MyHashFunction</a> (const TMyOwnObject &aObject)</td></tr> |
17 <tr><td class="memItemLeft" align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#acbe0e70da9a3bb5c887d39c02af66258">MyIdentityFunction</a> (const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)</td></tr> |
|
18 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#a842a2320b517c541434909df8fe2dbc2">FindNumberInWords</a> (const TInt &aNum, TDes &aDes)</td></tr> |
|
19 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fb473d4ee18739183215b04dcad6e12"></a><!-- doxytag: member="hashtableexample.cpp::MainL" ref="a5fb473d4ee18739183215b04dcad6e12" args="()" --> |
|
20 void </td><td class="memItemRight" valign="bottom"><b>MainL</b> ()</td></tr> |
|
21 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="hashtableexample.cpp::E32Main" ref="a0f358e9c4355138f629b8c4f37310295" args="()" --> |
|
22 GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><b>E32Main</b> ()</td></tr> |
|
23 </table> |
|
24 <hr/><a name="_details"></a><h2>Detailed Description</h2> |
14 |
25 |
15 <tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#cbe0e70da9a3bb5c887d39c02af66258">MyIdentityFunction</a> (const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)</td></tr> |
26 <p>Definition in file <a class="el" href="hashtableexample_8cpp_source.html">hashtableexample.cpp</a>.</p> |
16 |
27 <hr/><h2>Function Documentation</h2> |
17 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#842a2320b517c541434909df8fe2dbc2">FindNumberInWords</a> (const TInt &aNum, TDes &aDes)</td></tr> |
28 <a class="anchor" id="af116fb9d6e7d2da4bc1190cc359bacb7"></a><!-- doxytag: member="hashtableexample.cpp::MyHashFunction" ref="af116fb9d6e7d2da4bc1190cc359bacb7" args="(const TMyOwnObject &aObject)" --> |
18 |
|
19 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5fb473d4ee18739183215b04dcad6e12"></a><!-- doxytag: member="hashtableexample.cpp::MainL" ref="5fb473d4ee18739183215b04dcad6e12" args="()" --> |
|
20 void </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#5fb473d4ee18739183215b04dcad6e12">MainL</a> ()</td></tr> |
|
21 |
|
22 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="hashtableexample.cpp::E32Main" ref="0f358e9c4355138f629b8c4f37310295" args="()" --> |
|
23 GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr> |
|
24 |
|
25 </table> |
|
26 <hr><a name="_details"></a><h2>Detailed Description</h2> |
|
27 |
|
28 <p>Definition in file <a class="el" href="hashtableexample_8cpp-source.html">hashtableexample.cpp</a>.</p> |
|
29 <hr><h2>Function Documentation</h2> |
|
30 <a class="anchor" name="f116fb9d6e7d2da4bc1190cc359bacb7"></a><!-- doxytag: member="hashtableexample.cpp::MyHashFunction" ref="f116fb9d6e7d2da4bc1190cc359bacb7" args="(const TMyOwnObject &aObject)" --> |
|
31 <div class="memitem"> |
29 <div class="memitem"> |
32 <div class="memproto"> |
30 <div class="memproto"> |
33 <table class="memname"> |
31 <table class="memname"> |
34 <tr> |
32 <tr> |
35 <td class="memname">TUint32 MyHashFunction </td> |
33 <td class="memname">TUint32 MyHashFunction </td> |
36 <td>(</td> |
34 <td>(</td> |
37 <td class="paramtype">const TMyOwnObject & </td> |
35 <td class="paramtype">const TMyOwnObject & </td> |
38 <td class="paramname"> <em>aObject</em> </td> |
36 <td class="paramname"> <em>aObject</em></td> |
39 <td> ) </td> |
37 <td> ) </td> |
40 <td width="100%"></td> |
38 <td></td> |
41 </tr> |
39 </tr> |
42 </table> |
40 </table> |
43 </div> |
41 </div> |
44 <div class="memdoc"> |
42 <div class="memdoc"> |
45 |
43 <p>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 </p> |
46 <p> |
44 <dl><dt><b>Parameters:</b></dt><dd> |
47 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 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
48 <table border="0" cellspacing="2" cellpadding="0"> |
45 <table border="0" cellspacing="2" cellpadding="0"> |
49 <tr><td valign="top"></td><td valign="top"><em>aObject</em> </td><td>Custom structure object </td></tr> |
46 <tr><td valign="top"></td><td valign="top"><em>aObject</em> </td><td>Custom structure object </td></tr> |
50 </table> |
47 </table> |
|
48 </dd> |
51 </dl> |
49 </dl> |
52 <dl class="return" compact><dt><b>Returns:</b></dt><dd>Integer value of hash function for two values of a specified custom structure objects </dd></dl> |
50 <dl class="return"><dt><b>Returns:</b></dt><dd>Integer value of hash function for two values of a specified custom structure objects </dd></dl> |
53 |
51 |
54 <p>Definition at line <a class="el" href="hashtableexample_8cpp-source.html#l00099">99</a> of file <a class="el" href="hashtableexample_8cpp-source.html">hashtableexample.cpp</a>.</p> |
52 <p>Definition at line <a class="el" href="hashtableexample_8cpp_source.html#l00099">99</a> of file <a class="el" href="hashtableexample_8cpp_source.html">hashtableexample.cpp</a>.</p> |
55 |
53 |
56 </div> |
54 </div> |
57 </div><p> |
55 </div> |
58 <a class="anchor" name="cbe0e70da9a3bb5c887d39c02af66258"></a><!-- doxytag: member="hashtableexample.cpp::MyIdentityFunction" ref="cbe0e70da9a3bb5c887d39c02af66258" args="(const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)" --> |
56 <a class="anchor" id="acbe0e70da9a3bb5c887d39c02af66258"></a><!-- doxytag: member="hashtableexample.cpp::MyIdentityFunction" ref="acbe0e70da9a3bb5c887d39c02af66258" args="(const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)" --> |
59 <div class="memitem"> |
57 <div class="memitem"> |
60 <div class="memproto"> |
58 <div class="memproto"> |
61 <table class="memname"> |
59 <table class="memname"> |
62 <tr> |
60 <tr> |
63 <td class="memname">TBool MyIdentityFunction </td> |
61 <td class="memname">TBool MyIdentityFunction </td> |
64 <td>(</td> |
62 <td>(</td> |
65 <td class="paramtype">const TMyOwnObject & </td> |
63 <td class="paramtype">const TMyOwnObject & </td> |
66 <td class="paramname"> <em>aObject1</em>, </td> |
64 <td class="paramname"> <em>aObject1</em>, </td> |
67 </tr> |
65 </tr> |
68 <tr> |
66 <tr> |
72 <td class="paramname"> <em>aObject2</em></td><td> </td> |
70 <td class="paramname"> <em>aObject2</em></td><td> </td> |
73 </tr> |
71 </tr> |
74 <tr> |
72 <tr> |
75 <td></td> |
73 <td></td> |
76 <td>)</td> |
74 <td>)</td> |
77 <td></td><td></td><td width="100%"></td> |
75 <td></td><td></td><td></td> |
78 </tr> |
76 </tr> |
79 </table> |
77 </table> |
80 </div> |
78 </div> |
81 <div class="memdoc"> |
79 <div class="memdoc"> |
82 |
80 <p>Custom identity function in arbitary implementation to check the identity relation between the values of two custom structure objects. </p> |
83 <p> |
81 <dl><dt><b>Parameters:</b></dt><dd> |
84 Custom identity function in arbitary implementation to check the identity relation between the values of two custom structure objects. <dl compact><dt><b>Parameters:</b></dt><dd> |
|
85 <table border="0" cellspacing="2" cellpadding="0"> |
82 <table border="0" cellspacing="2" cellpadding="0"> |
86 <tr><td valign="top"></td><td valign="top"><em>aObj1</em> </td><td>Custom structure object </td></tr> |
83 <tr><td valign="top"></td><td valign="top"><em>aObj1</em> </td><td>Custom structure object </td></tr> |
87 <tr><td valign="top"></td><td valign="top"><em>aObj2</em> </td><td>Custom structure object </td></tr> |
84 <tr><td valign="top"></td><td valign="top"><em>aObj2</em> </td><td>Custom structure object </td></tr> |
88 </table> |
85 </table> |
|
86 </dd> |
89 </dl> |
87 </dl> |
90 <dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean value of identity function for two custom structure objects </dd></dl> |
88 <dl class="return"><dt><b>Returns:</b></dt><dd>Boolean value of identity function for two custom structure objects </dd></dl> |
91 |
89 |
92 <p>Definition at line <a class="el" href="hashtableexample_8cpp-source.html#l00111">111</a> of file <a class="el" href="hashtableexample_8cpp-source.html">hashtableexample.cpp</a>.</p> |
90 <p>Definition at line <a class="el" href="hashtableexample_8cpp_source.html#l00111">111</a> of file <a class="el" href="hashtableexample_8cpp_source.html">hashtableexample.cpp</a>.</p> |
93 |
91 |
94 </div> |
92 </div> |
95 </div><p> |
93 </div> |
96 <a class="anchor" name="842a2320b517c541434909df8fe2dbc2"></a><!-- doxytag: member="hashtableexample.cpp::FindNumberInWords" ref="842a2320b517c541434909df8fe2dbc2" args="(const TInt &aNum, TDes &aDes)" --> |
94 <a class="anchor" id="a842a2320b517c541434909df8fe2dbc2"></a><!-- doxytag: member="hashtableexample.cpp::FindNumberInWords" ref="a842a2320b517c541434909df8fe2dbc2" args="(const TInt &aNum, TDes &aDes)" --> |
97 <div class="memitem"> |
95 <div class="memitem"> |
98 <div class="memproto"> |
96 <div class="memproto"> |
99 <table class="memname"> |
97 <table class="memname"> |
100 <tr> |
98 <tr> |
101 <td class="memname">void FindNumberInWords </td> |
99 <td class="memname">void FindNumberInWords </td> |
102 <td>(</td> |
100 <td>(</td> |
103 <td class="paramtype">const TInt & </td> |
101 <td class="paramtype">const TInt & </td> |
104 <td class="paramname"> <em>aNum</em>, </td> |
102 <td class="paramname"> <em>aNum</em>, </td> |
105 </tr> |
103 </tr> |
106 <tr> |
104 <tr> |
110 <td class="paramname"> <em>aDes</em></td><td> </td> |
108 <td class="paramname"> <em>aDes</em></td><td> </td> |
111 </tr> |
109 </tr> |
112 <tr> |
110 <tr> |
113 <td></td> |
111 <td></td> |
114 <td>)</td> |
112 <td>)</td> |
115 <td></td><td></td><td width="100%"></td> |
113 <td></td><td></td><td></td> |
116 </tr> |
114 </tr> |
117 </table> |
115 </table> |
118 </div> |
116 </div> |
119 <div class="memdoc"> |
117 <div class="memdoc"> |
120 |
118 <p>Converts the specified number into words </p> |
121 <p> |
119 <dl><dt><b>Parameters:</b></dt><dd> |
122 Converts the specified number into words <dl compact><dt><b>Parameters:</b></dt><dd> |
|
123 <table border="0" cellspacing="2" cellpadding="0"> |
120 <table border="0" cellspacing="2" cellpadding="0"> |
124 <tr><td valign="top"></td><td valign="top"><em>aNum</em> </td><td>Integer to convert </td></tr> |
121 <tr><td valign="top"></td><td valign="top"><em>aNum</em> </td><td>Integer to convert </td></tr> |
125 <tr><td valign="top"></td><td valign="top"><em>aDes</em> </td><td>Reference to the descriptor containing the result in words </td></tr> |
122 <tr><td valign="top"></td><td valign="top"><em>aDes</em> </td><td>Reference to the descriptor containing the result in words </td></tr> |
126 </table> |
123 </table> |
|
124 </dd> |
127 </dl> |
125 </dl> |
128 |
126 |
129 <p>Definition at line <a class="el" href="hashtableexample_8cpp-source.html#l00266">266</a> of file <a class="el" href="hashtableexample_8cpp-source.html">hashtableexample.cpp</a>.</p> |
127 <p>Definition at line <a class="el" href="hashtableexample_8cpp_source.html#l00266">266</a> of file <a class="el" href="hashtableexample_8cpp_source.html">hashtableexample.cpp</a>.</p> |
130 |
128 |
131 </div> |
129 </div> |
132 </div><p> |
130 </div> |
133 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by |
131 </div> |
|
132 <hr size="1"/><address style="text-align: right;"><small>Generated by |
134 <a href="http://www.doxygen.org/index.html"> |
133 <a href="http://www.doxygen.org/index.html"> |
135 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
134 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
136 </body> |
135 </body> |
137 </html> |
136 </html> |