<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>CVC3: Overloaded operator<<</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">CVC3 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Overloaded operator<<</div> </div> <div class="ingroups"><a class="el" href="group__PrettyPrinting.html">Pretty-printing related classes and methods</a></div></div><!--header--> <div class="contents"> <div class="dynheader"> Collaboration diagram for Overloaded operator<<:</div> <div class="dyncontent"> <center><table><tr><td><img src="group__ExprStream__Op.gif" border="0" alt="" usemap="#group____ExprStream____Op"/> <map name="group____ExprStream____Op" id="group____ExprStream____Op"> <area shape="rect" id="node2" href="group__PrettyPrinting.html" title="Pretty-printing related\l classes and methods" alt="" coords="6,5,157,46"/></map> </td></tr></table></center> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gafb08bfac859c5f0ed96a159243a47a03"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#gafb08bfac859c5f0ed96a159243a47a03">CVC3::operator<<</a> (ExprStream &os, ExprStream &(*manip)(ExprStream &))</td></tr> <tr class="memdesc:gafb08bfac859c5f0ed96a159243a47a03"><td class="mdescLeft"> </td><td class="mdescRight">Use manipulators which are functions over <a class="el" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&. <a href="#gafb08bfac859c5f0ed96a159243a47a03"></a><br/></td></tr> <tr class="separator:gafb08bfac859c5f0ed96a159243a47a03"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga807ec90201aad047af2334bf44a1c8c1"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#ga807ec90201aad047af2334bf44a1c8c1">CVC3::operator<<</a> (ExprStream &os, const Expr &e)</td></tr> <tr class="memdesc:ga807ec90201aad047af2334bf44a1c8c1"><td class="mdescLeft"> </td><td class="mdescRight">Print <a class="el" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>. <a href="#ga807ec90201aad047af2334bf44a1c8c1"></a><br/></td></tr> <tr class="separator:ga807ec90201aad047af2334bf44a1c8c1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga9108360cf03bb43170d573ffa52a9646"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#ga9108360cf03bb43170d573ffa52a9646">CVC3::operator<<</a> (ExprStream &os, const Type &t)</td></tr> <tr class="memdesc:ga9108360cf03bb43170d573ffa52a9646"><td class="mdescLeft"> </td><td class="mdescRight">Print <a class="el" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>. <a href="#ga9108360cf03bb43170d573ffa52a9646"></a><br/></td></tr> <tr class="separator:ga9108360cf03bb43170d573ffa52a9646"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga56b415642ba1c4dc5290f94b52b37e40"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#ga56b415642ba1c4dc5290f94b52b37e40">CVC3::operator<<</a> (ExprStream &os, const string &s)</td></tr> <tr class="memdesc:ga56b415642ba1c4dc5290f94b52b37e40"><td class="mdescLeft"> </td><td class="mdescRight">Print string. <a href="#ga56b415642ba1c4dc5290f94b52b37e40"></a><br/></td></tr> <tr class="separator:ga56b415642ba1c4dc5290f94b52b37e40"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gae8a3e2bbabccd414740c931cbaee870a"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#gae8a3e2bbabccd414740c931cbaee870a">CVC3::operator<<</a> (ExprStream &os, const char *s)</td></tr> <tr class="memdesc:gae8a3e2bbabccd414740c931cbaee870a"><td class="mdescLeft"> </td><td class="mdescRight">Print char* string. <a href="#gae8a3e2bbabccd414740c931cbaee870a"></a><br/></td></tr> <tr class="separator:gae8a3e2bbabccd414740c931cbaee870a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga8c910f52b3cc7c72213650230d3a6787"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#ga8c910f52b3cc7c72213650230d3a6787">CVC3::operator<<</a> (ExprStream &os, const Rational &r)</td></tr> <tr class="memdesc:ga8c910f52b3cc7c72213650230d3a6787"><td class="mdescLeft"> </td><td class="mdescRight">Print <a class="el" href="classCVC3_1_1Rational.html">Rational</a>. <a href="#ga8c910f52b3cc7c72213650230d3a6787"></a><br/></td></tr> <tr class="separator:ga8c910f52b3cc7c72213650230d3a6787"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gab3f2a7f9dc3d1685ab3266d86f4ab678"><td class="memItemLeft" align="right" valign="top">ExprStream & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ExprStream__Op.html#gab3f2a7f9dc3d1685ab3266d86f4ab678">CVC3::operator<<</a> (ExprStream &os, int i)</td></tr> <tr class="memdesc:gab3f2a7f9dc3d1685ab3266d86f4ab678"><td class="mdescLeft"> </td><td class="mdescRight">Print int. <a href="#gab3f2a7f9dc3d1685ab3266d86f4ab678"></a><br/></td></tr> <tr class="separator:gab3f2a7f9dc3d1685ab3266d86f4ab678"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="gafb08bfac859c5f0ed96a159243a47a03"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">ExprStream &(*)(ExprStream &) </td> <td class="paramname"><em>manip</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Use manipulators which are functions over <a class="el" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00156">156</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> </div> </div> <a class="anchor" id="ga807ec90201aad047af2334bf44a1c8c1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Expr & </td> <td class="paramname"><em>e</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print <a class="el" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00162">162</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> <p>References <a class="el" href="expr__stream_8cpp_source.html#l00093">CVC3::ExprStream::addLetHeader()</a>, <a class="el" href="kinds_8h_source.html#l00093">ASSERT</a>, <a class="el" href="lang_8h_source.html#l00038">CVC3::AST_LANG</a>, <a class="el" href="expr__stream_8cpp_source.html#l00054">CVC3::ExprStream::collectShared()</a>, <a class="el" href="kinds_8h_source.html#l00240">CONST</a>, <a class="el" href="expr__stream_8h_source.html#l00115">CVC3::ExprStream::d_currDepth</a>, <a class="el" href="expr__stream_8h_source.html#l00131">CVC3::ExprStream::d_dag</a>, <a class="el" href="expr__stream_8h_source.html#l00143">CVC3::ExprStream::d_dagBuilt</a>, <a class="el" href="expr__stream_8h_source.html#l00133">CVC3::ExprStream::d_dagMap</a>, <a class="el" href="expr__stream_8h_source.html#l00139">CVC3::ExprStream::d_dagPtr</a>, <a class="el" href="expr__stream_8h_source.html#l00114">CVC3::ExprStream::d_depth</a>, <a class="el" href="expr__stream_8h_source.html#l00112">CVC3::ExprStream::d_em</a>, <a class="el" href="expr__stream_8h_source.html#l00126">CVC3::ExprStream::d_indentLast</a>, <a class="el" href="expr__stream_8h_source.html#l00128">CVC3::ExprStream::d_indentReg</a>, <a class="el" href="expr__stream_8h_source.html#l00124">CVC3::ExprStream::d_indentStack</a>, <a class="el" href="expr__stream_8h_source.html#l00116">CVC3::ExprStream::d_lang</a>, <a class="el" href="expr__stream_8h_source.html#l00141">CVC3::ExprStream::d_lastDagSize</a>, <a class="el" href="expr__stream_8h_source.html#l00147">CVC3::ExprStream::d_nodag</a>, <a class="el" href="expr__map_8h_source.html#l00191">CVC3::ExprMap< Data >::end()</a>, <a class="el" href="expr__map_8h_source.html#l00194">CVC3::ExprMap< Data >::find()</a>, <a class="el" href="expr_8h_source.html#l01168">CVC3::Expr::getKind()</a>, <a class="el" href="expr__manager_8h_source.html#l00371">CVC3::ExprManager::getPrinter()</a>, <a class="el" href="classCVC3_1_1PrettyPrinter.html#af07c9cf0d127e81d41c8819fb51c5430">CVC3::PrettyPrinter::print()</a>, <a class="el" href="expr_8cpp_source.html#l00400">CVC3::Expr::printAST()</a>, <a class="el" href="kinds_8h_source.html#l00094">QUERY</a>, <a class="el" href="expr__stream_8cpp_source.html#l00147">CVC3::ExprStream::resetDag()</a>, <a class="el" href="expr__stream_8cpp_source.html#l00121">CVC3::ExprStream::resetIndent()</a>, <a class="el" href="kinds_8h_source.html#l00097">RESTART</a>, <a class="el" href="lang_8h_source.html#l00049">CVC3::SPASS_LANG</a>, <a class="el" href="kinds_8h_source.html#l00103">TRANSFORM</a>, and <a class="el" href="kinds_8h_source.html#l00053">TYPE</a>.</p> </div> </div> <a class="anchor" id="ga9108360cf03bb43170d573ffa52a9646"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Type & </td> <td class="paramname"><em>t</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print <a class="el" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00226">226</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> <p>References <a class="el" href="type_8h_source.html#l00052">CVC3::Type::getExpr()</a>.</p> </div> </div> <a class="anchor" id="ga56b415642ba1c4dc5290f94b52b37e40"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const string & </td> <td class="paramname"><em>s</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print string. </p> <p>This is where all the indentation is happening.</p> <p>The algorithm for determining whether to go to the next line is the following:</p> <ul> <li>If the new d_col does not exceed d_lineWidth/2 or current indentation, don't bother.</li> </ul> <ul> <li>If the difference between the new d_col and the current indentation is less than d_lineWidth/4, don't bother either, so that we don't get lots of very short lines clumped to the right side.</li> </ul> <ul> <li>Similarly, if the difference between the old d_col and the current indentation is less than d_lineWidth/6, keep the same line. Otherwise, for long atomic strings, we may get useless line breaks.</li> </ul> <ul> <li>Otherwise, go to the next line. </li> </ul> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00251">251</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> <p>References <a class="el" href="expr__stream_8h_source.html#l00130">CVC3::ExprStream::d_beginningOfLine</a>, <a class="el" href="expr__stream_8h_source.html#l00118">CVC3::ExprStream::d_col</a>, <a class="el" href="expr__stream_8h_source.html#l00117">CVC3::ExprStream::d_indent</a>, <a class="el" href="expr__stream_8h_source.html#l00124">CVC3::ExprStream::d_indentStack</a>, <a class="el" href="expr__stream_8h_source.html#l00119">CVC3::ExprStream::d_lineWidth</a>, <a class="el" href="expr__stream_8h_source.html#l00113">CVC3::ExprStream::d_os</a>, and <a class="el" href="expr__stream_8cpp_source.html#l00353">std::endl()</a>.</p> </div> </div> <a class="anchor" id="gae8a3e2bbabccd414740c931cbaee870a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>s</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print char* string. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00273">273</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> </div> </div> <a class="anchor" id="ga8c910f52b3cc7c72213650230d3a6787"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Rational & </td> <td class="paramname"><em>r</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print <a class="el" href="classCVC3_1_1Rational.html">Rational</a>. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00278">278</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> </div> </div> <a class="anchor" id="gab3f2a7f9dc3d1685ab3266d86f4ab678"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ExprStream& CVC3::operator<< </td> <td>(</td> <td class="paramtype">ExprStream & </td> <td class="paramname"><em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>i</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Print int. </p> <p>Definition at line <a class="el" href="expr__stream_8cpp_source.html#l00285">285</a> of file <a class="el" href="expr__stream_8cpp_source.html">expr_stream.cpp</a>.</p> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu May 16 2013 13:25:16 for CVC3 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.2 </small></address> </body> </html>