Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_long_number.html
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 6 43e37759235e
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<!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: CLongNumber Class 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>CLongNumber Class Reference</h1><!-- doxytag: class="CLongNumber" -->
<p><a href="class_c_long_number-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a1b7d3d5b97621f32d776d9b1a0d19d8a">RunL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a7039dbe9ebbf42b59f919ba2755dd8a3">DoCancel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a1c0ebc1c9dbcc9c34250ffef859b8a2f">AddToScheduler</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a1b5d110a5df39ccfeda083160370dc5c">ReadNumber</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a2112ad5c07adc10adf5d63c33ef2d5cd">~CLongNumber</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#aec695d1da24cd27f36fed7c4f0ffe0a6">PrintNumber</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#aa7b7c59251aa6d2ffc25f0ec9312b59d">InitializeIter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#a5ef806e05880bcf07c0506bd36beefe0">GetNumber</a> (TInt &amp;aValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#ae717f76bb1203c1c495b5e37fa4d8ff9">Slide</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_long_number.html">CLongNumber</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_long_number.html#aa6cb04e2afa3b0948941ab4910739331">NewL</a> (CConsoleBase *aConsole)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class has an object of the TSglQue class, which represents the digits of an integer number list. It is derived from the CActive class to handle asynchronous user inputs. It has methods to:</p>
<ul>
<li>edit the linked list</li>
<li>traverse the linked list using an iterator </li>
</ul>

<p>Definition at line <a class="el" href="longnumber_8h_source.html#l00034">34</a> of file <a class="el" href="longnumber_8h_source.html">longnumber.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2112ad5c07adc10adf5d63c33ef2d5cd"></a><!-- doxytag: member="CLongNumber::~CLongNumber" ref="a2112ad5c07adc10adf5d63c33ef2d5cd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CLongNumber::~CLongNumber </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. The <a class="el" href="class_t_digit.html">TDigit</a> objects were allocated memory at runtime. Iterate over the list to delete them. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00277">277</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa6cb04e2afa3b0948941ab4910739331"></a><!-- doxytag: member="CLongNumber::NewL" ref="aa6cb04e2afa3b0948941ab4910739331" args="(CConsoleBase *aConsole)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_long_number.html">CLongNumber</a> * CLongNumber::NewL </td>
          <td>(</td>
          <td class="paramtype">CConsoleBase *&nbsp;</td>
          <td class="paramname"> <em>aConsole</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates an object of the <a class="el" href="class_c_long_number.html">CLongNumber</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aConsole</em>&nbsp;</td><td>The user console. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the object of the <a class="el" href="class_c_long_number.html">CLongNumber</a> class. </dd></dl>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00030">30</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1b7d3d5b97621f32d776d9b1a0d19d8a"></a><!-- doxytag: member="CLongNumber::RunL" ref="a1b7d3d5b97621f32d776d9b1a0d19d8a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::RunL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the key-press events for this active object. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00064">64</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7039dbe9ebbf42b59f919ba2755dd8a3"></a><!-- doxytag: member="CLongNumber::DoCancel" ref="a7039dbe9ebbf42b59f919ba2755dd8a3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::DoCancel </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Cancel any outstanding request. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00263">263</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1c0ebc1c9dbcc9c34250ffef859b8a2f"></a><!-- doxytag: member="CLongNumber::AddToScheduler" ref="a1c0ebc1c9dbcc9c34250ffef859b8a2f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::AddToScheduler </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds this active object to the active scheduler </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00056">56</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1b5d110a5df39ccfeda083160370dc5c"></a><!-- doxytag: member="CLongNumber::ReadNumber" ref="a1b5d110a5df39ccfeda083160370dc5c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::ReadNumber </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads a number from the console. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00183">183</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aec695d1da24cd27f36fed7c4f0ffe0a6"></a><!-- doxytag: member="CLongNumber::PrintNumber" ref="aec695d1da24cd27f36fed7c4f0ffe0a6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::PrintNumber </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints the number. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00193">193</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa7b7c59251aa6d2ffc25f0ec9312b59d"></a><!-- doxytag: member="CLongNumber::InitializeIter" ref="aa7b7c59251aa6d2ffc25f0ec9312b59d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLongNumber::InitializeIter </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the iterator to the first element of the list. </p>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00221">221</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5ef806e05880bcf07c0506bd36beefe0"></a><!-- doxytag: member="CLongNumber::GetNumber" ref="a5ef806e05880bcf07c0506bd36beefe0" args="(TInt &amp;aValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TBool CLongNumber::GetNumber </td>
          <td>(</td>
          <td class="paramtype">TInt &amp;&nbsp;</td>
          <td class="paramname"> <em>aValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets the integer number of the <a class="el" href="class_t_digit.html">TDigit</a> node, which is pointed to by the iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aValue</em>&nbsp;</td><td>The reference to an integer. On return, this stores the value of the digit. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>EFalse if the iterator has reached the end of the list, else ETrue. </dd></dl>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00232">232</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae717f76bb1203c1c495b5e37fa4d8ff9"></a><!-- doxytag: member="CLongNumber::Slide" ref="ae717f76bb1203c1c495b5e37fa4d8ff9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TBool CLongNumber::Slide </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves the iterator to the next node of the list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>EFalse, if the iterator has reached the end of the list, else ETrue. </dd></dl>

<p>Definition at line <a class="el" href="longnumber_8cpp_source.html#l00248">248</a> of file <a class="el" href="longnumber_8cpp_source.html">longnumber.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>