<!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 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 List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace 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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Driver.html">Driver</a></td></tr>
<tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1location.html">location</a></td></tr>
<tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Parser.html">Parser</a></td></tr>
<tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1position.html">position</a></td></tr>
<tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1Scanner.html">Scanner</a></td></tr>
<tr><td class="mdescLeft"> </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 </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classexample_1_1slice.html">slice</a></td></tr>
<tr><td class="mdescLeft"> </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> </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> &begin, const <a class="el" href="classexample_1_1location.html">location</a> &end)</td></tr>
<tr><td class="mdescLeft"> </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> </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> &begin, unsigned int width)</td></tr>
<tr><td class="mdescLeft"> </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> & </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> &res, unsigned int width)</td></tr>
<tr><td class="mdescLeft"> </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 </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> &loc1, const <a class="el" href="classexample_1_1location.html">location</a> &loc2)</td></tr>
<tr><td class="mdescLeft"> </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 </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> &loc1, const <a class="el" href="classexample_1_1location.html">location</a> &loc2)</td></tr>
<tr><td class="mdescLeft"> </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 & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#42e9c113ddb6666d26c0ad11d8950bf6">operator<<</a> (std::ostream &ostr, const <a class="el" href="classexample_1_1location.html">location</a> &loc)</td></tr>
<tr><td class="mdescLeft"> </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> & </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> &res, const int width)</td></tr>
<tr><td class="mdescLeft"> </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> </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> &begin, const int width)</td></tr>
<tr><td class="mdescLeft"> </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> & </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> &res, const int width)</td></tr>
<tr><td class="mdescLeft"> </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> </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> &begin, const int width)</td></tr>
<tr><td class="mdescLeft"> </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 </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> &pos1, const <a class="el" href="classexample_1_1position.html">position</a> &pos2)</td></tr>
<tr><td class="mdescLeft"> </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 </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> &pos1, const <a class="el" href="classexample_1_1position.html">position</a> &pos2)</td></tr>
<tr><td class="mdescLeft"> </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 & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceexample.html#b776d57e6954f0e84d5fec0f10acd613">operator<<</a> (std::ostream &ostr, const <a class="el" href="classexample_1_1position.html">position</a> &pos)</td></tr>
<tr><td class="mdescLeft"> </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 &pos1, const position &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 & </td>
<td class="paramname"> <em>pos1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const position & </td>
<td class="paramname"> <em>pos2</em></td><td> </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 &loc1, const location &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 & </td>
<td class="paramname"> <em>loc1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const location & </td>
<td class="paramname"> <em>loc2</em></td><td> </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 &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 & </td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"> <em>width</em></td><td> </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 &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 & </td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"> <em>width</em></td><td> </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 &begin, const location &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 & </td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const location & </td>
<td class="paramname"> <em>end</em></td><td> </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 &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>& example::operator+= </td>
<td>(</td>
<td class="paramtype">position & </td>
<td class="paramname"> <em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"> <em>width</em></td><td> </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 &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>& example::operator+= </td>
<td>(</td>
<td class="paramtype">location & </td>
<td class="paramname"> <em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"> <em>width</em></td><td> </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-" ref="b6cb659f2190556d57885b763ac2f728" args="(const position &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 & </td>
<td class="paramname"> <em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"> <em>width</em></td><td> </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-=" ref="52597b3bd50d7f8395addd568df07108" args="(position &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>& example::operator-= </td>
<td>(</td>
<td class="paramtype">position & </td>
<td class="paramname"> <em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"> <em>width</em></td><td> </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<<" ref="b776d57e6954f0e84d5fec0f10acd613" args="(std::ostream &ostr, const position &pos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::ostream& example::operator<< </td>
<td>(</td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"> <em>ostr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const position & </td>
<td class="paramname"> <em>pos</em></td><td> </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> </td><td>the destination output stream </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pos</em> </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<<" ref="42e9c113ddb6666d26c0ad11d8950bf6" args="(std::ostream &ostr, const location &loc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::ostream& example::operator<< </td>
<td>(</td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"> <em>ostr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const location & </td>
<td class="paramname"> <em>loc</em></td><td> </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> </td><td>the destination output stream </td></tr>
<tr><td valign="top"></td><td valign="top"><em>loc</em> </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 &pos1, const position &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 & </td>
<td class="paramname"> <em>pos1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const position & </td>
<td class="paramname"> <em>pos2</em></td><td> </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 &loc1, const location &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 & </td>
<td class="paramname"> <em>loc1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const location & </td>
<td class="paramname"> <em>loc2</em></td><td> </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
<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>