aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02533.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a02533.html')
-rw-r--r--docs/doxygen/nel/a02533.html549
1 files changed, 549 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02533.html b/docs/doxygen/nel/a02533.html
new file mode 100644
index 00000000..057d938e
--- /dev/null
+++ b/docs/doxygen/nel/a02533.html
@@ -0,0 +1,549 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLMISC::CFixedSizeAllocator class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CFixedSizeAllocator Class Reference</h1><code>#include &lt;<a class="el" href="a05711.html">fixed_size_allocator.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+An allocator that can allocate and deallocate blocks of fixed size in O(1) Blocks are managed by chunks. Any number of blocks can be allocated, but once a block is allocated, a whole chunk need to be. With 32 bits pointers, there may be a 4 - 12 bytes overhead per object NB: Unlike CBlockManager, when a chunk contains no allocated blocks, it will be freed. If only one chunk remains, it isn't deleted, however. Another motivation for that class is that it can be used for a memory arena style allocator, because size isn't a fixed parameter of template. A fixed size allocator implemented as a template for type T can be layered on this implementation.<p>
+NB : number of blocks per chunks must be at least 3<p>
+: thread safety<p>
+<dl compact><dt><b>Author:</b></dt><dd>Nicolas Vizerie <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2004 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00049">49</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</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>void *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora0">alloc</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">alloc a block <a href="#NLMISC_1_1CFixedSizeAllocatora0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora1">CFixedSizeAllocator</a> (<a class="el" href="a04558.html#a15">uint</a> numBytesPerBlock, <a class="el" href="a04558.html#a15">uint</a> numBlockPerChunk)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora2">free</a> (void *block)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">destroy and dealloc a block <a href="#NLMISC_1_1CFixedSizeAllocatora2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora3">getNumAllocatedBlocks</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora4">getNumBlockPerChunk</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora5">getNumBytesPerBlock</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatora6">~CFixedSizeAllocator</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02535.html">CNode</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">_FreeSpace</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr2">_NumBlockPerChunk</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr3">_NumBytesPerBlock</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr4">_NumChunks</a></td></tr>
+
+<tr><td colspan=2><br><h2>Friends</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn0">CChunk</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn1">CNode</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora1" doxytag="NLMISC::CFixedSizeAllocator::CFixedSizeAllocator" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CFixedSizeAllocator::CFixedSizeAllocator </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>numBytesPerBlock</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>numBlockPerChunk</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05710.html#l00033">33</a> of file <a class="el" href="a05710.html">fixed_size_allocator.cpp</a>.
+<p>
+References <a class="el" href="a05711.html#l00107">_FreeSpace</a>, <a class="el" href="a05711.html#l00114">_NumAlloc</a>, <a class="el" href="a05711.html#l00112">_NumBlockPerChunk</a>, <a class="el" href="a05711.html#l00111">_NumBytesPerBlock</a>, <a class="el" href="a05711.html#l00108">_NumChunks</a>, <a class="el" href="a05484.html#l00038">min</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00034 {
+00035 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">_FreeSpace</a> = NULL;
+00036 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr4">_NumChunks</a> = 0;
+00037 <a class="code" href="a04199.html#a6">nlassert</a>(numBytesPerBlock &gt; 1);
+00038 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr3">_NumBytesPerBlock</a> = numBytesPerBlock;
+00039 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr2">_NumBlockPerChunk</a> = <a class="code" href="a04061.html#a0">std::min</a>(numBlockPerChunk, (<a class="code" href="a04558.html#a15">uint</a>) 3);
+00040 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a> = 0;
+00041 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora6" doxytag="NLMISC::CFixedSizeAllocator::~CFixedSizeAllocator" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CFixedSizeAllocator::~<a class="el" href="a02533.html">CFixedSizeAllocator</a> </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05710.html#l00044">44</a> of file <a class="el" href="a05710.html">fixed_size_allocator.cpp</a>.
+<p>
+References <a class="el" href="a05711.html#l00107">_FreeSpace</a>, <a class="el" href="a05711.html#l00114">_NumAlloc</a>, <a class="el" href="a05711.html#l00108">_NumChunks</a>, <a class="el" href="a05711.html#l00068">NLMISC::CFixedSizeAllocator::CNode::Chunk</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05622.html#l00135">nlwarning</a>.
+<p>
+<div class="fragment"><pre>00045 {
+00046 <span class="keywordflow">if</span> (<a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a> != 0)
+00047 {
+00048 <span class="preprocessor"> #ifdef NL_DEBUG</span>
+00049 <span class="preprocessor"></span> <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"%d blocks were not freed"</span>, (<span class="keywordtype">int</span>) _NumAlloc);
+00050 <span class="preprocessor"> #endif</span>
+00051 <span class="preprocessor"></span> <span class="keywordflow">return</span>;
+00052 }
+00053 <span class="keywordflow">if</span> (<a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr4">_NumChunks</a> &gt; 0)
+00054 {
+00055 <a class="code" href="a04199.html#a6">nlassert</a>(_NumChunks == 1);
+00056 <span class="comment">// delete the left chunk. This should force all the left nodes to be removed from the empty list</span>
+00057 <span class="keyword">delete</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">_FreeSpace</a>-&gt;<a class="code" href="a02535.html#NLMISC_1_1CFixedSizeAllocator_1_1CNodeo0">Chunk</a>;
+00058 }
+00059 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora0" doxytag="NLMISC::CFixedSizeAllocator::alloc" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void * NLMISC::CFixedSizeAllocator::alloc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+alloc a block
+<p>
+
+<p>
+Definition at line <a class="el" href="a05710.html#l00062">62</a> of file <a class="el" href="a05710.html">fixed_size_allocator.cpp</a>.
+<p>
+References <a class="el" href="a05711.html#l00107">_FreeSpace</a>, <a class="el" href="a05711.html#l00114">_NumAlloc</a>, <a class="el" href="a05710.html#l00115">NLMISC::CFixedSizeAllocator::CChunk::init()</a>, and <a class="el" href="a05710.html#l00178">NLMISC::CFixedSizeAllocator::CNode::unlink()</a>.
+<p>
+<div class="fragment"><pre>00063 {
+00064 <span class="keywordflow">if</span> (!<a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">_FreeSpace</a>)
+00065 {
+00066 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn0">CChunk</a> *chunk = <span class="keyword">new</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn0">CChunk</a>; <span class="comment">// link a new chunk to that object</span>
+00067 chunk-&gt;init(<span class="keyword">this</span>);
+00068 }
+00069 ++ <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a>;
+00070 <span class="keywordflow">return</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">_FreeSpace</a>-&gt;<a class="code" href="a02535.html#NLMISC_1_1CFixedSizeAllocator_1_1CNodea1">unlink</a>();
+00071 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora2" doxytag="NLMISC::CFixedSizeAllocator::free" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CFixedSizeAllocator::free </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>block</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+destroy and dealloc a block
+<p>
+get the node from the object
+<p>
+Definition at line <a class="el" href="a05710.html#l00074">74</a> of file <a class="el" href="a05710.html">fixed_size_allocator.cpp</a>.
+<p>
+References <a class="el" href="a05711.html#l00114">_NumAlloc</a>, <a class="el" href="a05711.html#l00086">NLMISC::CFixedSizeAllocator::CChunk::Allocator</a>, <a class="el" href="a05711.html#l00068">NLMISC::CFixedSizeAllocator::CNode::Chunk</a>, <a class="el" href="a05710.html#l00189">NLMISC::CFixedSizeAllocator::CNode::link()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00075 {
+00076 <span class="keywordflow">if</span> (!block) <span class="keywordflow">return</span>;
+00078 <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn1">CNode</a> *node = (<a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorn1">CNode</a> *) ((<a class="code" href="a04558.html#a7">uint8</a> *) block - offsetof(CNode, Next));
+00079 <span class="comment">// </span>
+00080 <a class="code" href="a04199.html#a6">nlassert</a>(node-&gt;Chunk);
+00081 <a class="code" href="a04199.html#a6">nlassert</a>(node-&gt;Chunk-&gt;Allocator == <span class="keyword">this</span>);
+00082 <span class="comment">// </span>
+00083 --<a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a>;
+00084 node-&gt;link();
+00085 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora3" doxytag="NLMISC::CFixedSizeAllocator::getNumAllocatedBlocks" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NLMISC::CFixedSizeAllocator::getNumAllocatedBlocks </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00062">62</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+References <a class="el" href="a05711.html#l00114">_NumAlloc</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00062 { <span class="keywordflow">return</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">_NumAlloc</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora4" doxytag="NLMISC::CFixedSizeAllocator::getNumBlockPerChunk" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NLMISC::CFixedSizeAllocator::getNumBlockPerChunk </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00060">60</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+References <a class="el" href="a05711.html#l00112">_NumBlockPerChunk</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00154">NLMISC::CFixedSizeAllocator::CChunk::add()</a>, <a class="el" href="a05710.html#l00146">NLMISC::CFixedSizeAllocator::CChunk::getNode()</a>, and <a class="el" href="a05710.html#l00101">NLMISC::CFixedSizeAllocator::CChunk::~CChunk()</a>.
+<p>
+<div class="fragment"><pre>00060 { <span class="keywordflow">return</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr2">_NumBlockPerChunk</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatora5" doxytag="NLMISC::CFixedSizeAllocator::getNumBytesPerBlock" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NLMISC::CFixedSizeAllocator::getNumBytesPerBlock </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00059">59</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+References <a class="el" href="a05711.html#l00111">_NumBytesPerBlock</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00088">NLMISC::CFixedSizeAllocator::CChunk::getBlockSizeWithOverhead()</a>.
+<p>
+<div class="fragment"><pre>00059 { <span class="keywordflow">return</span> <a class="code" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr3">_NumBytesPerBlock</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Friends And Related Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorn0" doxytag="NLMISC::CFixedSizeAllocator::CChunk" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> friend class <a class="el" href="a02534.html">CChunk</a><code> [friend]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00104">104</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorn1" doxytag="NLMISC::CFixedSizeAllocator::CNode" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> friend class <a class="el" href="a02535.html">CNode</a><code> [friend]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00105">105</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorr0" doxytag="NLMISC::CFixedSizeAllocator::_FreeSpace" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a02535.html">CNode</a>* <a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr0">NLMISC::CFixedSizeAllocator::_FreeSpace</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00107">107</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00062">alloc()</a>, <a class="el" href="a05710.html#l00033">CFixedSizeAllocator()</a>, <a class="el" href="a05710.html#l00189">NLMISC::CFixedSizeAllocator::CNode::link()</a>, and <a class="el" href="a05710.html#l00044">~CFixedSizeAllocator()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorr1" doxytag="NLMISC::CFixedSizeAllocator::_NumAlloc" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr1">NLMISC::CFixedSizeAllocator::_NumAlloc</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00114">114</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00062">alloc()</a>, <a class="el" href="a05710.html#l00033">CFixedSizeAllocator()</a>, <a class="el" href="a05710.html#l00074">free()</a>, <a class="el" href="a05711.html#l00062">getNumAllocatedBlocks()</a>, and <a class="el" href="a05710.html#l00044">~CFixedSizeAllocator()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorr2" doxytag="NLMISC::CFixedSizeAllocator::_NumBlockPerChunk" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr2">NLMISC::CFixedSizeAllocator::_NumBlockPerChunk</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00112">112</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00033">CFixedSizeAllocator()</a>, and <a class="el" href="a05711.html#l00060">getNumBlockPerChunk()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorr3" doxytag="NLMISC::CFixedSizeAllocator::_NumBytesPerBlock" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr3">NLMISC::CFixedSizeAllocator::_NumBytesPerBlock</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00111">111</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00033">CFixedSizeAllocator()</a>, and <a class="el" href="a05711.html#l00059">getNumBytesPerBlock()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CFixedSizeAllocatorr4" doxytag="NLMISC::CFixedSizeAllocator::_NumChunks" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02533.html#NLMISC_1_1CFixedSizeAllocatorr4">NLMISC::CFixedSizeAllocator::_NumChunks</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05711.html#l00108">108</a> of file <a class="el" href="a05711.html">fixed_size_allocator.h</a>.
+<p>
+Referenced by <a class="el" href="a05710.html#l00154">NLMISC::CFixedSizeAllocator::CChunk::add()</a>, <a class="el" href="a05710.html#l00033">CFixedSizeAllocator()</a>, <a class="el" href="a05710.html#l00101">NLMISC::CFixedSizeAllocator::CChunk::~CChunk()</a>, and <a class="el" href="a05710.html#l00044">~CFixedSizeAllocator()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05711.html">fixed_size_allocator.h</a><li><a class="el" href="a05710.html">fixed_size_allocator.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:13:13 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>