<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>ucommon: ucommon::objstack< T > Class Template 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.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.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>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="a00208.html">ucommon</a>::<a class="el" href="a00099.html">objstack</a> </div> </div> <div class="contents"> <h1>ucommon::objstack< T > Class Template Reference</h1><!-- doxytag: class="ucommon::objstack" --><!-- doxytag: inherits="ucommon::ObjectStack" --> <p>Template for typesafe basic object stack container. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="a00188_source.html">linked.h</a>></code></p> <p>Inherits ucommon::ObjectStack.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#a0bbed9f4e667d47289b19414f828dc6c">add</a> (T *object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add an object onto the object stack. <a href="#a0bbed9f4e667d47289b19414f828dc6c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b881cbfca8488191f4e5ac7bfc10a62"></a><!-- doxytag: member="ucommon::objstack::objstack" ref="a3b881cbfca8488191f4e5ac7bfc10a62" args="(T *list)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#a3b881cbfca8488191f4e5ac7bfc10a62">objstack</a> (T *list)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an object stack from a list of objects. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41b3518594d05d2d7c7041ee606235ce"></a><!-- doxytag: member="ucommon::objstack::objstack" ref="a41b3518594d05d2d7c7041ee606235ce" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#a41b3518594d05d2d7c7041ee606235ce">objstack</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new object stack. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#a04448a0266d6f296096468d018622b39">pop</a> (void)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pull (pop) an object from the object stack. <a href="#a04448a0266d6f296096468d018622b39"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#aedfea46374840d72c0cdaf8fca370368">pull</a> (void)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pull an object from the object stack. <a href="#aedfea46374840d72c0cdaf8fca370368"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00099.html#a5960255bba9a4fb14f153492b8479cd6">push</a> (T *object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Push an object onto the object stack. <a href="#a5960255bba9a4fb14f153492b8479cd6"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template<class T><br/> class ucommon::objstack< T ></h3> <p>Template for typesafe basic object stack container. </p> <p>The object type, T, that is contained in the stack must be derived from <a class="el" href="a00067.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>. </p> <dl class="author"><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>> </dd></dl> <p>Definition at line <a class="el" href="a00188_source.html#l01140">1140</a> of file <a class="el" href="a00188_source.html">linked.h</a>.</p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a0bbed9f4e667d47289b19414f828dc6c"></a><!-- doxytag: member="ucommon::objstack::add" ref="a0bbed9f4e667d47289b19414f828dc6c" args="(T *object)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00099.html">ucommon::objstack</a>< T >::add </td> <td>(</td> <td class="paramtype">T * </td> <td class="paramname"> <em>object</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Add an object onto the object stack. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>of specified type to push. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="a00188_source.html#l01164">1164</a> of file <a class="el" href="a00188_source.html">linked.h</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <div class="center"><img src="a00099_a0bbed9f4e667d47289b19414f828dc6c_cgraph.png" border="0" usemap="#a00099_a0bbed9f4e667d47289b19414f828dc6c_cgraph_map" alt=""></div> <map name="a00099_a0bbed9f4e667d47289b19414f828dc6c_cgraph_map" id="a00099_a0bbed9f4e667d47289b19414f828dc6c_cgraph"> <area shape="rect" id="node3" href="a00208.html#a36870182251dc08e9a3eac56452d6218" title="Convenience function to push an object onto a stack." alt="" coords="296,5,448,32"/><area shape="rect" id="node5" href="a00145.html#a1e87ca85d0b8df573f706bb74cd337ca" title="Push an object into the stack by it's pointer." alt="" coords="497,5,719,32"/></map> </div> </p> </div> </div> <a class="anchor" id="a04448a0266d6f296096468d018622b39"></a><!-- doxytag: member="ucommon::objstack::pop" ref="a04448a0266d6f296096468d018622b39" args="(void)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">T* <a class="el" href="a00099.html">ucommon::objstack</a>< T >::pop </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Pull (pop) an object from the object stack. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>object of specified type or NULL if empty. </dd></dl> <p>Definition at line <a class="el" href="a00188_source.html#l01178">1178</a> of file <a class="el" href="a00188_source.html">linked.h</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <div class="center"><img src="a00099_a04448a0266d6f296096468d018622b39_cgraph.png" border="0" usemap="#a00099_a04448a0266d6f296096468d018622b39_cgraph_map" alt=""></div> <map name="a00099_a04448a0266d6f296096468d018622b39_cgraph_map" id="a00099_a04448a0266d6f296096468d018622b39_cgraph"> <area shape="rect" id="node3" href="a00208.html#a4aa076e73039e3c66ad07f7ca1827c8e" title="Convenience function to pull an object from a stack." alt="" coords="296,5,448,32"/><area shape="rect" id="node5" href="a00145.html#ace7b1d47a03ad947eb592033ae94aa1a" title="Get and remove last object pushed on the stack." alt="" coords="497,5,719,32"/></map> </div> </p> </div> </div> <a class="anchor" id="aedfea46374840d72c0cdaf8fca370368"></a><!-- doxytag: member="ucommon::objstack::pull" ref="aedfea46374840d72c0cdaf8fca370368" args="(void)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">T* <a class="el" href="a00099.html">ucommon::objstack</a>< T >::pull </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Pull an object from the object stack. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>object of specified type or NULL if empty. </dd></dl> <p>Definition at line <a class="el" href="a00188_source.html#l01171">1171</a> of file <a class="el" href="a00188_source.html">linked.h</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <div class="center"><img src="a00099_aedfea46374840d72c0cdaf8fca370368_cgraph.png" border="0" usemap="#a00099_aedfea46374840d72c0cdaf8fca370368_cgraph_map" alt=""></div> <map name="a00099_aedfea46374840d72c0cdaf8fca370368_cgraph_map" id="a00099_aedfea46374840d72c0cdaf8fca370368_cgraph"> <area shape="rect" id="node3" href="a00208.html#a4aa076e73039e3c66ad07f7ca1827c8e" title="Convenience function to pull an object from a stack." alt="" coords="307,5,459,32"/><area shape="rect" id="node5" href="a00145.html#ace7b1d47a03ad947eb592033ae94aa1a" title="Get and remove last object pushed on the stack." alt="" coords="508,5,729,32"/></map> </div> </p> </div> </div> <a class="anchor" id="a5960255bba9a4fb14f153492b8479cd6"></a><!-- doxytag: member="ucommon::objstack::push" ref="a5960255bba9a4fb14f153492b8479cd6" args="(T *object)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00099.html">ucommon::objstack</a>< T >::push </td> <td>(</td> <td class="paramtype">T * </td> <td class="paramname"> <em>object</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Push an object onto the object stack. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>of specified type to push. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="a00188_source.html#l01157">1157</a> of file <a class="el" href="a00188_source.html">linked.h</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <div class="center"><img src="a00099_a5960255bba9a4fb14f153492b8479cd6_cgraph.png" border="0" usemap="#a00099_a5960255bba9a4fb14f153492b8479cd6_cgraph_map" alt=""></div> <map name="a00099_a5960255bba9a4fb14f153492b8479cd6_cgraph_map" id="a00099_a5960255bba9a4fb14f153492b8479cd6_cgraph"> <area shape="rect" id="node3" href="a00208.html#a36870182251dc08e9a3eac56452d6218" title="Convenience function to push an object onto a stack." alt="" coords="307,5,459,32"/><area shape="rect" id="node5" href="a00145.html#a1e87ca85d0b8df573f706bb74cd337ca" title="Push an object into the stack by it's pointer." alt="" coords="508,5,729,32"/></map> </div> </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>ucommon/<a class="el" href="a00188_source.html">linked.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Jul 14 16:39:49 2011 for ucommon by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>