mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
545 lines
29 KiB
HTML
545 lines
29 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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: ripple::SlabAllocator< Type > 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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</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> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classripple_1_1SlabAllocator-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">ripple::SlabAllocator< Type > Class Template Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="dynheader">
|
|
Collaboration diagram for ripple::SlabAllocator< Type >:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classripple_1_1SlabAllocator__coll__graph.png" border="0" usemap="#ripple_1_1SlabAllocator_3_01Type_01_4_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="ripple_1_1SlabAllocator_3_01Type_01_4_coll__map" id="ripple_1_1SlabAllocator_3_01Type_01_4_coll__map">
|
|
<area shape="rect" title=" " alt="" coords="179,347,332,388"/>
|
|
<area shape="rect" href="http://en.cppreference.com/w/cpp/atomic/atomic.html" title=" " alt="" coords="72,243,287,284"/>
|
|
<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,109,230,151"/>
|
|
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="5,5,100,32"/>
|
|
<area shape="rect" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title="STL class." alt="" coords="124,5,216,32"/>
|
|
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="273,5,361,32"/>
|
|
</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 name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </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"> </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"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a0812a0805718c5c0967d4894b7822fe5"><td class="memItemLeft" align="right" valign="top">constexpr </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"> </td><td class="mdescRight">Constructs a slab allocator able to allocate objects of a fixed size. <a href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">More...</a><br /></td></tr>
|
|
<tr class="separator:a0812a0805718c5c0967d4894b7822fe5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af3a0cd5ae8d6b24e2c5e169ddadbf7e6"><td class="memItemLeft" align="right" valign="top"> </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 &other)=delete</td></tr>
|
|
<tr class="separator:af3a0cd5ae8d6b24e2c5e169ddadbf7e6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a502f2c47faa8246b1394edfadf262913"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">operator=</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> const &other)=delete</td></tr>
|
|
<tr class="separator:a502f2c47faa8246b1394edfadf262913"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af0953e1f8eb7b035b48c8f9cb223a815"><td class="memItemLeft" align="right" valign="top"> </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> &&other)=delete</td></tr>
|
|
<tr class="separator:af0953e1f8eb7b035b48c8f9cb223a815"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a09d2d1f454bf88017eae28dab7300a7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a09d2d1f454bf88017eae28dab7300a7e">operator=</a> (<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> &&other)=delete</td></tr>
|
|
<tr class="separator:a09d2d1f454bf88017eae28dab7300a7e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abe19edc03ec24567c5f3d7e2858db715"><td class="memItemLeft" align="right" valign="top"> </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"> </td></tr>
|
|
<tr class="memitem: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> </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"> </td><td class="mdescRight">Returns the size of the memory block this allocator returns. <a href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">More...</a><br /></td></tr>
|
|
<tr class="separator:a6d6d7d449e67409f252d02bdf3af20fe"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a43fdadd5f4c98fc1d6185502bd33cd6d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">allocate</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a43fdadd5f4c98fc1d6185502bd33cd6d"><td class="mdescLeft"> </td><td class="mdescRight">Returns a suitably aligned pointer, if one is available. <a href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">More...</a><br /></td></tr>
|
|
<tr class="separator:a43fdadd5f4c98fc1d6185502bd33cd6d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa696ee1e381a40ca0e52a1ad5632f866"><td class="memItemLeft" align="right" valign="top">bool </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"> </td><td class="mdescRight">Returns the memory block to the allocator. <a href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">More...</a><br /></td></tr>
|
|
<tr class="separator:aa696ee1e381a40ca0e52a1ad5632f866"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a706e50935a03ee1cba5aef0f292e702b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a>< <a class="el" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> * > </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"> </td></tr>
|
|
<tr class="memitem:adc3cc6119e2cfe97571caa485af8d0c6"><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a></td></tr>
|
|
<tr class="separator:adc3cc6119e2cfe97571caa485af8d0c6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5cc7348d160d7314917bffc8e37f3950"><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a></td></tr>
|
|
<tr class="separator:a5cc7348d160d7314917bffc8e37f3950"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a123a4e4cc4cb29e26fa7db207536cfb1"><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a></td></tr>
|
|
<tr class="separator:a123a4e4cc4cb29e26fa7db207536cfb1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><h3>template<typename Type><br />
|
|
class ripple::SlabAllocator< Type ></h3>
|
|
|
|
|
|
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00043">43</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a0812a0805718c5c0967d4894b7822fe5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0812a0805718c5c0967d4894b7822fe5">◆ </a></span>SlabAllocator() <span class="overload">[1/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </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> </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> </td>
|
|
<td class="paramname"><em>align</em> = <code>0</code> </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 mimimal 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#l00178">178</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af3a0cd5ae8d6b24e2c5e169ddadbf7e6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af3a0cd5ae8d6b24e2c5e169ddadbf7e6">◆ </a></span>SlabAllocator() <span class="overload">[2/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>< Type > const & </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"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af0953e1f8eb7b035b48c8f9cb223a815">◆ </a></span>SlabAllocator() <span class="overload">[3/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::<a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>< Type > && </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"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abe19edc03ec24567c5f3d7e2858db715">◆ </a></span>~SlabAllocator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>< Type >::~<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#l00198">198</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="a502f2c47faa8246b1394edfadf262913"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a502f2c47faa8246b1394edfadf262913">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>& <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>< Type >::operator= </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>< Type > const & </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="a09d2d1f454bf88017eae28dab7300a7e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a09d2d1f454bf88017eae28dab7300a7e">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>& <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>< Type >::operator= </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>< Type > && </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"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6d6d7d449e67409f252d02bdf3af20fe">◆ </a></span>size()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::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#l00207">207</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a43fdadd5f4c98fc1d6185502bd33cd6d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a43fdadd5f4c98fc1d6185502bd33cd6d">◆ </a></span>allocate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::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#l00218">218</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa696ee1e381a40ca0e52a1ad5632f866"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa696ee1e381a40ca0e52a1ad5632f866">◆ </a></span>deallocate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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>< Type >::deallocate </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> * </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#l00295">295</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"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a706e50935a03ee1cba5aef0f292e702b">◆ </a></span>slabs_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </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><<a class="el" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>*> <a class="el" href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a>< Type >::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#l00157">157</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adc3cc6119e2cfe97571caa485af8d0c6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adc3cc6119e2cfe97571caa485af8d0c6">◆ </a></span>itemAlignment_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <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>< Type >::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#l00160">160</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5cc7348d160d7314917bffc8e37f3950"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5cc7348d160d7314917bffc8e37f3950">◆ </a></span>itemSize_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <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>< Type >::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#l00164">164</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a123a4e4cc4cb29e26fa7db207536cfb1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a123a4e4cc4cb29e26fa7db207536cfb1">◆ </a></span>slabSize_</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Type > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <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>< Type >::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#l00167">167</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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|