|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
|
5 <title>TB9.2 Example Applications: Stack Class Reference</title> |
|
6 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 </head> |
|
9 <body> |
|
10 <!-- Generated by Doxygen 1.6.2 --> |
|
11 <div class="contents"> |
|
12 <h1>Stack Class Reference</h1><!-- doxytag: class="Stack" --> |
|
13 <p><a href="class_stack-members.html">List of all members.</a></p> |
|
14 <table border="0" cellpadding="0" cellspacing="0"> |
|
15 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
|
16 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_stack.html#a40bd5dff912f0e5290777c4b46d17809">~Stack</a> ()</td></tr> |
|
17 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_stack.html#a15effcd021a0a8ef515e543140a70a6e">Push</a> (<a class="el" href="struct_produced_item.html">ProducedItem</a> *aItem)</td></tr> |
|
18 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_produced_item.html">ProducedItem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_stack.html#afcc483f12294ea49bcacb6cc528ece5a">Pop</a> ()</td></tr> |
|
19 </table> |
|
20 <hr/><a name="_details"></a><h2>Detailed Description</h2> |
|
21 |
|
22 <p>Definition at line <a class="el" href="stack_8h_source.html#l00026">26</a> of file <a class="el" href="stack_8h_source.html">stack.h</a>.</p> |
|
23 <hr/><h2>Constructor & Destructor Documentation</h2> |
|
24 <a class="anchor" id="a40bd5dff912f0e5290777c4b46d17809"></a><!-- doxytag: member="Stack::~Stack" ref="a40bd5dff912f0e5290777c4b46d17809" args="()" --> |
|
25 <div class="memitem"> |
|
26 <div class="memproto"> |
|
27 <table class="memname"> |
|
28 <tr> |
|
29 <td class="memname">Stack::~Stack </td> |
|
30 <td>(</td> |
|
31 <td class="paramname"></td> |
|
32 <td> ) </td> |
|
33 <td></td> |
|
34 </tr> |
|
35 </table> |
|
36 </div> |
|
37 <div class="memdoc"> |
|
38 <p>Destructor Delete all the items those are not yet consumed by the consumers </p> |
|
39 |
|
40 <p>Definition at line <a class="el" href="stack_8h_source.html#l00037">37</a> of file <a class="el" href="stack_8h_source.html">stack.h</a>.</p> |
|
41 |
|
42 </div> |
|
43 </div> |
|
44 <hr/><h2>Member Function Documentation</h2> |
|
45 <a class="anchor" id="a15effcd021a0a8ef515e543140a70a6e"></a><!-- doxytag: member="Stack::Push" ref="a15effcd021a0a8ef515e543140a70a6e" args="(ProducedItem *aItem)" --> |
|
46 <div class="memitem"> |
|
47 <div class="memproto"> |
|
48 <table class="memname"> |
|
49 <tr> |
|
50 <td class="memname">void Stack::Push </td> |
|
51 <td>(</td> |
|
52 <td class="paramtype"><a class="el" href="struct_produced_item.html">ProducedItem</a> * </td> |
|
53 <td class="paramname"> <em>aItem</em></td> |
|
54 <td> ) </td> |
|
55 <td></td> |
|
56 </tr> |
|
57 </table> |
|
58 </div> |
|
59 <div class="memdoc"> |
|
60 <p>Push New Item is created on <a class="el" href="class_stack.html">Stack</a> for every push operation</p> |
|
61 <dl><dt><b>Parameters:</b></dt><dd> |
|
62 <table border="0" cellspacing="2" cellpadding="0"> |
|
63 <tr><td valign="top"></td><td valign="top"><em>aItem</em> </td><td>- Item to be Pushed</td></tr> |
|
64 </table> |
|
65 </dd> |
|
66 </dl> |
|
67 <dl class="return"><dt><b>Returns:</b></dt><dd>Nothing </dd></dl> |
|
68 |
|
69 <p>Definition at line <a class="el" href="stack_8h_source.html#l00055">55</a> of file <a class="el" href="stack_8h_source.html">stack.h</a>.</p> |
|
70 |
|
71 </div> |
|
72 </div> |
|
73 <a class="anchor" id="afcc483f12294ea49bcacb6cc528ece5a"></a><!-- doxytag: member="Stack::Pop" ref="afcc483f12294ea49bcacb6cc528ece5a" args="()" --> |
|
74 <div class="memitem"> |
|
75 <div class="memproto"> |
|
76 <table class="memname"> |
|
77 <tr> |
|
78 <td class="memname"><a class="el" href="struct_produced_item.html">ProducedItem</a>* Stack::Pop </td> |
|
79 <td>(</td> |
|
80 <td class="paramname"></td> |
|
81 <td> ) </td> |
|
82 <td></td> |
|
83 </tr> |
|
84 </table> |
|
85 </div> |
|
86 <div class="memdoc"> |
|
87 <p>Pop Item is sent to the Consumer who is doing the Pop. Ownership will also ne given. So, this item has to be deleted by the Consumer.</p> |
|
88 <dl><dt><b>Parameters:</b></dt><dd> |
|
89 <table border="0" cellspacing="2" cellpadding="0"> |
|
90 <tr><td valign="top"></td><td valign="top"><em>Nothing</em> </td><td></td></tr> |
|
91 </table> |
|
92 </dd> |
|
93 </dl> |
|
94 <dl class="return"><dt><b>Returns:</b></dt><dd>- Item Poped </dd></dl> |
|
95 |
|
96 <p>Definition at line <a class="el" href="stack_8h_source.html#l00077">77</a> of file <a class="el" href="stack_8h_source.html">stack.h</a>.</p> |
|
97 |
|
98 </div> |
|
99 </div> |
|
100 </div> |
|
101 <hr size="1"/><address style="text-align: right;"><small>Generated by |
|
102 <a href="http://www.doxygen.org/index.html"> |
|
103 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
|
104 </body> |
|
105 </html> |