idlebox / 2007 / flex-bison-cpp-example / flex-bison-cpp-example-0.1.4 / doxygen-html / namespaceexample.html.html (Download File)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Flex Bison C++ Example: example Namespace 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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><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 class="tabs">
    <ul>
      <li><a href="namespaces.html"><span>Namespace&nbsp;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>example Namespace Reference</h1>The <a class="el" href="namespaceexample.html" title="The example namespace is used to encapsulate the three parser classes example::Parser...">example</a> namespace is used to encapsulate the three parser classes <a class="el" href="classexample_1_1Parser.html" title="A Bison parser.">example::Parser</a>, <a class="el" href="classexample_1_1Scanner.html" title="Scanner is a derived class to add some extra function to the scanner class.">example::Scanner</a> and <a class="el" href="classexample_1_1Driver.html" title="The Driver class brings together all components.">example::Driver</a>.  
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Driver.html">Driver</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The <a class="el" href="classexample_1_1Driver.html" title="The Driver class brings together all components.">Driver</a> class brings together all components.  <a href="classexample_1_1Driver.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1location.html">location</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Abstract a <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a>.  <a href="classexample_1_1location.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Parser.html">Parser</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A Bison parser.  <a href="classexample_1_1Parser.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1position.html">position</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Abstract a <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a>.  <a href="classexample_1_1position.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Scanner.html">Scanner</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classexample_1_1Scanner.html" title="Scanner is a derived class to add some extra function to the scanner class.">Scanner</a> is a derived class to add some extra function to the scanner class.  <a href="classexample_1_1Scanner.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1stack.html">stack</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1slice.html">slice</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Present a <a class="el" href="classexample_1_1slice.html" title="Present a slice of the top of a stack.">slice</a> of the top of a <a class="el" href="classexample_1_1stack.html">stack</a>.  <a href="classexample_1_1slice.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1location.html">location</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#89372a147befefadf885a49e91bf178a">operator+</a> (const <a class="el" href="classexample_1_1location.html">location</a> &amp;begin, const <a class="el" href="classexample_1_1location.html">location</a> &amp;end)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Join two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects to create a <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a>.  <a href="#89372a147befefadf885a49e91bf178a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1location.html">location</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#59d98eb533706b8a9236ee6bf6db53ca">operator+</a> (const <a class="el" href="classexample_1_1location.html">location</a> &amp;begin, unsigned int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.  <a href="#59d98eb533706b8a9236ee6bf6db53ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classexample_1_1location.html">location</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#6a1a320eb30117289a70be3cc20fcba0">operator+=</a> (<a class="el" href="classexample_1_1location.html">location</a> &amp;res, unsigned int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add and assign a <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a>.  <a href="#6a1a320eb30117289a70be3cc20fcba0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#a68799a72a42f5df1011f26ae428a16f">operator==</a> (const <a class="el" href="classexample_1_1location.html">location</a> &amp;loc1, const <a class="el" href="classexample_1_1location.html">location</a> &amp;loc2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.  <a href="#a68799a72a42f5df1011f26ae428a16f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#2d1471a6dd6cdfb75001fb44df444110">operator!=</a> (const <a class="el" href="classexample_1_1location.html">location</a> &amp;loc1, const <a class="el" href="classexample_1_1location.html">location</a> &amp;loc2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.  <a href="#2d1471a6dd6cdfb75001fb44df444110"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#42e9c113ddb6666d26c0ad11d8950bf6">operator&lt;&lt;</a> (std::ostream &amp;ostr, const <a class="el" href="classexample_1_1location.html">location</a> &amp;loc)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intercept output stream redirection.  <a href="#42e9c113ddb6666d26c0ad11d8950bf6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1position.html">position</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#02ee68422c93270b3ffe561715c7c211">operator+=</a> (<a class="el" href="classexample_1_1position.html">position</a> &amp;res, const int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add and assign a <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a>.  <a href="#02ee68422c93270b3ffe561715c7c211"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1position.html">position</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#749b87aac7a436e54888dedc8e278408">operator+</a> (const <a class="el" href="classexample_1_1position.html">position</a> &amp;begin, const int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.  <a href="#749b87aac7a436e54888dedc8e278408"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1position.html">position</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#52597b3bd50d7f8395addd568df07108">operator-=</a> (<a class="el" href="classexample_1_1position.html">position</a> &amp;res, const int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add and assign a <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a>.  <a href="#52597b3bd50d7f8395addd568df07108"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classexample_1_1position.html">position</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#b6cb659f2190556d57885b763ac2f728">operator-</a> (const <a class="el" href="classexample_1_1position.html">position</a> &amp;begin, const int width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.  <a href="#b6cb659f2190556d57885b763ac2f728"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#41eca92d18c869383fa7a715c9d38232">operator==</a> (const <a class="el" href="classexample_1_1position.html">position</a> &amp;pos1, const <a class="el" href="classexample_1_1position.html">position</a> &amp;pos2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.  <a href="#41eca92d18c869383fa7a715c9d38232"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#f82508fee02df7922dae5a182b80b548">operator!=</a> (const <a class="el" href="classexample_1_1position.html">position</a> &amp;pos1, const <a class="el" href="classexample_1_1position.html">position</a> &amp;pos2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.  <a href="#f82508fee02df7922dae5a182b80b548"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#b776d57e6954f0e84d5fec0f10acd613">operator&lt;&lt;</a> (std::ostream &amp;ostr, const <a class="el" href="classexample_1_1position.html">position</a> &amp;pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intercept output stream redirection.  <a href="#b776d57e6954f0e84d5fec0f10acd613"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="namespaceexample.html" title="The example namespace is used to encapsulate the three parser classes example::Parser...">example</a> namespace is used to encapsulate the three parser classes <a class="el" href="classexample_1_1Parser.html" title="A Bison parser.">example::Parser</a>, <a class="el" href="classexample_1_1Scanner.html" title="Scanner is a derived class to add some extra function to the scanner class.">example::Scanner</a> and <a class="el" href="classexample_1_1Driver.html" title="The Driver class brings together all components.">example::Driver</a>.
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="f82508fee02df7922dae5a182b80b548"></a><!-- doxytag: member="example::operator!=" ref="f82508fee02df7922dae5a182b80b548" args="(const position &amp;pos1, const position &amp;pos2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool example::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>pos1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>pos2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00142">142</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

