<!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::linked_allocator< 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="a00061.html">linked_allocator</a> </div> </div> <div class="contents"> <h1>ucommon::linked_allocator< T > Class Template Reference</h1><!-- doxytag: class="ucommon::linked_allocator" --><!-- doxytag: inherits="ucommon::LinkedAllocator" --> <p>Linked allocator template to gather linked objects. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="a00181_source.html">containers.h</a>></code></p> <div class="dynheader"> Inheritance diagram for ucommon::linked_allocator< T >:</div> <div class="dynsection"> <div class="center"><img src="a00401.png" border="0" usemap="#ucommon_1_1linked__allocator_3_01_t_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="ucommon_1_1linked__allocator_3_01_t_01_4_inherit__map" id="ucommon_1_1linked__allocator_3_01_t_01_4_inherit__map"> <area shape="rect" id="node2" href="a00065.html" title="Linked allocator helper for linked_allocator template." alt="" coords="36,80,297,107"/><area shape="rect" id="node4" href="a00036.html" title="The conditional is a common base for other thread synchronizing classes." alt="" coords="56,5,277,32"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for ucommon::linked_allocator< T >:</div> <div class="dynsection"> <div class="center"><img src="a00402.png" border="0" usemap="#ucommon_1_1linked__allocator_3_01_t_01_4_coll__map" alt="Collaboration graph"/></div> <map name="ucommon_1_1linked__allocator_3_01_t_01_4_coll__map" id="ucommon_1_1linked__allocator_3_01_t_01_4_coll__map"> <area shape="rect" id="node2" href="a00065.html" title="Linked allocator helper for linked_allocator template." alt="" coords="59,189,320,216"/><area shape="rect" id="node4" href="a00036.html" title="The conditional is a common base for other thread synchronizing classes." alt="" coords="5,91,227,117"/><area shape="rect" id="node6" href="a00067.html" title="Common base class for all objects that can be formed into a linked list." alt="" coords="251,91,483,117"/><area shape="rect" id="node8" href="a00095.html" title="A common base class for all managed objects." alt="" coords="241,5,492,32"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <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"><a class="anchor" id="a6f4075a6ac38d41fc8fb09bb5bc04033"></a><!-- doxytag: member="ucommon::linked_allocator::get" ref="a6f4075a6ac38d41fc8fb09bb5bc04033" args="(timeout_t timeout)" --> T * </td><td class="memItemRight" valign="bottom"><b>get</b> (<a class="el" href="a00194.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timeout)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b7b53a875a22162f82ea0d4bfc757bd"></a><!-- doxytag: member="ucommon::linked_allocator::get" ref="a9b7b53a875a22162f82ea0d4bfc757bd" args="(void)" --> T * </td><td class="memItemRight" valign="bottom"><b>get</b> (void)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae71091ab1072811cc53df0fe81406100"></a><!-- doxytag: member="ucommon::linked_allocator::linked_allocator" ref="ae71091ab1072811cc53df0fe81406100" args="(size_t size)" --> </td><td class="memItemRight" valign="bottom"><b>linked_allocator</b> (size_t size)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ab27bbefd2c6c4874efba0bb9fccfe3"></a><!-- doxytag: member="ucommon::linked_allocator::release" ref="a6ab27bbefd2c6c4874efba0bb9fccfe3" args="(T *node)" --> void </td><td class="memItemRight" valign="bottom"><b>release</b> (T *node)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template<class T><br/> class ucommon::linked_allocator< T ></h3> <p>Linked allocator template to gather linked objects. </p> <p>This allocates the object pool in a single array as a single heap allocation, and releases the whole pool with a single delete when done. It is also threadsafe. The types used must be derived of <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="a00181_source.html#l00446">446</a> of file <a class="el" href="a00181_source.html">containers.h</a>.</p> <hr/>The documentation for this class was generated from the following file:<ul> <li>ucommon/<a class="el" href="a00181_source.html">containers.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Jul 14 16:39:38 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>