forked from bingmann/flex-bison-cpp-example
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclassCNModulo.html
More file actions
238 lines (205 loc) · 11.6 KB
/
Copy pathclassCNModulo.html
File metadata and controls
238 lines (205 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!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: CNModulo Class 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><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><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="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CNModulo Class Reference</h1><!-- doxytag: class="CNModulo" --><!-- doxytag: inherits="CalcNode" -->Calculation node calculating the remainder of an integer division of two operand nodes.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="expression_8h_source.html">expression.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for CNModulo:</div>
<div class="dynsection">
<p><center><img src="classCNModulo.png" usemap="#CNModulo_map" border="0" alt=""></center>
<map name="CNModulo_map">
<area href="classCalcNode.html" alt="CalcNode" shape="rect" coords="0,0,72,24">
</map>
</div>
<p>
<a href="classCNModulo-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="classCNModulo.html#8e6c9022db2a053c3411e9758b672383">CNModulo</a> (<a class="el" href="classCalcNode.html">CalcNode</a> *_left, <a class="el" href="classCalcNode.html">CalcNode</a> *_right)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCNModulo.html#365e8bb7a46b9b3cb0dcf8393ea52072">~CNModulo</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCNModulo.html#ea0edc20d0feeaded4e44182039f8396">evaluate</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">evaluate the complete calculation tree and return the floating point result value <a href="#ea0edc20d0feeaded4e44182039f8396"></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="classCNModulo.html#9dbb4fee67eb934535924e6ee8ffc810">print</a> (std::ostream &os, unsigned int depth) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">output the calculation tree to the given stream. <a href="#9dbb4fee67eb934535924e6ee8ffc810"></a><br></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="classCalcNode.html">CalcNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCNModulo.html#dabc12aa55361f56212fef3dec01edba">left</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">left calculation operand <a href="#dabc12aa55361f56212fef3dec01edba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classCalcNode.html">CalcNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCNModulo.html#a1f57ca59c172e1fd12faf08a53bcae8">right</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">right calculation operand <a href="#a1f57ca59c172e1fd12faf08a53bcae8"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Calculation node calculating the remainder of an integer division of two operand nodes.
<p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00230">230</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="8e6c9022db2a053c3411e9758b672383"></a><!-- doxytag: member="CNModulo::CNModulo" ref="8e6c9022db2a053c3411e9758b672383" args="(CalcNode *_left, CalcNode *_right)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CNModulo::CNModulo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classCalcNode.html">CalcNode</a> * </td>
<td class="paramname"> <em>_left</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCalcNode.html">CalcNode</a> * </td>
<td class="paramname"> <em>_right</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00239">239</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
</div>
</div><p>
<a class="anchor" name="365e8bb7a46b9b3cb0dcf8393ea52072"></a><!-- doxytag: member="CNModulo::~CNModulo" ref="365e8bb7a46b9b3cb0dcf8393ea52072" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual CNModulo::~CNModulo </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00244">244</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<p>References <a class="el" href="expression_8h_source.html#l00233">left</a>, and <a class="el" href="expression_8h_source.html#l00236">right</a>.</p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="ea0edc20d0feeaded4e44182039f8396"></a><!-- doxytag: member="CNModulo::evaluate" ref="ea0edc20d0feeaded4e44182039f8396" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double CNModulo::evaluate </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
evaluate the complete calculation tree and return the floating point result value
<p>
<p>Implements <a class="el" href="classCalcNode.html#0c036b9e80266101e155bf76da1b868a">CalcNode</a>.</p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00250">250</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<p>References <a class="el" href="classCalcNode.html#0c036b9e80266101e155bf76da1b868a">CalcNode::evaluate()</a>, <a class="el" href="expression_8h_source.html#l00233">left</a>, and <a class="el" href="expression_8h_source.html#l00236">right</a>.</p>
</div>
</div><p>
<a class="anchor" name="9dbb4fee67eb934535924e6ee8ffc810"></a><!-- doxytag: member="CNModulo::print" ref="9dbb4fee67eb934535924e6ee8ffc810" args="(std::ostream &os, unsigned int depth) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void CNModulo::print </td>
<td>(</td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"> <em>os</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"> <em>depth</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
output the calculation tree to the given stream.
<p>
tries to format the output to make tree levels visible.
<p>Implements <a class="el" href="classCalcNode.html#ce46c07f593f0b4727faa46cbeb8f6e8">CalcNode</a>.</p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00255">255</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<p>References <a class="el" href="expression_8h_source.html#l00033">CalcNode::indent()</a>, <a class="el" href="expression_8h_source.html#l00233">left</a>, <a class="el" href="classCalcNode.html#ce46c07f593f0b4727faa46cbeb8f6e8">CalcNode::print()</a>, and <a class="el" href="expression_8h_source.html#l00236">right</a>.</p>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="dabc12aa55361f56212fef3dec01edba"></a><!-- doxytag: member="CNModulo::left" ref="dabc12aa55361f56212fef3dec01edba" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCalcNode.html">CalcNode</a>* <a class="el" href="classCNModulo.html#dabc12aa55361f56212fef3dec01edba">CNModulo::left</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
left calculation operand
<p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00233">233</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<p>Referenced by <a class="el" href="expression_8h_source.html#l00250">evaluate()</a>, <a class="el" href="expression_8h_source.html#l00255">print()</a>, and <a class="el" href="expression_8h_source.html#l00244">~CNModulo()</a>.</p>
</div>
</div><p>
<a class="anchor" name="a1f57ca59c172e1fd12faf08a53bcae8"></a><!-- doxytag: member="CNModulo::right" ref="a1f57ca59c172e1fd12faf08a53bcae8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCalcNode.html">CalcNode</a>* <a class="el" href="classCNModulo.html#a1f57ca59c172e1fd12faf08a53bcae8">CNModulo::right</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
right calculation operand
<p>
<p>Definition at line <a class="el" href="expression_8h_source.html#l00236">236</a> of file <a class="el" href="expression_8h_source.html">expression.h</a>.</p>
<p>Referenced by <a class="el" href="expression_8h_source.html#l00250">evaluate()</a>, <a class="el" href="expression_8h_source.html#l00255">print()</a>, and <a class="el" href="expression_8h_source.html#l00244">~CNModulo()</a>.</p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="expression_8h_source.html">expression.h</a></ul>
</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>