📄 classconscell.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: ConsCell 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>ConsCell Class Reference</h1><code>#include <<a class="el" href="Cell_8hpp-source.html">Cell.hpp</a>></code><p><p>Inheritance diagram for ConsCell:<p><center><img src="classConsCell.png" usemap="#ConsCell_map" border="0" alt=""></center><map name="ConsCell_map"><area href="classCell.html" alt="Cell" shape="rect" coords="0,0,63,24"></map><a href="classConsCell-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="classConsCell.html#a0">ConsCell</a> (<a class="el" href="classCell.html">Cell</a> *const my_car, <a class="el" href="classCell.html">Cell</a> *const my_cdr)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor of ConsCell. <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="classConsCell.html#a1">is_cons</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Check if this is a cons cell. <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classCell.html">Cell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classConsCell.html#a2">get_car</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Accessor (error if this is not a cons cell). <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classCell.html">Cell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classConsCell.html#a3">get_cdr</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Accessor (error if this is not a cons cell). <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="classConsCell.html#a4">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="#a4"></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="classConsCell.html#a5">is_list</a> () const </td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCell.html">Cell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classConsCell.html#r0">car</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCell.html">Cell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classConsCell.html#r1">cdr</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a0" doxytag="ConsCell::ConsCell"></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">ConsCell::ConsCell </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classCell.html">Cell</a> *const </td> <td class="mdname" nowrap> <em>my_car</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="classCell.html">Cell</a> *const </td> <td class="mdname" nowrap> <em>my_cdr</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor of ConsCell. <p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a2" doxytag="ConsCell::get_car"></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> * ConsCell::get_car </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 a cons cell). <p><dl compact><dt><b>Returns:</b></dt><dd>First child cell.</dd></dl><p>Reimplemented from <a class="el" href="classCell.html#a7">Cell</a>. </td> </tr></table><a class="anchor" name="a3" doxytag="ConsCell::get_cdr"></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> * ConsCell::get_cdr </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 a cons cell). <p><dl compact><dt><b>Returns:</b></dt><dd>Rest child cell.</dd></dl><p>Reimplemented from <a class="el" href="classCell.html#a8">Cell</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="ConsCell::is_cons"></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 ConsCell::is_cons </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 cons cell. <p><dl compact><dt><b>Returns:</b></dt><dd>True iff this is a cons cell.</dd></dl><p>Reimplemented from <a class="el" href="classCell.html#a3">Cell</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="ConsCell::is_list"></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 ConsCell::is_list </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><p>Reimplemented from <a class="el" href="classCell.html#a17">Cell</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="ConsCell::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 ConsCell::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="ConsCell::car"></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>* <a class="el" href="classConsCell.html#r0">ConsCell::car</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><a class="anchor" name="r1" doxytag="ConsCell::cdr"></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>* <a class="el" href="classConsCell.html#r1">ConsCell::cdr</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:56 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 + -