📄 classintcell.html
字号:
<!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: IntCell 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div><h1>IntCell Class Reference</h1><code>#include <<a class="el" href="Cell_8hpp-source.html">Cell.hpp</a>></code><p><p>Inheritance diagram for IntCell:<p><center><img src="classIntCell.png" usemap="#IntCell_map" border="0" alt=""></center><map name="IntCell_map"><area href="classCell.html" alt="Cell" shape="rect" coords="0,0,47,24"></map><a href="classIntCell-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a0">IntCell</a> (const int i)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor of IntCell. <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a1">is_int</a> () const </td></tr><tr><td class="mdescLeft"> </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 int </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a2">get_int</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Accessor (error if this is not an int cell). <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a3">print</a> (ostream &os=cout) const </td></tr><tr><td class="mdescLeft"> </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 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a4">cell_sum</a> (int &i, double &result) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">To do the operator "+". <a href="#a4"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a5">cell_times</a> (int &i, double &result) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">To do the operator "*". <a href="#a5"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a6">cell_sub</a> (int &i, double &result) const </td></tr><tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a7">cell_div</a> (int &i, double &result) const </td></tr><tr><td class="mdescLeft"> </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 bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#a8">is_zero</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">To check if it is zero. <a href="#a8"></a><br></td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classIntCell.html#r0">int_m</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a0" doxytag="IntCell::IntCell"></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">IntCell::IntCell </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const int </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor of IntCell. <p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a7" doxytag="IntCell::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 IntCell::cell_div </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int & </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 & </td> <td class="mdname" nowrap> <em>result</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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="a6" doxytag="IntCell::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 IntCell::cell_sub </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int & </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 & </td> <td class="mdname" nowrap> <em>result</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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="a4" doxytag="IntCell::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 IntCell::cell_sum </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int & </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 & </td> <td class="mdname" nowrap> <em>result</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </td> <td><p>To do the operator "+". <p><p>Reimplemented from <a class="el" href="classCell.html#a12">Cell</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="IntCell::cell_times"></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 IntCell::cell_times </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int & </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 & </td> <td class="mdname" nowrap> <em>result</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </td> <td><p>To do the operator "*". <p><p>Reimplemented from <a class="el" href="classCell.html#a13">Cell</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="IntCell::get_int"></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">int IntCell::get_int </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Accessor (error if this is not an int cell). <p><dl compact><dt><b>Returns:</b></dt><dd>The value in this int cell.</dd></dl><p>Reimplemented from <a class="el" href="classCell.html#a4">Cell</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="IntCell::is_int"></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">bool IntCell::is_int </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Check if this is a double cell. <p><dl compact><dt><b>Returns:</b></dt><dd>True iff this is a double cell.</dd></dl><p>Reimplemented from <a class="el" href="classCell.html#a0">Cell</a>. </td> </tr></table><a class="anchor" name="a8" doxytag="IntCell::is_zero"></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">bool IntCell::is_zero </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>To check if it is zero. <p><p>Reimplemented from <a class="el" href="classCell.html#a16">Cell</a>. </td> </tr></table><a class="anchor" name="a3" doxytag="IntCell::print"></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 IntCell::print </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = <code>cout</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Print the subtree rooted at this cell, in s-expression notation. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>os</em> </td><td>The output stream to print to.</td></tr> </table></dl><p>Implements <a class="el" href="classCell.html#a9">Cell</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="r0" doxytag="IntCell::int_m"></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">int <a class="el" href="classIntCell.html#r0">IntCell::int_m</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Cell_8hpp-source.html">Cell.hpp</a><li><a class="el" href="Cell_8cpp.html">Cell.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 28 22:53:57 2007 for a1 by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -