|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
|
3 <title>TB10.1 Example Applications: examples/Base/HashTableExample/hashtableexample.cpp File Reference</title> |
|
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
|
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
|
6 </head><body> |
|
7 <!-- Generated by Doxygen 1.5.3 --> |
|
8 <h1>examples/Base/HashTableExample/hashtableexample.cpp File Reference</h1> |
|
9 <p> |
|
10 <a href="hashtableexample_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
11 <tr><td></td></tr> |
|
12 <tr><td colspan="2"><br><h2>Functions</h2></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> |
|
14 |
|
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> |
|
16 |
|
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> |
|
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"> |
|
32 <div class="memproto"> |
|
33 <table class="memname"> |
|
34 <tr> |
|
35 <td class="memname">TUint32 MyHashFunction </td> |
|
36 <td>(</td> |
|
37 <td class="paramtype">const TMyOwnObject & </td> |
|
38 <td class="paramname"> <em>aObject</em> </td> |
|
39 <td> ) </td> |
|
40 <td width="100%"></td> |
|
41 </tr> |
|
42 </table> |
|
43 </div> |
|
44 <div class="memdoc"> |
|
45 |
|
46 <p> |
|
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"> |
|
49 <tr><td valign="top"></td><td valign="top"><em>aObject</em> </td><td>Custom structure object </td></tr> |
|
50 </table> |
|
51 </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> |
|
53 |
|
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> |
|
55 |
|
56 </div> |
|
57 </div><p> |
|
58 <a class="anchor" name="cbe0e70da9a3bb5c887d39c02af66258"></a><!-- doxytag: member="hashtableexample.cpp::MyIdentityFunction" ref="cbe0e70da9a3bb5c887d39c02af66258" args="(const TMyOwnObject &aObject1, const TMyOwnObject &aObject2)" --> |
|
59 <div class="memitem"> |
|
60 <div class="memproto"> |
|
61 <table class="memname"> |
|
62 <tr> |
|
63 <td class="memname">TBool MyIdentityFunction </td> |
|
64 <td>(</td> |
|
65 <td class="paramtype">const TMyOwnObject & </td> |
|
66 <td class="paramname"> <em>aObject1</em>, </td> |
|
67 </tr> |
|
68 <tr> |
|
69 <td class="paramkey"></td> |
|
70 <td></td> |
|
71 <td class="paramtype">const TMyOwnObject & </td> |
|
72 <td class="paramname"> <em>aObject2</em></td><td> </td> |
|
73 </tr> |
|
74 <tr> |
|
75 <td></td> |
|
76 <td>)</td> |
|
77 <td></td><td></td><td width="100%"></td> |
|
78 </tr> |
|
79 </table> |
|
80 </div> |
|
81 <div class="memdoc"> |
|
82 |
|
83 <p> |
|
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"> |
|
86 <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> |
|
88 </table> |
|
89 </dl> |
|
90 <dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean value of identity function for two custom structure objects </dd></dl> |
|
91 |
|
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> |
|
93 |
|
94 </div> |
|
95 </div><p> |
|
96 <a class="anchor" name="842a2320b517c541434909df8fe2dbc2"></a><!-- doxytag: member="hashtableexample.cpp::FindNumberInWords" ref="842a2320b517c541434909df8fe2dbc2" args="(const TInt &aNum, TDes &aDes)" --> |
|
97 <div class="memitem"> |
|
98 <div class="memproto"> |
|
99 <table class="memname"> |
|
100 <tr> |
|
101 <td class="memname">void FindNumberInWords </td> |
|
102 <td>(</td> |
|
103 <td class="paramtype">const TInt & </td> |
|
104 <td class="paramname"> <em>aNum</em>, </td> |
|
105 </tr> |
|
106 <tr> |
|
107 <td class="paramkey"></td> |
|
108 <td></td> |
|
109 <td class="paramtype">TDes & </td> |
|
110 <td class="paramname"> <em>aDes</em></td><td> </td> |
|
111 </tr> |
|
112 <tr> |
|
113 <td></td> |
|
114 <td>)</td> |
|
115 <td></td><td></td><td width="100%"></td> |
|
116 </tr> |
|
117 </table> |
|
118 </div> |
|
119 <div class="memdoc"> |
|
120 |
|
121 <p> |
|
122 Converts the specified number into words <dl compact><dt><b>Parameters:</b></dt><dd> |
|
123 <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> |
|
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> |
|
126 </table> |
|
127 </dl> |
|
128 |
|
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> |
|
130 |
|
131 </div> |
|
132 </div><p> |
|
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 |
|
134 <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> |
|
136 </body> |
|
137 </html> |