<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: CS::Memory::AllocatorPointerWrapper< T, Allocator > Struct Template Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="nav"> <a class="el" href="namespaceCS.html">CS</a>::<a class="el" href="namespaceCS_1_1Memory.html">Memory</a>::<a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html">AllocatorPointerWrapper</a></div> <h1>CS::Memory::AllocatorPointerWrapper< T, Allocator > Struct Template Reference</h1><!-- doxytag: class="CS::Memory::AllocatorPointerWrapper" -->Class to store a pointer that is allocated from Allocator, to eliminate overhead from a possibly empty Allocator. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="allocator_8h-source.html">csutil/allocator.h</a>></code> <p> <p> <a href="structCS_1_1Memory_1_1AllocatorPointerWrapper-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15e3a200d635ef663a0858351ca188b0"></a><!-- doxytag: member="CS::Memory::AllocatorPointerWrapper::AllocatorPointerWrapper" ref="15e3a200d635ef663a0858351ca188b0" args="(const Allocator &alloc, T *p)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#15e3a200d635ef663a0858351ca188b0">AllocatorPointerWrapper</a> (const Allocator &alloc, T *<a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#e3861de7c5f1a38d76881b2b47b51fa2">p</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7c9ce443629475d2e9a1c8dba2b6a89"></a><!-- doxytag: member="CS::Memory::AllocatorPointerWrapper::AllocatorPointerWrapper" ref="a7c9ce443629475d2e9a1c8dba2b6a89" args="(T *p)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#a7c9ce443629475d2e9a1c8dba2b6a89">AllocatorPointerWrapper</a> (T *<a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#e3861de7c5f1a38d76881b2b47b51fa2">p</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8a05f8c06315a8c97aef116eeac36e1b"></a><!-- doxytag: member="CS::Memory::AllocatorPointerWrapper::AllocatorPointerWrapper" ref="8a05f8c06315a8c97aef116eeac36e1b" args="(const Allocator &alloc)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#8a05f8c06315a8c97aef116eeac36e1b">AllocatorPointerWrapper</a> (const Allocator &alloc)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aee8e659cce35cba8f31cc003a642a3d"></a><!-- doxytag: member="CS::Memory::AllocatorPointerWrapper::AllocatorPointerWrapper" ref="aee8e659cce35cba8f31cc003a642a3d" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#aee8e659cce35cba8f31cc003a642a3d">AllocatorPointerWrapper</a> ()</td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#e3861de7c5f1a38d76881b2b47b51fa2">p</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The allocated pointer. <a href="#e3861de7c5f1a38d76881b2b47b51fa2"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <h3>template<typename T, typename Allocator><br> struct CS::Memory::AllocatorPointerWrapper< T, Allocator ></h3> Class to store a pointer that is allocated from Allocator, to eliminate overhead from a possibly empty Allocator. <p> See <a href="http://www.cantrip.org/emptyopt.html">http://www.cantrip.org/emptyopt.html</a> for details. <p>Definition at line <a class="el" href="allocator_8h-source.html#l00362">362</a> of file <a class="el" href="allocator_8h-source.html">allocator.h</a>.</p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="e3861de7c5f1a38d76881b2b47b51fa2"></a><!-- doxytag: member="CS::Memory::AllocatorPointerWrapper::p" ref="e3861de7c5f1a38d76881b2b47b51fa2" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T, typename Allocator> </div> <table class="memname"> <tr> <td class="memname">T* <a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html">CS::Memory::AllocatorPointerWrapper</a>< T, Allocator >::<a class="el" href="structCS_1_1Memory_1_1AllocatorPointerWrapper.html#e3861de7c5f1a38d76881b2b47b51fa2">p</a> </td> </tr> </table> </div> <div class="memdoc"> <p> The allocated pointer. <p> <p>Definition at line <a class="el" href="allocator_8h-source.html#l00365">365</a> of file <a class="el" href="allocator_8h-source.html">allocator.h</a>.</p> <p>Referenced by <a class="el" href="csutil_2array_8h-source.html#l00469">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::csArray()</a>, <a class="el" href="databuf_8h-source.html#l00053">CS::DataBuffer< Allocator >::DataBuffer()</a>, <a class="el" href="csutil_2array_8h-source.html#l00886">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteAll()</a>, <a class="el" href="csutil_2array_8h-source.html#l00993">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteIndex()</a>, <a class="el" href="csutil_2array_8h-source.html#l01018">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteIndexFast()</a>, <a class="el" href="csutil_2array_8h-source.html#l01040">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteRange()</a>, <a class="el" href="csutil_2array_8h-source.html#l00849">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Find()</a>, <a class="el" href="csutil_2array_8h-source.html#l00679">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::FindKey()</a>, <a class="el" href="csutil_2array_8h-source.html#l00781">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::FindSortedKey()</a>, <a class="el" href="csutil_2array_8h-source.html#l00613">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Get()</a>, <a class="el" href="databuf_8h-source.html#l00101">CS::DataBuffer< Allocator >::GetData()</a>, <a class="el" href="csutil_2array_8h-source.html#l00631">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::GetExtend()</a>, <a class="el" href="csutil_2array_8h-source.html#l00867">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::GetIndex()</a>, <a class="el" href="csutil_2array_8h-source.html#l00387">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::InitRegion()</a>, <a class="el" href="csutil_2array_8h-source.html#l00749">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Insert()</a>, <a class="el" href="csutil_2array_8h-source.html#l00815">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::InsertSorted()</a>, <a class="el" href="csutil_2array_8h-source.html#l00725">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Pop()</a>, <a class="el" href="csutil_2array_8h-source.html#l00691">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Push()</a>, <a class="el" href="csutil_2array_8h-source.html#l00663">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Put()</a>, <a class="el" href="csutil_2array_8h-source.html#l00767">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Section()</a>, <a class="el" href="csutil_2array_8h-source.html#l00396">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::SetData()</a>, <a class="el" href="csutil_2array_8h-source.html#l00575">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::SetSize()</a>, <a class="el" href="csutil_2array_8h-source.html#l00972">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::ShrinkBestFit()</a>, <a class="el" href="csutil_2array_8h-source.html#l00877">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Sort()</a>, <a class="el" href="csutil_2array_8h-source.html#l00735">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Top()</a>, <a class="el" href="csutil_2array_8h-source.html#l00553">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::TransferTo()</a>, <a class="el" href="csutil_2array_8h-source.html#l00910">csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Truncate()</a>, and <a class="el" href="databuf_8h-source.html#l00090">CS::DataBuffer< Allocator >::~DataBuffer()</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>csutil/<a class="el" href="allocator_8h-source.html">allocator.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>