Files
rippled/classripple_1_1SlabAllocator.html
2025-11-18 17:24:33 -08:00

557 lines
31 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::SlabAllocator&lt; Type &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1SlabAllocator-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::SlabAllocator&lt; Type &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ripple::SlabAllocator&lt; Type &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1SlabAllocator__coll__graph.png" border="0" usemap="#aripple_1_1SlabAllocator_3_01Type_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1SlabAllocator_3_01Type_01_4_coll__map" id="aripple_1_1SlabAllocator_3_01Type_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="179,343,332,383"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/atomic/atomic.html" title=" " alt="" coords="72,240,287,280"/>
<area shape="poly" title=" " alt="" coords="204,289,243,341,239,344,200,293"/>
<area shape="rect" href="structripple_1_1SlabAllocator_1_1SlabBlock.html" title="A block of memory that is owned by a slab allocator." alt="" coords="75,108,230,148"/>
<area shape="poly" title=" " alt="" coords="162,161,178,239,173,240,157,162"/>
<area shape="poly" title=" " alt="" coords="245,118,253,121,257,128,249,137,231,141,230,136,246,132,251,128,250,125,243,122"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title=" " alt="" coords="5,5,97,31"/>
<area shape="poly" title=" " alt="" coords="73,39,137,106,133,110,69,42"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="121,5,216,31"/>
<area shape="poly" title=" " alt="" coords="168,45,158,108,153,107,162,44"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="273,5,361,31"/>
<area shape="poly" title=" " alt="" coords="321,45,321,149,314,215,301,281,287,315,271,344,266,341,282,313,295,279,309,214,315,149,316,45"/>
<area shape="poly" title=" " alt="" coords="289,40,183,110,180,105,286,36"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A block of memory that is owned by a slab allocator. <a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0812a0805718c5c0967d4894b7822fe5" id="r_a0812a0805718c5c0967d4894b7822fe5"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> alloc=0, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> align=0)</td></tr>
<tr class="memdesc:a0812a0805718c5c0967d4894b7822fe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a slab allocator able to allocate objects of a fixed size. <br /></td></tr>
<tr class="separator:a0812a0805718c5c0967d4894b7822fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3a0cd5ae8d6b24e2c5e169ddadbf7e6" id="r_af3a0cd5ae8d6b24e2c5e169ddadbf7e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#af3a0cd5ae8d6b24e2c5e169ddadbf7e6">SlabAllocator</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> const &amp;other)=delete</td></tr>
<tr class="separator:af3a0cd5ae8d6b24e2c5e169ddadbf7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ce13bc25d81a7df80141309ee8165c6" id="r_a9ce13bc25d81a7df80141309ee8165c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a9ce13bc25d81a7df80141309ee8165c6">operator=</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> const &amp;other)=delete</td></tr>
<tr class="separator:a9ce13bc25d81a7df80141309ee8165c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0953e1f8eb7b035b48c8f9cb223a815" id="r_af0953e1f8eb7b035b48c8f9cb223a815"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#af0953e1f8eb7b035b48c8f9cb223a815">SlabAllocator</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp;&amp;other)=delete</td></tr>
<tr class="separator:af0953e1f8eb7b035b48c8f9cb223a815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af54e471493108774671be0bb2bf23bd2" id="r_af54e471493108774671be0bb2bf23bd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#af54e471493108774671be0bb2bf23bd2">operator=</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp;&amp;other)=delete</td></tr>
<tr class="separator:af54e471493108774671be0bb2bf23bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe19edc03ec24567c5f3d7e2858db715" id="r_abe19edc03ec24567c5f3d7e2858db715"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715">~SlabAllocator</a> ()</td></tr>
<tr class="separator:abe19edc03ec24567c5f3d7e2858db715"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d6d7d449e67409f252d02bdf3af20fe" id="r_a6d6d7d449e67409f252d02bdf3af20fe"><td class="memItemLeft" align="right" valign="top">constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> () const noexcept</td></tr>
<tr class="memdesc:a6d6d7d449e67409f252d02bdf3af20fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the memory block this allocator returns. <br /></td></tr>
<tr class="separator:a6d6d7d449e67409f252d02bdf3af20fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9718f6cac1c03a896f1517aa5079327" id="r_aa9718f6cac1c03a896f1517aa5079327"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#aa9718f6cac1c03a896f1517aa5079327">allocate</a> () noexcept</td></tr>
<tr class="memdesc:aa9718f6cac1c03a896f1517aa5079327"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a suitably aligned pointer, if one is available. <br /></td></tr>
<tr class="separator:aa9718f6cac1c03a896f1517aa5079327"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa696ee1e381a40ca0e52a1ad5632f866" id="r_aa696ee1e381a40ca0e52a1ad5632f866"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">deallocate</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> *ptr) noexcept</td></tr>
<tr class="memdesc:aa696ee1e381a40ca0e52a1ad5632f866"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the memory block to the allocator. <br /></td></tr>
<tr class="separator:aa696ee1e381a40ca0e52a1ad5632f866"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a706e50935a03ee1cba5aef0f292e702b" id="r_a706e50935a03ee1cba5aef0f292e702b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a>&lt; <a class="el" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a> = nullptr</td></tr>
<tr class="separator:a706e50935a03ee1cba5aef0f292e702b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e917232aa72be29e7341de8cd987e01" id="r_a4e917232aa72be29e7341de8cd987e01"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a4e917232aa72be29e7341de8cd987e01">itemAlignment_</a></td></tr>
<tr class="separator:a4e917232aa72be29e7341de8cd987e01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eae00a47fd0285023f116592a997ea1" id="r_a3eae00a47fd0285023f116592a997ea1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a3eae00a47fd0285023f116592a997ea1">itemSize_</a></td></tr>
<tr class="separator:a3eae00a47fd0285023f116592a997ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad85f5730d223f0ba0be37c51b2cf660c" id="r_ad85f5730d223f0ba0be37c51b2cf660c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#ad85f5730d223f0ba0be37c51b2cf660c">slabSize_</a></td></tr>
<tr class="separator:ad85f5730d223f0ba0be37c51b2cf660c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename Type&gt;<br />
class ripple::SlabAllocator&lt; Type &gt;</div>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00028">28</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0812a0805718c5c0967d4894b7822fe5" name="a0812a0805718c5c0967d4894b7822fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0812a0805718c5c0967d4894b7822fe5">&#9670;&#160;</a></span>SlabAllocator() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">constexpr <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::SlabAllocator </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>extra</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>alloc</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>align</em> = <code>0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a slab allocator able to allocate objects of a fixed size. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">count</td><td>the number of items the slab allocator can allocate; note that a count of 0 is valid and means that the allocator is, effectively, disabled. This can be very useful in some contexts (e.g. when minimal memory usage is needed) and allows for graceful failure. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00165">165</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="af3a0cd5ae8d6b24e2c5e169ddadbf7e6" name="af3a0cd5ae8d6b24e2c5e169ddadbf7e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3a0cd5ae8d6b24e2c5e169ddadbf7e6">&#9670;&#160;</a></span>SlabAllocator() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::SlabAllocator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&lt; Type &gt; const &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="af0953e1f8eb7b035b48c8f9cb223a815" name="af0953e1f8eb7b035b48c8f9cb223a815"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0953e1f8eb7b035b48c8f9cb223a815">&#9670;&#160;</a></span>SlabAllocator() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::SlabAllocator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&lt; Type &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="abe19edc03ec24567c5f3d7e2858db715" name="abe19edc03ec24567c5f3d7e2858db715"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe19edc03ec24567c5f3d7e2858db715">&#9670;&#160;</a></span>~SlabAllocator()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::~<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00187">187</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9ce13bc25d81a7df80141309ee8165c6" name="a9ce13bc25d81a7df80141309ee8165c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ce13bc25d81a7df80141309ee8165c6">&#9670;&#160;</a></span>operator=() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp; <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&lt; Type &gt; const &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="af54e471493108774671be0bb2bf23bd2" name="af54e471493108774671be0bb2bf23bd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af54e471493108774671be0bb2bf23bd2">&#9670;&#160;</a></span>operator=() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &amp; <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&lt; Type &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a6d6d7d449e67409f252d02bdf3af20fe" name="a6d6d7d449e67409f252d02bdf3af20fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d6d7d449e67409f252d02bdf3af20fe">&#9670;&#160;</a></span>size()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the size of the memory block this allocator returns. </p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00196">196</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="aa9718f6cac1c03a896f1517aa5079327" name="aa9718f6cac1c03a896f1517aa5079327"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9718f6cac1c03a896f1517aa5079327">&#9670;&#160;</a></span>allocate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> * <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::allocate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a suitably aligned pointer, if one is available. </p>
<dl class="section return"><dt>Returns</dt><dd>a pointer to a block of memory from the allocator, or nullptr if the allocator can't satisfy this request. </dd></dl>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00207">207</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="aa696ee1e381a40ca0e52a1ad5632f866" name="aa696ee1e381a40ca0e52a1ad5632f866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa696ee1e381a40ca0e52a1ad5632f866">&#9670;&#160;</a></span>deallocate()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::deallocate </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> *&#160;</td>
<td class="paramname"><em>ptr</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the memory block to the allocator. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>A pointer to a memory block. </td></tr>
<tr><td class="paramname">size</td><td>If non-zero, a hint as to the size of the block. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if this memory block belonged to the allocator and has been released; false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00284">284</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a706e50935a03ee1cba5aef0f292e702b" name="a706e50935a03ee1cba5aef0f292e702b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a706e50935a03ee1cba5aef0f292e702b">&#9670;&#160;</a></span>slabs_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a>&lt;<a class="el" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>*&gt; <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::slabs_ = nullptr</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00144">144</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="a4e917232aa72be29e7341de8cd987e01" name="a4e917232aa72be29e7341de8cd987e01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e917232aa72be29e7341de8cd987e01">&#9670;&#160;</a></span>itemAlignment_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::itemAlignment_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00147">147</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="a3eae00a47fd0285023f116592a997ea1" name="a3eae00a47fd0285023f116592a997ea1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3eae00a47fd0285023f116592a997ea1">&#9670;&#160;</a></span>itemSize_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::itemSize_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00151">151</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
<a id="ad85f5730d223f0ba0be37c51b2cf660c" name="ad85f5730d223f0ba0be37c51b2cf660c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad85f5730d223f0ba0be37c51b2cf660c">&#9670;&#160;</a></span>slabSize_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>&lt; Type &gt;::slabSize_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00154">154</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>