Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/hashtableexample_8cpp.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/Base/HashTableExample/hashtableexample.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>examples/Base/HashTableExample/hashtableexample.cpp File Reference</h1>
<p><a href="hashtableexample_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#af116fb9d6e7d2da4bc1190cc359bacb7">MyHashFunction</a> (const TMyOwnObject &amp;aObject)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#acbe0e70da9a3bb5c887d39c02af66258">MyIdentityFunction</a> (const TMyOwnObject &amp;aObject1, const TMyOwnObject &amp;aObject2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="hashtableexample_8cpp.html#a842a2320b517c541434909df8fe2dbc2">FindNumberInWords</a> (const TInt &amp;aNum, TDes &amp;aDes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fb473d4ee18739183215b04dcad6e12"></a><!-- doxytag: member="hashtableexample.cpp::MainL" ref="a5fb473d4ee18739183215b04dcad6e12" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>MainL</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="hashtableexample.cpp::E32Main" ref="a0f358e9c4355138f629b8c4f37310295" args="()" -->
GLDEF_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><b>E32Main</b> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition in file <a class="el" href="hashtableexample_8cpp_source.html">hashtableexample.cpp</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="af116fb9d6e7d2da4bc1190cc359bacb7"></a><!-- doxytag: member="hashtableexample.cpp::MyHashFunction" ref="af116fb9d6e7d2da4bc1190cc359bacb7" args="(const TMyOwnObject &amp;aObject)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TUint32 MyHashFunction </td>
          <td>(</td>
          <td class="paramtype">const TMyOwnObject &amp;&nbsp;</td>
          <td class="paramname"> <em>aObject</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<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>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aObject</em>&nbsp;</td><td>Custom structure object </td></tr>
  </table>
  </dd>
</dl>
<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>

<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>

</div>
</div>
<a class="anchor" id="acbe0e70da9a3bb5c887d39c02af66258"></a><!-- doxytag: member="hashtableexample.cpp::MyIdentityFunction" ref="acbe0e70da9a3bb5c887d39c02af66258" args="(const TMyOwnObject &amp;aObject1, const TMyOwnObject &amp;aObject2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TBool MyIdentityFunction </td>
          <td>(</td>
          <td class="paramtype">const TMyOwnObject &amp;&nbsp;</td>
          <td class="paramname"> <em>aObject1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TMyOwnObject &amp;&nbsp;</td>
          <td class="paramname"> <em>aObject2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Custom identity function in arbitary implementation to check the identity relation between the values of two custom structure objects. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aObj1</em>&nbsp;</td><td>Custom structure object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aObj2</em>&nbsp;</td><td>Custom structure object </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Boolean value of identity function for two custom structure objects </dd></dl>

<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>

</div>
</div>
<a class="anchor" id="a842a2320b517c541434909df8fe2dbc2"></a><!-- doxytag: member="hashtableexample.cpp::FindNumberInWords" ref="a842a2320b517c541434909df8fe2dbc2" args="(const TInt &amp;aNum, TDes &amp;aDes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FindNumberInWords </td>
          <td>(</td>
          <td class="paramtype">const TInt &amp;&nbsp;</td>
          <td class="paramname"> <em>aNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TDes &amp;&nbsp;</td>
          <td class="paramname"> <em>aDes</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Converts the specified number into words </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aNum</em>&nbsp;</td><td>Integer to convert </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aDes</em>&nbsp;</td><td>Reference to the descriptor containing the result in words </td></tr>
  </table>
  </dd>
</dl>

<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>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>