|
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>TB10.1 Example Applications: CSubtractor Class Reference</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 <h1>CSubtractor Class Reference</h1><!-- doxytag: class="CSubtractor" --> |
|
9 <p> |
|
10 <a href="class_c_subtractor-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
11 <tr><td></td></tr> |
|
12 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
|
13 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#dafc90c62c12777fc2c1670cfc65ff7e">RunL</a> ()</td></tr> |
|
14 |
|
15 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#8fe681f7232eb2d9a8e5d6b00d56d461">DoCancel</a> ()</td></tr> |
|
16 |
|
17 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#6641d546e8cf49ad7295cf4045d6c901">~CSubtractor</a> ()</td></tr> |
|
18 |
|
19 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#b5a9d2c973fb9387a6519971ddcb61c2">StartTimer</a> ()</td></tr> |
|
20 |
|
21 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#6fccf6a6e4f1b731f1d2105ccac84484">StopTimer</a> ()</td></tr> |
|
22 |
|
23 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#0d39bfb8170e1923541fa6efd915d206">ReadFunction</a> ()</td></tr> |
|
24 |
|
25 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#aea4ddea47a64945f5dcd280d9f5adcb">Subtract</a> ()</td></tr> |
|
26 |
|
27 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
|
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_subtractor.html">CSubtractor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#7d6002b0b8610a3241853c7fb4ef3995">NewL</a> (CConsoleBase *aConsole)</td></tr> |
|
29 |
|
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_subtractor.html#44265608e41e7a13f8790fcd68a5589d">SubtractFunction</a> (TAny *aPtr)</td></tr> |
|
31 |
|
32 </table> |
|
33 <hr><a name="_details"></a><h2>Detailed Description</h2> |
|
34 The subtractor class. This class opens the global chunk and periodically subtracts random values from it. The condition variable ensures that the value of the chunk is always greater than 0. |
|
35 <p>Definition at line <a class="el" href="subtractor_8h-source.html#l00032">32</a> of file <a class="el" href="subtractor_8h-source.html">subtractor.h</a>.</p> |
|
36 <hr><h2>Constructor & Destructor Documentation</h2> |
|
37 <a class="anchor" name="6641d546e8cf49ad7295cf4045d6c901"></a><!-- doxytag: member="CSubtractor::~CSubtractor" ref="6641d546e8cf49ad7295cf4045d6c901" args="()" --> |
|
38 <div class="memitem"> |
|
39 <div class="memproto"> |
|
40 <table class="memname"> |
|
41 <tr> |
|
42 <td class="memname">CSubtractor::~CSubtractor </td> |
|
43 <td>(</td> |
|
44 <td class="paramname"> </td> |
|
45 <td> ) </td> |
|
46 <td width="100%"></td> |
|
47 </tr> |
|
48 </table> |
|
49 </div> |
|
50 <div class="memdoc"> |
|
51 |
|
52 <p> |
|
53 Destructor. |
|
54 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00070">70</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
55 |
|
56 </div> |
|
57 </div><p> |
|
58 <hr><h2>Member Function Documentation</h2> |
|
59 <a class="anchor" name="7d6002b0b8610a3241853c7fb4ef3995"></a><!-- doxytag: member="CSubtractor::NewL" ref="7d6002b0b8610a3241853c7fb4ef3995" args="(CConsoleBase *aConsole)" --> |
|
60 <div class="memitem"> |
|
61 <div class="memproto"> |
|
62 <table class="memname"> |
|
63 <tr> |
|
64 <td class="memname"><a class="el" href="class_c_subtractor.html">CSubtractor</a> * CSubtractor::NewL </td> |
|
65 <td>(</td> |
|
66 <td class="paramtype">CConsoleBase * </td> |
|
67 <td class="paramname"> <em>aConsole</em> </td> |
|
68 <td> ) </td> |
|
69 <td width="100%"><code> [static]</code></td> |
|
70 </tr> |
|
71 </table> |
|
72 </div> |
|
73 <div class="memdoc"> |
|
74 |
|
75 <p> |
|
76 Performs the two-phase construction of an object of the <a class="el" href="class_c_adder.html">CAdder</a> class. <dl compact><dt><b>Parameters:</b></dt><dd> |
|
77 <table border="0" cellspacing="2" cellpadding="0"> |
|
78 <tr><td valign="top"></td><td valign="top"><em>aConsole</em> </td><td>The console object. </td></tr> |
|
79 </table> |
|
80 </dl> |
|
81 <dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="class_c_subtractor.html">CSubtractor</a> object. </dd></dl> |
|
82 |
|
83 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00030">30</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
84 |
|
85 </div> |
|
86 </div><p> |
|
87 <a class="anchor" name="dafc90c62c12777fc2c1670cfc65ff7e"></a><!-- doxytag: member="CSubtractor::RunL" ref="dafc90c62c12777fc2c1670cfc65ff7e" args="()" --> |
|
88 <div class="memitem"> |
|
89 <div class="memproto"> |
|
90 <table class="memname"> |
|
91 <tr> |
|
92 <td class="memname">void CSubtractor::RunL </td> |
|
93 <td>(</td> |
|
94 <td class="paramname"> </td> |
|
95 <td> ) </td> |
|
96 <td width="100%"></td> |
|
97 </tr> |
|
98 </table> |
|
99 </div> |
|
100 <div class="memdoc"> |
|
101 |
|
102 <p> |
|
103 Handles the key press events from the console. It stops the active scheduler for any key press event. |
|
104 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00043">43</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
105 |
|
106 </div> |
|
107 </div><p> |
|
108 <a class="anchor" name="8fe681f7232eb2d9a8e5d6b00d56d461"></a><!-- doxytag: member="CSubtractor::DoCancel" ref="8fe681f7232eb2d9a8e5d6b00d56d461" args="()" --> |
|
109 <div class="memitem"> |
|
110 <div class="memproto"> |
|
111 <table class="memname"> |
|
112 <tr> |
|
113 <td class="memname">void CSubtractor::DoCancel </td> |
|
114 <td>(</td> |
|
115 <td class="paramname"> </td> |
|
116 <td> ) </td> |
|
117 <td width="100%"></td> |
|
118 </tr> |
|
119 </table> |
|
120 </div> |
|
121 <div class="memdoc"> |
|
122 |
|
123 <p> |
|
124 Cancel any outstanding request. |
|
125 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00058">58</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
126 |
|
127 </div> |
|
128 </div><p> |
|
129 <a class="anchor" name="b5a9d2c973fb9387a6519971ddcb61c2"></a><!-- doxytag: member="CSubtractor::StartTimer" ref="b5a9d2c973fb9387a6519971ddcb61c2" args="()" --> |
|
130 <div class="memitem"> |
|
131 <div class="memproto"> |
|
132 <table class="memname"> |
|
133 <tr> |
|
134 <td class="memname">void CSubtractor::StartTimer </td> |
|
135 <td>(</td> |
|
136 <td class="paramname"> </td> |
|
137 <td> ) </td> |
|
138 <td width="100%"></td> |
|
139 </tr> |
|
140 </table> |
|
141 </div> |
|
142 <div class="memdoc"> |
|
143 |
|
144 <p> |
|
145 Starts the timer object. <dl class="see" compact><dt><b>See also:</b></dt><dd>CPeriodic::Start(). </dd></dl> |
|
146 |
|
147 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00124">124</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
148 |
|
149 </div> |
|
150 </div><p> |
|
151 <a class="anchor" name="6fccf6a6e4f1b731f1d2105ccac84484"></a><!-- doxytag: member="CSubtractor::StopTimer" ref="6fccf6a6e4f1b731f1d2105ccac84484" args="()" --> |
|
152 <div class="memitem"> |
|
153 <div class="memproto"> |
|
154 <table class="memname"> |
|
155 <tr> |
|
156 <td class="memname">void CSubtractor::StopTimer </td> |
|
157 <td>(</td> |
|
158 <td class="paramname"> </td> |
|
159 <td> ) </td> |
|
160 <td width="100%"></td> |
|
161 </tr> |
|
162 </table> |
|
163 </div> |
|
164 <div class="memdoc"> |
|
165 |
|
166 <p> |
|
167 Stops the timer object. |
|
168 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00132">132</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
169 |
|
170 </div> |
|
171 </div><p> |
|
172 <a class="anchor" name="0d39bfb8170e1923541fa6efd915d206"></a><!-- doxytag: member="CSubtractor::ReadFunction" ref="0d39bfb8170e1923541fa6efd915d206" args="()" --> |
|
173 <div class="memitem"> |
|
174 <div class="memproto"> |
|
175 <table class="memname"> |
|
176 <tr> |
|
177 <td class="memname">void CSubtractor::ReadFunction </td> |
|
178 <td>(</td> |
|
179 <td class="paramname"> </td> |
|
180 <td> ) </td> |
|
181 <td width="100%"></td> |
|
182 </tr> |
|
183 </table> |
|
184 </div> |
|
185 <div class="memdoc"> |
|
186 |
|
187 <p> |
|
188 Issues an outstanding request to get a keystroke from the console. |
|
189 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00111">111</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
190 |
|
191 </div> |
|
192 </div><p> |
|
193 <a class="anchor" name="44265608e41e7a13f8790fcd68a5589d"></a><!-- doxytag: member="CSubtractor::SubtractFunction" ref="44265608e41e7a13f8790fcd68a5589d" args="(TAny *aPtr)" --> |
|
194 <div class="memitem"> |
|
195 <div class="memproto"> |
|
196 <table class="memname"> |
|
197 <tr> |
|
198 <td class="memname">TInt CSubtractor::SubtractFunction </td> |
|
199 <td>(</td> |
|
200 <td class="paramtype">TAny * </td> |
|
201 <td class="paramname"> <em>aPtr</em> </td> |
|
202 <td> ) </td> |
|
203 <td width="100%"><code> [static]</code></td> |
|
204 </tr> |
|
205 </table> |
|
206 </div> |
|
207 <div class="memdoc"> |
|
208 |
|
209 <p> |
|
210 The call back function for the CSubtractor::iPeriodic object. <dl compact><dt><b>Parameters:</b></dt><dd> |
|
211 <table border="0" cellspacing="2" cellpadding="0"> |
|
212 <tr><td valign="top"></td><td valign="top"><em>aPtr</em> </td><td>Contains the address of the object passed as an argument to the <a class="el" href="class_c_subtractor.html#44265608e41e7a13f8790fcd68a5589d">SubtractFunction()</a>. </td></tr> |
|
213 </table> |
|
214 </dl> |
|
215 <dl class="return" compact><dt><b>Returns:</b></dt><dd>KErrNone. </dd></dl> |
|
216 |
|
217 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00143">143</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
218 |
|
219 </div> |
|
220 </div><p> |
|
221 <a class="anchor" name="aea4ddea47a64945f5dcd280d9f5adcb"></a><!-- doxytag: member="CSubtractor::Subtract" ref="aea4ddea47a64945f5dcd280d9f5adcb" args="()" --> |
|
222 <div class="memitem"> |
|
223 <div class="memproto"> |
|
224 <table class="memname"> |
|
225 <tr> |
|
226 <td class="memname">void CSubtractor::Subtract </td> |
|
227 <td>(</td> |
|
228 <td class="paramname"> </td> |
|
229 <td> ) </td> |
|
230 <td width="100%"></td> |
|
231 </tr> |
|
232 </table> |
|
233 </div> |
|
234 <div class="memdoc"> |
|
235 |
|
236 <p> |
|
237 Subtracts a random integer value from the global chunk. |
|
238 <p>Definition at line <a class="el" href="subtractor_8cpp-source.html#l00156">156</a> of file <a class="el" href="subtractor_8cpp-source.html">subtractor.cpp</a>.</p> |
|
239 |
|
240 </div> |
|
241 </div><p> |
|
242 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by |
|
243 <a href="http://www.doxygen.org/index.html"> |
|
244 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
|
245 </body> |
|
246 </html> |