summaryrefslogtreecommitdiffstats
path: root/ue3/doxygen/cprogram_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'ue3/doxygen/cprogram_8h-source.html')
-rw-r--r--ue3/doxygen/cprogram_8h-source.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/ue3/doxygen/cprogram_8h-source.html b/ue3/doxygen/cprogram_8h-source.html
new file mode 100644
index 0000000..dfd39a8
--- /dev/null
+++ b/ue3/doxygen/cprogram_8h-source.html
@@ -0,0 +1,60 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mycpu: mycpu/cprogram.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.3 -->
8<div class="tabs">
9 <ul>
10 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Classes</span></a></li>
13 <li class="current"><a href="files.html"><span>Files</span></a></li>
14 </ul>
15</div>
16<h1>mycpu/cprogram.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CPROGRAM_H</span>
18<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CPROGRAM_H 1</span>
19<a name="l00010"></a>00010 <span class="preprocessor"></span>
20<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
21<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;set&gt;</span>
22<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;map&gt;</span>
23<a name="l00014"></a>00014 <span class="preprocessor">#include "cinstruction.h"</span>
24<a name="l00015"></a>00015
25<a name="l00022"></a><a class="code" href="classCProgram.html">00022</a> <span class="keyword">class </span><a class="code" href="classCProgram.html">CProgram</a>
26<a name="l00023"></a>00023 : <span class="keyword">public</span> std::vector&lt;CInstruction *&gt;
27<a name="l00024"></a>00024 {
28<a name="l00025"></a>00025 <span class="keyword">public</span>:
29<a name="l00035"></a>00035 <a class="code" href="classCProgram.html#74d3ca01d5e8b892f37684254ae546ed" title="Default ctor.">CProgram</a>();
30<a name="l00036"></a>00036
31<a name="l00046"></a>00046 <a class="code" href="classCProgram.html#7dfeb30706e7af06114fdf18262d7926" title="Default dtor.">~CProgram</a>();
32<a name="l00047"></a>00047
33<a name="l00057"></a><a class="code" href="classCProgram.html#8d5dc184872d4616d327c87ffa665804">00057</a> <span class="keyword">const</span> std::map&lt;std::string, unsigned&gt;&amp; <a class="code" href="classCProgram.html#8d5dc184872d4616d327c87ffa665804" title="get reference to labels map">getLabels</a>()<span class="keyword"> const</span>
34<a name="l00058"></a>00058 <span class="keyword"> </span>{
35<a name="l00059"></a>00059 <span class="keywordflow">return</span> m_labels;
36<a name="l00060"></a>00060 }
37<a name="l00061"></a>00061
38<a name="l00071"></a>00071 <span class="keywordtype">unsigned</span> <a class="code" href="classCProgram.html#4c29c5c7932174242c50fd9d1c5bc1ec" title="search for label">findLabel</a>(<span class="keyword">const</span> std::string&amp; label) <span class="keyword">const</span>;
39<a name="l00072"></a>00072
40<a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="classCProgram.html#e75e8a7709afcebc7f1537db247f9671" title="create instructions from parsing stream">compile</a>(std::istream&amp; in);
41<a name="l00083"></a>00083
42<a name="l00084"></a>00084 <span class="preprocessor">#if DEBUG</span>
43<a name="l00085"></a>00085 <span class="preprocessor"></span>
44<a name="l00094"></a>00094 <span class="keywordtype">void</span> dump(std::ostream&amp; out);
45<a name="l00095"></a>00095 <span class="preprocessor">#endif</span>
46<a name="l00096"></a>00096 <span class="preprocessor"></span>
47<a name="l00097"></a>00097 <span class="keyword">private</span>:
48<a name="l00098"></a>00098 <span class="comment">/* members */</span>
49<a name="l00100"></a>00100 std::set&lt;CInstruction *&gt; m_instrset;
50<a name="l00101"></a>00101 std::map&lt;std::string, unsigned&gt; m_labels;
51<a name="l00102"></a>00102 };
52<a name="l00103"></a>00103
53<a name="l00104"></a>00104 <span class="preprocessor">#endif</span>
54<a name="l00105"></a>00105 <span class="preprocessor"></span>
55<a name="l00106"></a>00106 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
56</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu May 14 18:19:16 2009 for mycpu by&nbsp;
57<a href="http://www.doxygen.org/index.html">
58<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
59</body>
60</html>