</div>
</div><p>
<a class="anchor" name="2d1471a6dd6cdfb75001fb44df444110"></a><!-- doxytag: member="example::operator!=" ref="2d1471a6dd6cdfb75001fb44df444110" args="(const location &amp;loc1, const location &amp;loc2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool example::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>loc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>loc2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.
<p>

<p>Definition at line <a class="el" href="location_8hh_source.html#l00136">136</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

</div>
</div><p>
<a class="anchor" name="749b87aac7a436e54888dedc8e278408"></a><!-- doxytag: member="example::operator+" ref="749b87aac7a436e54888dedc8e278408" args="(const position &amp;begin, const int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1position.html">position</a> example::operator+           </td>
          <td>(</td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00110">110</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

</div>
</div><p>
<a class="anchor" name="59d98eb533706b8a9236ee6bf6db53ca"></a><!-- doxytag: member="example::operator+" ref="59d98eb533706b8a9236ee6bf6db53ca" args="(const location &amp;begin, unsigned int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1location.html">location</a> example::operator+           </td>
          <td>(</td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.
<p>

<p>Definition at line <a class="el" href="location_8hh_source.html#l00113">113</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

<p>References <a class="el" href="location_8hh_source.html#l00084">example::location::columns()</a>.</p>

</div>
</div><p>
<a class="anchor" name="89372a147befefadf885a49e91bf178a"></a><!-- doxytag: member="example::operator+" ref="89372a147befefadf885a49e91bf178a" args="(const location &amp;begin, const location &amp;end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1location.html">location</a> example::operator+           </td>
          <td>(</td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>end</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Join two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects to create a <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a>.
<p>

<p>Definition at line <a class="el" href="location_8hh_source.html#l00105">105</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

<p>References <a class="el" href="location_8hh_source.html#l00101">example::location::end</a>.</p>

</div>
</div><p>
<a class="anchor" name="02ee68422c93270b3ffe561715c7c211"></a><!-- doxytag: member="example::operator+=" ref="02ee68422c93270b3ffe561715c7c211" args="(position &amp;res, const int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1position.html">position</a>&amp; example::operator+=           </td>
          <td>(</td>
          <td class="paramtype">position &amp;&nbsp;</td>
          <td class="paramname"> <em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add and assign a <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a>.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00102">102</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

<p>References <a class="el" href="position_8hh_source.html#l00085">example::position::columns()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6a1a320eb30117289a70be3cc20fcba0"></a><!-- doxytag: member="example::operator+=" ref="6a1a320eb30117289a70be3cc20fcba0" args="(location &amp;res, unsigned int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classexample_1_1location.html">location</a>&amp; example::operator+=           </td>
          <td>(</td>
          <td class="paramtype">location &amp;&nbsp;</td>
          <td class="paramname"> <em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add and assign a <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a>.
<p>

<p>Definition at line <a class="el" href="location_8hh_source.html#l00121">121</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

<p>References <a class="el" href="location_8hh_source.html#l00084">example::location::columns()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b6cb659f2190556d57885b763ac2f728"></a><!-- doxytag: member="example::operator&#45;" ref="b6cb659f2190556d57885b763ac2f728" args="(const position &amp;begin, const int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1position.html">position</a> example::operator-           </td>
          <td>(</td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00125">125</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

</div>
</div><p>
<a class="anchor" name="52597b3bd50d7f8395addd568df07108"></a><!-- doxytag: member="example::operator&#45;=" ref="52597b3bd50d7f8395addd568df07108" args="(position &amp;res, const int width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classexample_1_1position.html">position</a>&amp; example::operator-=           </td>
          <td>(</td>
          <td class="paramtype">position &amp;&nbsp;</td>
          <td class="paramname"> <em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add and assign a <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a>.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00118">118</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

</div>
</div><p>
<a class="anchor" name="b776d57e6954f0e84d5fec0f10acd613"></a><!-- doxytag: member="example::operator&lt;&lt;" ref="b776d57e6954f0e84d5fec0f10acd613" args="(std::ostream &amp;ostr, const position &amp;pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; example::operator&lt;&lt;           </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>ostr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Intercept output stream redirection.
<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>ostr</em>&nbsp;</td><td>the destination output stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>a reference to the <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> to redirect </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00152">152</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

<p>References <a class="el" href="position_8hh_source.html#l00097">example::position::column</a>, <a class="el" href="position_8hh_source.html#l00093">example::position::filename</a>, and <a class="el" href="position_8hh_source.html#l00095">example::position::line</a>.</p>

</div>
</div><p>
<a class="anchor" name="42e9c113ddb6666d26c0ad11d8950bf6"></a><!-- doxytag: member="example::operator&lt;&lt;" ref="42e9c113ddb6666d26c0ad11d8950bf6" args="(std::ostream &amp;ostr, const location &amp;loc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; example::operator&lt;&lt;           </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>ostr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>loc</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Intercept output stream redirection.
<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>ostr</em>&nbsp;</td><td>the destination output stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>loc</em>&nbsp;</td><td>a reference to the <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> to redirect</td></tr>
  </table>
</dl>
Avoid duplicate information.
<p>Definition at line <a class="el" href="location_8hh_source.html#l00147">147</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

<p>References <a class="el" href="location_8hh_source.html#l00099">example::location::begin</a>, <a class="el" href="position_8hh_source.html#l00097">example::position::column</a>, <a class="el" href="location_8hh_source.html#l00101">example::location::end</a>, <a class="el" href="position_8hh_source.html#l00093">example::position::filename</a>, and <a class="el" href="position_8hh_source.html#l00095">example::position::line</a>.</p>

</div>
</div><p>
<a class="anchor" name="41eca92d18c869383fa7a715c9d38232"></a><!-- doxytag: member="example::operator==" ref="41eca92d18c869383fa7a715c9d38232" args="(const position &amp;pos1, const position &amp;pos2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool example::operator==           </td>
          <td>(</td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>pos1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const position &amp;&nbsp;</td>
          <td class="paramname"> <em>pos2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two <a class="el" href="classexample_1_1position.html" title="Abstract a position.">position</a> objects.
<p>

<p>Definition at line <a class="el" href="position_8hh_source.html#l00132">132</a> of file <a class="el" href="position_8hh_source.html">position.hh</a>.</p>

<p>References <a class="el" href="position_8hh_source.html#l00097">example::position::column</a>, <a class="el" href="position_8hh_source.html#l00093">example::position::filename</a>, and <a class="el" href="position_8hh_source.html#l00095">example::position::line</a>.</p>

</div>
</div><p>
<a class="anchor" name="a68799a72a42f5df1011f26ae428a16f"></a><!-- doxytag: member="example::operator==" ref="a68799a72a42f5df1011f26ae428a16f" args="(const location &amp;loc1, const location &amp;loc2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool example::operator==           </td>
          <td>(</td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>loc1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const location &amp;&nbsp;</td>
          <td class="paramname"> <em>loc2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two <a class="el" href="classexample_1_1location.html" title="Abstract a location.">location</a> objects.
<p>

<p>Definition at line <a class="el" href="location_8hh_source.html#l00129">129</a> of file <a class="el" href="location_8hh_source.html">location.hh</a>.</p>

<p>References <a class="el" href="location_8hh_source.html#l00099">example::location::begin</a>, and <a class="el" href="location_8hh_source.html#l00101">example::location::end</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Sep 5 10:26:25 2009 for Flex Bison C++ Example by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>
RSS 2.0 Weblog Feed Atom 1.0 Weblog Feed Valid XHTML 1.1 Valid CSS (2.1)