summaryrefslogtreecommitdiffstats
path: root/ue4/doxygen/displays_8h-source.html
blob: 8e9f56f47fa3e3e2e5b87fdef3c4f78888db64af (plain)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>mycpu: mycpu/displays.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>mycpu/displays.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef DISPLAYS_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define DISPLAYS_H 1</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include "cdisplay.h"</span>
<a name="l00013"></a>00013 
<a name="l00020"></a>00020 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00021"></a><a class="code" href="classCDisplayWDEZ.html">00021</a> <span class="keyword">class </span><a class="code" href="classCDisplayWDEZ.html">CDisplayWDEZ</a>
<a name="l00022"></a>00022   : <span class="keyword">public</span> <a class="code" href="classCDisplay.html">CDisplay</a>&lt;T&gt;
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024   <span class="keyword">public</span>:
<a name="l00025"></a>00025     <a class="code" href="classCDisplayWDEZ.html">CDisplayWDEZ</a>()
<a name="l00026"></a>00026       : <a class="code" href="classCDisplay.html">CDisplay&lt;T&gt;</a>(<span class="stringliteral">"wdez"</span>)
<a name="l00027"></a>00027     {}
<a name="l00028"></a>00028 
<a name="l00039"></a><a class="code" href="classCDisplayWDEZ.html#6133b58e5b55db750fac014b5092953a">00039</a>     <span class="keywordtype">void</span> <a class="code" href="classCDisplayWDEZ.html#6133b58e5b55db750fac014b5092953a" title="prints value to display">display</a>(<span class="keyword">const</span> T &amp;value)
<a name="l00040"></a>00040     {
<a name="l00041"></a>00041       std::cout &lt;&lt; std::dec &lt;&lt; value &lt;&lt; std::endl;
<a name="l00042"></a>00042     }
<a name="l00043"></a>00043 };
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="comment">/*============================================================================*/</span>
<a name="l00046"></a>00046 
<a name="l00053"></a>00053 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00054"></a><a class="code" href="classCDisplayWHEX.html">00054</a> <span class="keyword">class </span><a class="code" href="classCDisplayWHEX.html">CDisplayWHEX</a>
<a name="l00055"></a>00055   : <span class="keyword">public</span> <a class="code" href="classCDisplay.html">CDisplay</a>&lt;T&gt;
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057   <span class="keyword">public</span>:
<a name="l00058"></a>00058     <a class="code" href="classCDisplayWHEX.html">CDisplayWHEX</a>()
<a name="l00059"></a>00059       : <a class="code" href="classCDisplay.html">CDisplay&lt;T&gt;</a>(<span class="stringliteral">"whex"</span>)
<a name="l00060"></a>00060     {}
<a name="l00061"></a>00061 
<a name="l00072"></a><a class="code" href="classCDisplayWHEX.html#53ff18a9ecb3a3c97418c774e7aa9e6c">00072</a>     <span class="keywordtype">void</span> <a class="code" href="classCDisplayWHEX.html#53ff18a9ecb3a3c97418c774e7aa9e6c" title="prints value to display">display</a>(<span class="keyword">const</span> T &amp;value)
<a name="l00073"></a>00073     {
<a name="l00074"></a>00074       std::cout &lt;&lt; std::hex &lt;&lt; value &lt;&lt; std::endl;
<a name="l00075"></a>00075     }
<a name="l00076"></a>00076 };
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="preprocessor">#endif</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span>
<a name="l00080"></a>00080 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat May 30 16:32:35 2009 for mycpu by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>