⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classdoublecell.html

📁 building parser with C++ functions
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>a1: DoubleCell Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.9.1 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><h1>DoubleCell Class Reference</h1><code>#include &lt;<a class="el" href="Cell_8hpp-source.html">Cell.hpp</a>&gt;</code><p><p>Inheritance diagram for DoubleCell:<p><center><img src="classDoubleCell.png" usemap="#DoubleCell_map" border="0" alt=""></center><map name="DoubleCell_map"><area href="classCell.html" alt="Cell" shape="rect" coords="0,0,74,24"></map><a href="classDoubleCell-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a0">DoubleCell</a> (const double d)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor of DoubleCell.  <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a1">is_double</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if this is a double cell.  <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a2">get_double</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accessor (error if this is not a double cell).  <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a3">print</a> (ostream &amp;os=cout) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print the subtree rooted at this cell, in s-expression notation.  <a href="#a3"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classCell.html">Cell</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a4">cell_ceil</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "ceiling".  <a href="#a4"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classCell.html">Cell</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a5">cell_floor</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "floor".  <a href="#a5"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a6">cell_sum</a> (int &amp;i, double &amp;result) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "+".  <a href="#a6"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a7">cell_times</a> (int &amp;i, double &amp;result) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "*".  <a href="#a7"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a8">cell_sub</a> (int &amp;i, double &amp;result) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "-".  <a href="#a8"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a9">cell_div</a> (int &amp;i, double &amp;result) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To do the operator "/".  <a href="#a9"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#a10">is_zero</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To check if it is zero.  <a href="#a10"></a><br></td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleCell.html#r0">double_m</a></td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a0" doxytag="DoubleCell::DoubleCell"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">DoubleCell::DoubleCell           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>d</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor of DoubleCell. <p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a4" doxytag="DoubleCell::cell_ceil"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="classCell.html">Cell</a> * DoubleCell::cell_ceil           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>To do the operator "ceiling". <p><p>Reimplemented from <a class="el" href="classCell.html#a10">Cell</a>.    </td>  </tr></table><a class="anchor" name="a9" doxytag="DoubleCell::cell_div"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void DoubleCell::cell_div           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>i</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>result</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>To do the operator "/". <p><p>Reimplemented from <a class="el" href="classCell.html#a15">Cell</a>.    </td>  </tr></table><a class="anchor" name="a5" doxytag="DoubleCell::cell_floor"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="classCell.html">Cell</a> * DoubleCell::cell_floor           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>To do the operator "floor". <p><p>Reimplemented from <a class="el" href="classCell.html#a11">Cell</a>.    </td>  </tr></table><a class="anchor" name="a8" doxytag="DoubleCell::cell_sub"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void DoubleCell::cell_sub           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>i</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>result</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>To do the operator "-". <p><p>Reimplemented from <a class="el" href="classCell.html#a14">Cell</a>.    </td>  </tr></table><a class="anchor" name="a6" doxytag="DoubleCell::cell_sum"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void DoubleCell::cell_sum           </td>          <td class="md" valign="top">(&nbsp;</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -