This commit is contained in:
intelliot
2023-05-31 20:33:56 +00:00
parent 4cfa835097
commit 1273f6481f
16 changed files with 1522 additions and 1495 deletions

View File

@@ -92,410 +92,423 @@ $(function() {
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_BASICS_SLABALLOCATOR_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/type_name.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;boost/align.hpp&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;boost/container/static_vector.hpp&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;boost/predef.h&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#if BOOST_OS_LINUX</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &lt;sys/mman.h&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;boost/align.hpp&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;boost/container/static_vector.hpp&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;boost/predef.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a>&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstring.html">cstring</a>&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#if BOOST_OS_LINUX</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &lt;sys/mman.h&gt;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html"> 41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; static_assert(</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">sizeof</span>(Type) &gt;= <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*),</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="stringliteral">&quot;SlabAllocator: the requested object must be larger than a pointer.&quot;</span>);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; static_assert(<span class="keyword">alignof</span>(Type) == 8 || <span class="keyword">alignof</span>(Type) == 4);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html"> 43</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; static_assert(</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">sizeof</span>(Type) &gt;= <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*),</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="stringliteral">&quot;SlabAllocator: the requested object must be larger than a pointer.&quot;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html"> 50</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; {</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="comment">// A mutex to protect the freelist for this block:</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4"> 53</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// A linked list of appropriately sized free buffers:</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae"> 56</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="comment">// The next memory block</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af"> 59</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>* <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">next_</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="comment">// The underlying memory block:</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62"> 62</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> <span class="keyword">const</span>* <span class="keyword">const</span> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="comment">// The extent of the underlying memory block:</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c"> 65</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba"> 67</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>* next,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* data,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>,</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> item)</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; : <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">next_</a>(next), <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a>(data), <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>(<a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>)</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; {</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="comment">// We don&#39;t need to grab the mutex here, since we&#39;re the only</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="comment">// ones with access at this moment.</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">while</span> (data + item &lt;= <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> + <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>)</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>**<span class="keyword">&gt;</span>(data) = <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = data;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; data += item;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d"> 85</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d">~SlabBlock</a>()</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; {</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="comment">// Calling this destructor will release the allocated memory but</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">// will not properly destroy any objects that are constructed in</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="comment">// the block itself.</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; }</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a59575f36f00fa35c005406df49590991">operator=</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; static_assert(<span class="keyword">alignof</span>(Type) == 8 || <span class="keyword">alignof</span>(Type) == 4);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html"> 52</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// A mutex to protect the freelist for this block:</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4"> 55</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// A linked list of appropriately sized free buffers:</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae"> 58</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="comment">// The next memory block</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af"> 61</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>* <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">next_</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="comment">// The underlying memory block:</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62"> 64</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> <span class="keyword">const</span>* <span class="keyword">const</span> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="comment">// The extent of the underlying memory block:</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c"> 67</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba"> 69</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>* next,</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* data,</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>,</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> item)</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; : <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">next_</a>(next), <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a>(data), <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>(<a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>)</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">// We don&#39;t need to grab the mutex here, since we&#39;re the only</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// ones with access at this moment.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">while</span> (data + item &lt;= <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> + <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>)</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">// Use memcpy to avoid unaligned UB</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="comment">// (will optimize to equivalent code)</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a>(data, &amp;<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>, <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*));</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = data;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; data += item;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d"> 89</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d">~SlabBlock</a>()</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Calling this destructor will release the allocated memory but</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">// will not properly destroy any objects that are constructed in</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// the block itself.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a59575f36f00fa35c005406df49590991">operator=</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a59575f36f00fa35c005406df49590991">operator=</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74"> 102</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">own</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> <span class="keyword">const</span>* p) <span class="keyword">const</span> noexcept</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">return</span> (p &gt;= <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a>) &amp;&amp; (p &lt; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> + <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; }</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c"> 108</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">allocate</a>() noexcept</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ret;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> l(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; ret = <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">if</span> (ret)</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>**<span class="keyword">&gt;</span>(ret);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">SlabBlock</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a59575f36f00fa35c005406df49590991">operator=</a>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74"> 106</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">own</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a> <span class="keyword">const</span>* p) <span class="keyword">const</span> noexcept</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">return</span> (p &gt;= <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a>) &amp;&amp; (p &lt; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">p_</a> + <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">size_</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c"> 112</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">allocate</a>() noexcept</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; {</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ret;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> l(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; ret = <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; }</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301"> 134</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; assert(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">own</a>(ptr));</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> l(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>**<span class="keyword">&gt;</span>(ptr) = <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = ptr;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; }</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; };</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="comment">// A linked list of slabs</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b"> 146</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;SlabBlock*&gt;</a> <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">if</span> (ret)</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">// Use memcpy to avoid unaligned UB</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// (will optimize to equivalent code)</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a>(&amp;<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>, ret, <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*));</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; }</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301"> 142</a></span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; assert(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">own</a>(ptr));</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> l(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">m_</a>);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// The alignment requirements of the item we&#39;re allocating:</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6"> 149</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="comment">// The size of an item, including the extra bytes requested and</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="comment">// any padding needed for alignment purposes:</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950"> 153</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Use memcpy to avoid unaligned UB</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// (will optimize to equivalent code)</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a>(ptr, &amp;<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a>, <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*));</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">l_</a> = ptr;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; };</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="comment">// The size of each individual slab:</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1"> 156</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5"> 167</a></span>&#160; constexpr <span class="keyword">explicit</span> <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> alloc = 0,</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> align = 0)</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; : <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>(align ? align : alignof(Type))</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; , <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>(</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <a class="code" href="namespaceboost.html">boost</a>::alignment::align_up(sizeof(Type) + extra, <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>))</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; , <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>(alloc)</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; {</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; assert((<a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a> &amp; (<a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a> - 1)) == 0);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; }</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">operator=</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">operator=</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715"> 187</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715">~SlabAllocator</a>()</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; {</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="comment">// FIXME: We can&#39;t destroy the memory blocks we&#39;ve allocated, because</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="comment">// we can&#39;t be sure that they are not being used. Cleaning the</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="comment">// shutdown process up could make this possible.</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="comment">// A linked list of slabs</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b"> 157</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;SlabBlock*&gt;</a> <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="comment">// The alignment requirements of the item we&#39;re allocating:</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6"> 160</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="comment">// The size of an item, including the extra bytes requested and</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="comment">// any padding needed for alignment purposes:</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950"> 164</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="comment">// The size of each individual slab:</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1"> 167</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5"> 178</a></span>&#160; constexpr <span class="keyword">explicit</span> <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra,</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> alloc = 0,</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> align = 0)</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; : <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>(align ? align : alignof(Type))</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; , <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>(</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="code" href="namespaceboost.html">boost</a>::alignment::align_up(sizeof(Type) + extra, <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>))</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; , <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>(alloc)</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; assert((<a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a> &amp; (<a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a> - 1)) == 0);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; }</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">operator=</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; constexpr <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe"> 196</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>() const noexcept</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; {</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d"> 207</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">allocate</a>() noexcept</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">SlabAllocator</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">operator=</a>(<a class="code" href="classripple_1_1SlabAllocator.html">SlabAllocator</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715"> 198</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715">~SlabAllocator</a>()</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; {</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="comment">// FIXME: We can&#39;t destroy the memory blocks we&#39;ve allocated, because</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="comment">// we can&#39;t be sure that they are not being used. Cleaning the</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="comment">// shutdown process up could make this possible.</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; }</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; constexpr <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe"> 207</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>() const noexcept</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keyword">auto</span> slab = <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load();</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keywordflow">while</span> (slab != <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; {</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> ret = slab-&gt;allocate())</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; slab = slab-&gt;next_;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; }</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="comment">// No slab can satisfy our request, so we attempt to allocate a new</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="comment">// one here:</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> = <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>;</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">// We want to allocate the memory at a 2 MiB boundary, to make it</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="comment">// possible to use hugepage mappings on Linux:</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keyword">auto</span> buf =</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; boost::alignment::aligned_alloc(<a class="code" href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">megabytes</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(2)), <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>);</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="comment">// clang-format off</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keywordflow">if</span> (!buf) [[unlikely]]</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="comment">// clang-format on</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;<span class="preprocessor">#if BOOST_OS_LINUX</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <span class="comment">// When allocating large blocks, attempt to leverage Linux&#39;s</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="comment">// transparent hugepage support. It is unclear and difficult</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="comment">// to accurately determine if doing this impacts performance</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="comment">// enough to justify using platform-specific tricks.</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> &gt;= <a class="code" href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">megabytes</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(4)))</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; madvise(buf, <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>, MADV_HUGEPAGE);</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="comment">// We need to carve out a bit of memory for the slab header</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="comment">// and then align the rest appropriately:</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="keyword">auto</span> slabData = <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">void</span>*<span class="keyword">&gt;</span>(</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*<span class="keyword">&gt;</span>(buf) + <span class="keyword">sizeof</span>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>));</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="keyword">auto</span> slabSize = <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> - <span class="keyword">sizeof</span>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>);</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="comment">// This operation is essentially guaranteed not to fail but</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="comment">// let&#39;s be careful anyways.</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keywordflow">if</span> (!boost::alignment::align(</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>, <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>, slabData, slabSize))</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; {</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; boost::alignment::aligned_free(buf);</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; }</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; slab = <span class="keyword">new</span> (buf) <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>(</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load(),</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*<span class="keyword">&gt;</span>(slabData),</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; slabSize,</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>);</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <span class="comment">// Link the new slab</span></div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keywordflow">while</span> (!<a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.compare_exchange_weak(</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; slab-&gt;next_,</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; slab,</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; std::memory_order_release,</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; std::memory_order_relaxed))</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; {</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; ; <span class="comment">// Nothing to do</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; }</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keywordflow">return</span> slab-&gt;<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">allocate</a>();</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; }</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866"> 284</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; {</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; assert(ptr);</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> slab = <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load(); slab != <span class="keyword">nullptr</span>; slab = slab-&gt;next_)</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; {</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keywordflow">if</span> (slab-&gt;own(ptr))</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; {</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; slab-&gt;deallocate(ptr);</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; }</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; }</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; }</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;};</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html"> 303</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a></div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;{</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <span class="comment">// The list of allocators that belong to this set</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa"> 307</a></span>&#160; boost::container::static_vector&lt;SlabAllocator&lt;Type&gt;, 64&gt; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>;</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5"> 309</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a> = 0;</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html"> 312</a></span>&#160; <span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a></div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; {</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a78daa74b7baad73946d3d3f397e0f6d8"> 314</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>;</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5"> 317</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1"> 318</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">alloc</a>;</div>
<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8"> 319</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">align</a>;</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; </div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c"> 322</a></span>&#160; constexpr <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c">SlabConfig</a>(</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra_,</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> alloc_ = 0,</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> align_ = <span class="keyword">alignof</span>(Type))</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; : <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>(extra_), <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">alloc</a>(alloc_), <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">align</a>(align_)</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; {</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; }</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; };</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; </div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7"> 331</a></span>&#160; constexpr <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;SlabConfig&gt;</a> cfg)</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; {</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; <span class="comment">// Ensure that the specified allocators are sorted from smallest to</span></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="comment">// largest by size:</span></div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/sort.html">std::sort</a>(</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(cfg),</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(cfg),</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; [](<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; a, <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a> &lt; b.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; });</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; }</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d"> 218</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">allocate</a>() noexcept</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; {</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">auto</span> slab = <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load();</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">while</span> (slab != <span class="keyword">nullptr</span>)</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; {</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> ret = slab-&gt;allocate())</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; slab = slab-&gt;next_;</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="comment">// No slab can satisfy our request, so we attempt to allocate a new</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="comment">// one here:</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> = <a class="code" href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">slabSize_</a>;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <span class="comment">// We want to allocate the memory at a 2 MiB boundary, to make it</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="comment">// possible to use hugepage mappings on Linux:</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keyword">auto</span> buf =</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; boost::alignment::aligned_alloc(<a class="code" href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">megabytes</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(2)), <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>);</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="comment">// clang-format off</span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordflow">if</span> (!buf) [[unlikely]]</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="comment">// clang-format on</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;<span class="preprocessor">#if BOOST_OS_LINUX</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="comment">// When allocating large blocks, attempt to leverage Linux&#39;s</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="comment">// transparent hugepage support. It is unclear and difficult</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="comment">// to accurately determine if doing this impacts performance</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="comment">// enough to justify using platform-specific tricks.</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> &gt;= <a class="code" href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">megabytes</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(4)))</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; madvise(buf, <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a>, MADV_HUGEPAGE);</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="comment">// We need to carve out a bit of memory for the slab header</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="comment">// and then align the rest appropriately:</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keyword">auto</span> slabData = <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">void</span>*<span class="keyword">&gt;</span>(</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*<span class="keyword">&gt;</span>(buf) + <span class="keyword">sizeof</span>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>));</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="keyword">auto</span> slabSize = <a class="code" href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">size</a> - <span class="keyword">sizeof</span>(<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>);</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="comment">// This operation is essentially guaranteed not to fail but</span></div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <span class="comment">// let&#39;s be careful anyways.</span></div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keywordflow">if</span> (!boost::alignment::align(</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">itemAlignment_</a>, <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>, slabData, slabSize))</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; {</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; boost::alignment::aligned_free(buf);</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; }</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; slab = <span class="keyword">new</span> (buf) <a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html">SlabBlock</a>(</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load(),</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*<span class="keyword">&gt;</span>(slabData),</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; slabSize,</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">itemSize_</a>);</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <span class="comment">// Link the new slab</span></div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <span class="keywordflow">while</span> (!<a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.compare_exchange_weak(</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; slab-&gt;next_,</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; slab,</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; std::memory_order_release,</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; std::memory_order_relaxed))</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; {</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; ; <span class="comment">// Nothing to do</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; }</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keywordflow">return</span> slab-&gt;<a class="code" href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">allocate</a>();</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; }</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; </div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866"> 295</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; {</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; assert(ptr);</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; </div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> slab = <a class="code" href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">slabs_</a>.load(); slab != <span class="keyword">nullptr</span>; slab = slab-&gt;next_)</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; {</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keywordflow">if</span> (slab-&gt;own(ptr))</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; {</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; slab-&gt;deallocate(ptr);</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; }</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; }</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; }</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;};</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html"> 314</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a></div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160;{</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <span class="comment">// The list of allocators that belong to this set</span></div>
<div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa"> 318</a></span>&#160; boost::container::static_vector&lt;SlabAllocator&lt;Type&gt;, 64&gt; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>;</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; </div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5"> 320</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a> = 0;</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html"> 323</a></span>&#160; <span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; {</div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a78daa74b7baad73946d3d3f397e0f6d8"> 325</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>;</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5"> 328</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1"> 329</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">alloc</a>;</div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8"> 330</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">align</a>;</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c"> 333</a></span>&#160; constexpr <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c">SlabConfig</a>(</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra_,</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> alloc_ = 0,</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> align_ = <span class="keyword">alignof</span>(Type))</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; : <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>(extra_), <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">alloc</a>(alloc_), <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">align</a>(align_)</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; {</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; }</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; };</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; </div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <span class="comment">// We should never have two slabs of the same size</span></div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; <span class="keywordflow">if</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/adjacent_find.html">std::adjacent_find</a>(</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(cfg),</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(cfg),</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; [](<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; a, <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a> == b.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; }) != cfg.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/end.html">end</a>())</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; {</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keywordflow">throw</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a>(</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; <span class="stringliteral">&quot;SlabAllocatorSet&lt;&quot;</span> + beast::type_name&lt;Type&gt;() +</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="stringliteral">&quot;&gt;: duplicate slab size&quot;</span>);</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; }</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; </div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; c : cfg)</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; {</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; <span class="keyword">auto</span>&amp; a = <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>.emplace_back(c.extra, c.alloc, c.align);</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; <span class="keywordflow">if</span> (a.size() &gt; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a>)</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a> = a.size();</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; }</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; }</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; </div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#ab24fce67d1a969b50db71f2bf4d9d696">operator=</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; </div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#ab24fce67d1a969b50db71f2bf4d9d696">operator=</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af"> 372</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af">~SlabAllocatorSet</a>()</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; {</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; }</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1"> 385</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1">allocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra) noexcept</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; {</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> size = <span class="keyword">sizeof</span>(Type) + extra; size &lt;= <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a>)</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; a : <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>)</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; {</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; <span class="keywordflow">if</span> (a.size() &gt;= size)</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keywordflow">return</span> a.allocate();</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; }</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; }</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; </div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; }</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; </div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90"> 407</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; {</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; a : <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>)</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; {</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; <span class="keywordflow">if</span> (a.deallocate(ptr))</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; }</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; }</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160;};</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; </div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; </div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160;<span class="preprocessor">#endif // RIPPLE_BASICS_SLABALLOCATOR_H_INCLUDED</span></div>
<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7"> 342</a></span>&#160; constexpr <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;SlabConfig&gt;</a> cfg)</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; {</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="comment">// Ensure that the specified allocators are sorted from smallest to</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="comment">// largest by size:</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/sort.html">std::sort</a>(</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(cfg),</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(cfg),</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; [](<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; a, <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a> &lt; b.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; });</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; </div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="comment">// We should never have two slabs of the same size</span></div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <span class="keywordflow">if</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/adjacent_find.html">std::adjacent_find</a>(</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(cfg),</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(cfg),</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; [](<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; a, <a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">SlabConfig</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a> == b.<a class="code" href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">extra</a>;</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; }) != cfg.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/end.html">end</a>())</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; {</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="keywordflow">throw</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a>(</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; <span class="stringliteral">&quot;SlabAllocatorSet&lt;&quot;</span> + beast::type_name&lt;Type&gt;() +</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="stringliteral">&quot;&gt;: duplicate slab size&quot;</span>);</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; }</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; </div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; c : cfg)</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; {</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keyword">auto</span>&amp; a = <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>.emplace_back(c.extra, c.alloc, c.align);</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keywordflow">if</span> (a.size() &gt; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a>)</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a> = a.size();</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; }</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; }</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#ab24fce67d1a969b50db71f2bf4d9d696">operator=</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a> <span class="keyword">const</span>&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; </div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">SlabAllocatorSet</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#ab24fce67d1a969b50db71f2bf4d9d696">operator=</a>(<a class="code" href="classripple_1_1SlabAllocatorSet.html">SlabAllocatorSet</a>&amp;&amp; other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; </div>
<div class="line"><a name="l00383"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af"> 383</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af">~SlabAllocatorSet</a>()</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; {</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; }</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; </div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>*</div>
<div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1"> 396</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1">allocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> extra) noexcept</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; {</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> size = <span class="keyword">sizeof</span>(Type) + extra; size &lt;= <a class="code" href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">maxSize_</a>)</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; {</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; a : <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>)</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; {</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; <span class="keywordflow">if</span> (a.size() &gt;= size)</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; <span class="keywordflow">return</span> a.allocate();</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; }</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; }</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; </div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; }</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; </div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00418"></a><span class="lineno"><a class="line" href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90"> 418</a></span>&#160; <a class="code" href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90">deallocate</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a>* ptr) noexcept</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; {</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; a : <a class="code" href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">allocators_</a>)</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; {</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; <span class="keywordflow">if</span> (a.deallocate(ptr))</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160; }</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; </div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; }</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160;};</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160;<span class="preprocessor">#endif // RIPPLE_BASICS_SLABALLOCATOR_H_INCLUDED</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a3d97e4d8de0778cd8f11a7c26c2f5301"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301">ripple::SlabAllocator::SlabBlock::deallocate</a></div><div class="ttdeci">void deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Return an item to this allocator's freelist.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00134">SlabAllocator.h:134</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_abe19edc03ec24567c5f3d7e2858db715"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715">ripple::SlabAllocator::~SlabAllocator</a></div><div class="ttdeci">~SlabAllocator()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00187">SlabAllocator.h:187</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a3d97e4d8de0778cd8f11a7c26c2f5301"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a3d97e4d8de0778cd8f11a7c26c2f5301">ripple::SlabAllocator::SlabBlock::deallocate</a></div><div class="ttdeci">void deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Return an item to this allocator's freelist.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00142">SlabAllocator.h:142</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_abe19edc03ec24567c5f3d7e2858db715"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#abe19edc03ec24567c5f3d7e2858db715">ripple::SlabAllocator::~SlabAllocator</a></div><div class="ttdeci">~SlabAllocator()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00198">SlabAllocator.h:198</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a502f2c47faa8246b1394edfadf262913"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a502f2c47faa8246b1394edfadf262913">ripple::SlabAllocator::operator=</a></div><div class="ttdeci">SlabAllocator &amp; operator=(SlabAllocator const &amp;other)=delete</div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a554402f5c0c081ba477586a1e31ba0f1"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1">ripple::SlabAllocatorSet::allocate</a></div><div class="ttdeci">std::uint8_t * allocate(std::size_t extra) noexcept</div><div class="ttdoc">Returns a suitably aligned pointer, if one is available.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00385">SlabAllocator.h:385</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_aaf360fb8c1f9471de8f48bba01a8ac90"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90">ripple::SlabAllocatorSet::deallocate</a></div><div class="ttdeci">bool deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Returns the memory block to the allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00407">SlabAllocator.h:407</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a554402f5c0c081ba477586a1e31ba0f1"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a554402f5c0c081ba477586a1e31ba0f1">ripple::SlabAllocatorSet::allocate</a></div><div class="ttdeci">std::uint8_t * allocate(std::size_t extra) noexcept</div><div class="ttdoc">Returns a suitably aligned pointer, if one is available.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00396">SlabAllocator.h:396</a></div></div>
<div class="ttc" id="acstring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstring.html">cstring</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_aaf360fb8c1f9471de8f48bba01a8ac90"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#aaf360fb8c1f9471de8f48bba01a8ac90">ripple::SlabAllocatorSet::deallocate</a></div><div class="ttdeci">bool deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Returns the memory block to the allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00418">SlabAllocator.h:418</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a0857c5a2b90481de09acad1f7efedd74"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">ripple::SlabAllocator::SlabBlock::own</a></div><div class="ttdeci">bool own(std::uint8_t const *p) const noexcept</div><div class="ttdoc">Determines whether the given pointer belongs to this allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00102">SlabAllocator.h:102</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a7e77dc8f940be934583eb1927fd2aa2c"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c">ripple::SlabAllocatorSet::SlabConfig::SlabConfig</a></div><div class="ttdeci">constexpr SlabConfig(std::size_t extra_, std::size_t alloc_=0, std::size_t align_=alignof(Type))</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00322">SlabAllocator.h:322</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a0857c5a2b90481de09acad1f7efedd74"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a0857c5a2b90481de09acad1f7efedd74">ripple::SlabAllocator::SlabBlock::own</a></div><div class="ttdeci">bool own(std::uint8_t const *p) const noexcept</div><div class="ttdoc">Determines whether the given pointer belongs to this allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00106">SlabAllocator.h:106</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a7e77dc8f940be934583eb1927fd2aa2c"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a7e77dc8f940be934583eb1927fd2aa2c">ripple::SlabAllocatorSet::SlabConfig::SlabConfig</a></div><div class="ttdeci">constexpr SlabConfig(std::size_t extra_, std::size_t alloc_=0, std::size_t align_=alignof(Type))</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00333">SlabAllocator.h:333</a></div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceboost_html"><div class="ttname"><a href="namespaceboost.html">boost</a></div><div class="ttdef"><b>Definition:</b> <a href="IPAddress_8h_source.html#l00103">IPAddress.h:103</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a3f88ab397efd3af31b7663fe11891ab1"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">ripple::SlabAllocatorSet::SlabConfig::alloc</a></div><div class="ttdeci">std::size_t alloc</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00318">SlabAllocator.h:318</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a3f88ab397efd3af31b7663fe11891ab1"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a3f88ab397efd3af31b7663fe11891ab1">ripple::SlabAllocatorSet::SlabConfig::alloc</a></div><div class="ttdeci">std::size_t alloc</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00329">SlabAllocator.h:329</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a59575f36f00fa35c005406df49590991"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a59575f36f00fa35c005406df49590991">ripple::SlabAllocator::SlabBlock::operator=</a></div><div class="ttdeci">SlabBlock &amp; operator=(SlabBlock const &amp;other)=delete</div></div>
<div class="ttc" id="asort_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/sort.html">std::sort</a></div><div class="ttdeci">T sort(T... args)</div></div>
<div class="ttc" id="aalgorithm_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a1cd5cfcdd3ed0be7a147cfbea4cb1ab8"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">ripple::SlabAllocatorSet::SlabConfig::align</a></div><div class="ttdeci">std::size_t align</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00319">SlabAllocator.h:319</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_adc3cc6119e2cfe97571caa485af8d0c6"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">ripple::SlabAllocator::itemAlignment_</a></div><div class="ttdeci">const std::size_t itemAlignment_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00149">SlabAllocator.h:149</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_a1cd5cfcdd3ed0be7a147cfbea4cb1ab8"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#a1cd5cfcdd3ed0be7a147cfbea4cb1ab8">ripple::SlabAllocatorSet::SlabConfig::align</a></div><div class="ttdeci">std::size_t align</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00330">SlabAllocator.h:330</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_adc3cc6119e2cfe97571caa485af8d0c6"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#adc3cc6119e2cfe97571caa485af8d0c6">ripple::SlabAllocator::itemAlignment_</a></div><div class="ttdeci">const std::size_t itemAlignment_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00160">SlabAllocator.h:160</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_ab24fce67d1a969b50db71f2bf4d9d696"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#ab24fce67d1a969b50db71f2bf4d9d696">ripple::SlabAllocatorSet::operator=</a></div><div class="ttdeci">SlabAllocatorSet &amp; operator=(SlabAllocatorSet const &amp;other)=delete</div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">ripple::SlabAllocatorSet::SlabConfig</a></div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00312">SlabAllocator.h:312</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_aae3b881e26f20ed039f89906952ee9ba"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">ripple::SlabAllocator::SlabBlock::SlabBlock</a></div><div class="ttdeci">SlabBlock(SlabBlock *next, std::uint8_t *data, std::size_t size, std::size_t item)</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00067">SlabAllocator.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_ad54951a71724414fb61a7dd990a9f5e5"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">ripple::SlabAllocatorSet::SlabConfig::extra</a></div><div class="ttdeci">std::size_t extra</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00317">SlabAllocator.h:317</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a706e50935a03ee1cba5aef0f292e702b"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">ripple::SlabAllocator::slabs_</a></div><div class="ttdeci">std::atomic&lt; SlabBlock * &gt; slabs_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00146">SlabAllocator.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html">ripple::SlabAllocatorSet::SlabConfig</a></div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00323">SlabAllocator.h:323</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_aae3b881e26f20ed039f89906952ee9ba"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#aae3b881e26f20ed039f89906952ee9ba">ripple::SlabAllocator::SlabBlock::SlabBlock</a></div><div class="ttdeci">SlabBlock(SlabBlock *next, std::uint8_t *data, std::size_t size, std::size_t item)</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00069">SlabAllocator.h:69</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_1_1SlabConfig_html_ad54951a71724414fb61a7dd990a9f5e5"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet_1_1SlabConfig.html#ad54951a71724414fb61a7dd990a9f5e5">ripple::SlabAllocatorSet::SlabConfig::extra</a></div><div class="ttdeci">std::size_t extra</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00328">SlabAllocator.h:328</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a706e50935a03ee1cba5aef0f292e702b"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a706e50935a03ee1cba5aef0f292e702b">ripple::SlabAllocator::slabs_</a></div><div class="ttdeci">std::atomic&lt; SlabBlock * &gt; slabs_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00157">SlabAllocator.h:157</a></div></div>
<div class="ttc" id="anamespaceripple_html_a13d7c6c34d30731bbc221f629e03f8db"><div class="ttname"><a href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">ripple::megabytes</a></div><div class="ttdeci">constexpr auto megabytes(T value) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="ByteUtilities_8h_source.html#l00034">ByteUtilities.h:34</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a0812a0805718c5c0967d4894b7822fe5"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">ripple::SlabAllocator::SlabAllocator</a></div><div class="ttdeci">constexpr SlabAllocator(std::size_t extra, std::size_t alloc=0, std::size_t align=0)</div><div class="ttdoc">Constructs a slab allocator able to allocate objects of a fixed size.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00167">SlabAllocator.h:167</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a6d6d7d449e67409f252d02bdf3af20fe"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">ripple::SlabAllocator::size</a></div><div class="ttdeci">constexpr std::size_t size() const noexcept</div><div class="ttdoc">Returns the size of the memory block this allocator returns.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00196">SlabAllocator.h:196</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_aa696ee1e381a40ca0e52a1ad5632f866"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">ripple::SlabAllocator::deallocate</a></div><div class="ttdeci">bool deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Returns the memory block to the allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00284">SlabAllocator.h:284</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a8db542e10fce31f924163e4cc3d04a62"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">ripple::SlabAllocator::SlabBlock::p_</a></div><div class="ttdeci">std::uint8_t const *const p_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00062">SlabAllocator.h:62</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a0812a0805718c5c0967d4894b7822fe5"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a0812a0805718c5c0967d4894b7822fe5">ripple::SlabAllocator::SlabAllocator</a></div><div class="ttdeci">constexpr SlabAllocator(std::size_t extra, std::size_t alloc=0, std::size_t align=0)</div><div class="ttdoc">Constructs a slab allocator able to allocate objects of a fixed size.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00178">SlabAllocator.h:178</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a6d6d7d449e67409f252d02bdf3af20fe"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a6d6d7d449e67409f252d02bdf3af20fe">ripple::SlabAllocator::size</a></div><div class="ttdeci">constexpr std::size_t size() const noexcept</div><div class="ttdoc">Returns the size of the memory block this allocator returns.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00207">SlabAllocator.h:207</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_aa696ee1e381a40ca0e52a1ad5632f866"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#aa696ee1e381a40ca0e52a1ad5632f866">ripple::SlabAllocator::deallocate</a></div><div class="ttdeci">bool deallocate(std::uint8_t *ptr) noexcept</div><div class="ttdoc">Returns the memory block to the allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00295">SlabAllocator.h:295</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a8db542e10fce31f924163e4cc3d04a62"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a8db542e10fce31f924163e4cc3d04a62">ripple::SlabAllocator::SlabBlock::p_</a></div><div class="ttdeci">std::uint8_t const *const p_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00064">SlabAllocator.h:64</a></div></div>
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
<div class="ttc" id="aruntime_error_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a1c8358e65cf81019737a66dffe0887af"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">ripple::SlabAllocator::SlabBlock::next_</a></div><div class="ttdeci">SlabBlock * next_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00059">SlabAllocator.h:59</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a1c8358e65cf81019737a66dffe0887af"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a1c8358e65cf81019737a66dffe0887af">ripple::SlabAllocator::SlabBlock::next_</a></div><div class="ttdeci">SlabBlock * next_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00061">SlabAllocator.h:61</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a></div></div>
<div class="ttc" id="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a531411f3231aa0ae9aa735da7c739ce4"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">ripple::SlabAllocator::SlabBlock::m_</a></div><div class="ttdeci">std::mutex m_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00053">SlabAllocator.h:53</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a5cc7348d160d7314917bffc8e37f3950"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">ripple::SlabAllocator::itemSize_</a></div><div class="ttdeci">const std::size_t itemSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00153">SlabAllocator.h:153</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a531411f3231aa0ae9aa735da7c739ce4"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a531411f3231aa0ae9aa735da7c739ce4">ripple::SlabAllocator::SlabBlock::m_</a></div><div class="ttdeci">std::mutex m_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00055">SlabAllocator.h:55</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a5cc7348d160d7314917bffc8e37f3950"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a5cc7348d160d7314917bffc8e37f3950">ripple::SlabAllocator::itemSize_</a></div><div class="ttdeci">const std::size_t itemSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00164">SlabAllocator.h:164</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a43fdadd5f4c98fc1d6185502bd33cd6d"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">ripple::SlabAllocator::allocate</a></div><div class="ttdeci">std::uint8_t * allocate() noexcept</div><div class="ttdoc">Returns a suitably aligned pointer, if one is available.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00207">SlabAllocator.h:207</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a7e3c9651574fa345c32d8de9451e07aa"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">ripple::SlabAllocatorSet::allocators_</a></div><div class="ttdeci">boost::container::static_vector&lt; SlabAllocator&lt; Type &gt;, 64 &gt; allocators_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00307">SlabAllocator.h:307</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a43fdadd5f4c98fc1d6185502bd33cd6d"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a43fdadd5f4c98fc1d6185502bd33cd6d">ripple::SlabAllocator::allocate</a></div><div class="ttdeci">std::uint8_t * allocate() noexcept</div><div class="ttdoc">Returns a suitably aligned pointer, if one is available.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00218">SlabAllocator.h:218</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a7e3c9651574fa345c32d8de9451e07aa"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a7e3c9651574fa345c32d8de9451e07aa">ripple::SlabAllocatorSet::allocators_</a></div><div class="ttdeci">boost::container::static_vector&lt; SlabAllocator&lt; Type &gt;, 64 &gt; allocators_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00318">SlabAllocator.h:318</a></div></div>
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_adfeb156b3aabe7e20995c2ef0291829d"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d">ripple::SlabAllocator::SlabBlock::~SlabBlock</a></div><div class="ttdeci">~SlabBlock()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00085">SlabAllocator.h:85</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_adfeb156b3aabe7e20995c2ef0291829d"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#adfeb156b3aabe7e20995c2ef0291829d">ripple::SlabAllocator::SlabBlock::~SlabBlock</a></div><div class="ttdeci">~SlabBlock()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00089">SlabAllocator.h:89</a></div></div>
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
<div class="ttc" id="aadjacent_find_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/adjacent_find.html">std::adjacent_find</a></div><div class="ttdeci">T adjacent_find(T... args)</div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="amemcpy_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a></div><div class="ttdeci">T memcpy(T... args)</div></div>
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a></div><div class="ttdeci">T end(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a123a4e4cc4cb29e26fa7db207536cfb1"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">ripple::SlabAllocator::slabSize_</a></div><div class="ttdeci">const std::size_t slabSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00156">SlabAllocator.h:156</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html">ripple::SlabAllocator::SlabBlock</a></div><div class="ttdoc">A block of memory that is owned by a slab allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00050">SlabAllocator.h:50</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a41f6365b75ec1f8507f475b7285363af"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af">ripple::SlabAllocatorSet::~SlabAllocatorSet</a></div><div class="ttdeci">~SlabAllocatorSet()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00372">SlabAllocator.h:372</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_ae86708a8fd44754f5955cae59a42d0ae"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">ripple::SlabAllocator::SlabBlock::l_</a></div><div class="ttdeci">std::uint8_t * l_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00056">SlabAllocator.h:56</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a54b6414aac76d5d3fc6f292038bc088c"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">ripple::SlabAllocator::SlabBlock::size_</a></div><div class="ttdeci">const std::size_t size_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00065">SlabAllocator.h:65</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html">ripple::SlabAllocatorSet</a></div><div class="ttdoc">A collection of slab allocators of various sizes for a given type.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00303">SlabAllocator.h:303</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html"><div class="ttname"><a href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a></div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00041">SlabAllocator.h:41</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a409c00d0fe510a88ca67b807fbed216c"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">ripple::SlabAllocator::SlabBlock::allocate</a></div><div class="ttdeci">std::uint8_t * allocate() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00108">SlabAllocator.h:108</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a4895e2fb1cc2a14b851347f9fb0696a7"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">ripple::SlabAllocatorSet::SlabAllocatorSet</a></div><div class="ttdeci">constexpr SlabAllocatorSet(std::vector&lt; SlabConfig &gt; cfg)</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00331">SlabAllocator.h:331</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a96e56f2b07cb747c0ec4a7ff3b79e1a5"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">ripple::SlabAllocatorSet::maxSize_</a></div><div class="ttdeci">std::size_t maxSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00309">SlabAllocator.h:309</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html_a123a4e4cc4cb29e26fa7db207536cfb1"><div class="ttname"><a href="classripple_1_1SlabAllocator.html#a123a4e4cc4cb29e26fa7db207536cfb1">ripple::SlabAllocator::slabSize_</a></div><div class="ttdeci">const std::size_t slabSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00167">SlabAllocator.h:167</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html">ripple::SlabAllocator::SlabBlock</a></div><div class="ttdoc">A block of memory that is owned by a slab allocator.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00052">SlabAllocator.h:52</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a41f6365b75ec1f8507f475b7285363af"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a41f6365b75ec1f8507f475b7285363af">ripple::SlabAllocatorSet::~SlabAllocatorSet</a></div><div class="ttdeci">~SlabAllocatorSet()</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00383">SlabAllocator.h:383</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_ae86708a8fd44754f5955cae59a42d0ae"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#ae86708a8fd44754f5955cae59a42d0ae">ripple::SlabAllocator::SlabBlock::l_</a></div><div class="ttdeci">std::uint8_t * l_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00058">SlabAllocator.h:58</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a54b6414aac76d5d3fc6f292038bc088c"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a54b6414aac76d5d3fc6f292038bc088c">ripple::SlabAllocator::SlabBlock::size_</a></div><div class="ttdeci">const std::size_t size_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00067">SlabAllocator.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html">ripple::SlabAllocatorSet</a></div><div class="ttdoc">A collection of slab allocators of various sizes for a given type.</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00314">SlabAllocator.h:314</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocator_html"><div class="ttname"><a href="classripple_1_1SlabAllocator.html">ripple::SlabAllocator</a></div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00043">SlabAllocator.h:43</a></div></div>
<div class="ttc" id="astructripple_1_1SlabAllocator_1_1SlabBlock_html_a409c00d0fe510a88ca67b807fbed216c"><div class="ttname"><a href="structripple_1_1SlabAllocator_1_1SlabBlock.html#a409c00d0fe510a88ca67b807fbed216c">ripple::SlabAllocator::SlabBlock::allocate</a></div><div class="ttdeci">std::uint8_t * allocate() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00112">SlabAllocator.h:112</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a4895e2fb1cc2a14b851347f9fb0696a7"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a4895e2fb1cc2a14b851347f9fb0696a7">ripple::SlabAllocatorSet::SlabAllocatorSet</a></div><div class="ttdeci">constexpr SlabAllocatorSet(std::vector&lt; SlabConfig &gt; cfg)</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00342">SlabAllocator.h:342</a></div></div>
<div class="ttc" id="aclassripple_1_1SlabAllocatorSet_html_a96e56f2b07cb747c0ec4a7ff3b79e1a5"><div class="ttname"><a href="classripple_1_1SlabAllocatorSet.html#a96e56f2b07cb747c0ec4a7ff3b79e1a5">ripple::SlabAllocatorSet::maxSize_</a></div><div class="ttdeci">std::size_t maxSize_</div><div class="ttdef"><b>Definition:</b> <a href="SlabAllocator_8h_source.html#l00320">SlabAllocator.h:320</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">

View File

@@ -135,7 +135,7 @@ Private Attributes</h2></td></tr>
class ripple::SlabAllocator&lt; Type &gt;</h3>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00041">41</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<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 &amp; Destructor Documentation</h2>
<a id="a0812a0805718c5c0967d4894b7822fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0812a0805718c5c0967d4894b7822fe5">&#9670;&nbsp;</a></span>SlabAllocator() <span class="overload">[1/3]</span></h2>
@@ -187,7 +187,7 @@ template&lt;typename Type &gt; </div>
</dd>
</dl>
<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>
<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>
@@ -264,7 +264,7 @@ template&lt;typename Type &gt; </div>
</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>
<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>
@@ -352,7 +352,7 @@ template&lt;typename Type &gt; </div>
<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>
<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>
@@ -384,7 +384,7 @@ template&lt;typename Type &gt; </div>
<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>
<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>
@@ -424,7 +424,7 @@ template&lt;typename Type &gt; </div>
</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>
<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>
@@ -451,7 +451,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00146">146</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<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>
@@ -477,7 +477,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00149">149</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<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>
@@ -503,7 +503,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00153">153</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<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>
@@ -529,7 +529,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00156">156</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<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>

View File

@@ -126,7 +126,7 @@ class ripple::SlabAllocatorSet&lt; Type &gt;</h3>
<p>A collection of slab allocators of various sizes for a given type. </p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00303">303</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00314">314</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="a4895e2fb1cc2a14b851347f9fb0696a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4895e2fb1cc2a14b851347f9fb0696a7">&#9670;&nbsp;</a></span>SlabAllocatorSet() <span class="overload">[1/3]</span></h2>
@@ -154,7 +154,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00331">331</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00342">342</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -231,7 +231,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00372">372</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00383">383</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -327,7 +327,7 @@ template&lt;typename Type &gt; </div>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to a block of memory, 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#l00385">385</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00396">396</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -366,7 +366,7 @@ template&lt;typename Type &gt; </div>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if this memory block belonged to one of the allocators in this set and has been released; false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00407">407</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00418">418</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -393,7 +393,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00307">307</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00318">318</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -419,7 +419,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00309">309</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00320">320</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>

View File

@@ -108,7 +108,7 @@ Friends</h2></td></tr>
class ripple::SlabAllocatorSet&lt; Type &gt;::SlabConfig</h3>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00312">312</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00323">323</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="a7e77dc8f940be934583eb1927fd2aa2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e77dc8f940be934583eb1927fd2aa2c">&#9670;&nbsp;</a></span>SlabConfig()</h2>
@@ -152,7 +152,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00322">322</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00333">333</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -179,7 +179,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00314">314</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00325">325</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -206,7 +206,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00317">317</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00328">328</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -232,7 +232,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00318">318</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00329">329</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -258,7 +258,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00319">319</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00330">330</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>

View File

@@ -306,7 +306,7 @@ Variables</h2></td></tr>
<tr><td class="fieldname"><a id="adea68075e427dfc7781b5a930121b579a1cc3c7817ef899641248c430aaa73f4d"></a>XXH_littleEndian&#160;</td><td class="fielddoc"></td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00223">223</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00225">225</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -326,7 +326,7 @@ Variables</h2></td></tr>
<tr><td class="fieldname"><a id="a3f28e15d8e6a86d4fd1f604373318633a482e193e1bc18e4fb39839fb70f8eeb6"></a>XXH_unaligned&#160;</td><td class="fielddoc"></td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00242">242</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00244">244</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -811,7 +811,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00245">245</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00247">247</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -841,7 +841,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00254">254</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00256">256</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -877,7 +877,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00260">260</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00262">262</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -907,7 +907,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00269">269</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00277">277</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -955,7 +955,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00278">278</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00286">286</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -991,7 +991,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00360">360</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00368">368</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1039,7 +1039,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00394">394</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00402">402</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1075,7 +1075,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00511">511</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00519">519</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1095,7 +1095,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00574">574</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00582">582</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1115,7 +1115,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00583">583</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00591">591</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1135,7 +1135,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00590">590</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00598">598</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1155,7 +1155,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00599">599</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00607">607</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1185,7 +1185,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00608">608</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00616">616</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1215,7 +1215,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00622">622</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00630">630</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1257,7 +1257,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00636">636</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00644">644</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1293,7 +1293,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00731">731</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00739">739</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1323,7 +1323,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00742">742</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00750">750</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1343,7 +1343,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00785">785</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00793">793</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1385,7 +1385,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00796">796</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00804">804</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1421,7 +1421,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00891">891</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00899">899</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1451,7 +1451,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00902">902</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00910">910</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1471,7 +1471,7 @@ template&lt;class Hasher , class... T, std::size_t... I&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00985">985</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00993">993</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -1562,7 +1562,7 @@ template&lt;typename T &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00227">227</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00229">229</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>

View File

@@ -19811,7 +19811,7 @@ template&lt;class Dest , class Src &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00038">38</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00042">42</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
</div>
</div>
@@ -19839,7 +19839,7 @@ template&lt;class Dest , class Src &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00044">44</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00048">48</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
</div>
</div>
@@ -19867,7 +19867,7 @@ template&lt;class Dest , class Src &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00050">50</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00054">54</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
</div>
</div>
@@ -19899,7 +19899,7 @@ template&lt;typename Key &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00057">57</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="partitioned__unordered__map_8cpp_source.html#l00061">61</a> of file <a class="el" href="partitioned__unordered__map_8cpp_source.html">partitioned_unordered_map.cpp</a>.</p>
</div>
</div>

View File

@@ -102,51 +102,55 @@ $(function() {
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f"> 32</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const*<span class="keyword">&gt;</span>(key.<a class="code" href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">data</a>());</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;}</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="namespaceripple.html#a235a855c91358ebe3956db81998142bd"> 38</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const*<span class="keyword">&gt;</span>(key.<a class="code" href="classripple_1_1SHAMapHash.html#a8f95b5bc14b7085d368f56aeaa17ef4f">as_uint256</a>().<a class="code" href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">data</a>());</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;}</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespaceripple.html#ad4fe30928104b8e0d78b50dc43ae5f34"> 44</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> key)</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a><span class="keyword">&gt;</span>(key);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;}</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="namespaceripple.html#af7aa9ed7685dcc876afda7ad309db2e3"> 50</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;{</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; return ::beast::uhash&lt;&gt;{}(key);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key&gt;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespaceripple.html#a208517700724be17511ebb152d019385"> 57</a></span>&#160;<a class="code" href="namespaceripple.html#a208517700724be17511ebb152d019385">partitioner</a>(Key <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions)</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(key) % numPartitions;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;}</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<a class="code" href="namespaceripple.html#ae5fdd15ae49b9dd8902d6d0eefb827ab">partitioner&lt;LedgerIndex&gt;</a>(</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> <span class="keyword">const</span>&amp; key,</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<a class="code" href="namespaceripple.html#a22206eb014f353afcc96542e370e40e3">partitioner&lt;uint256&gt;</a>(<a class="code" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<a class="code" href="namespaceripple.html#ae50f1a85e665e5fca56863ef5f263593">partitioner&lt;SHAMapHash&gt;</a>(SHAMapHash <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;partitioner&lt;std::string&gt;(</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; key,</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> result;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="comment">// Use memcpy to avoid unaligned UB</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="comment">// (will optimize to equivalent code)</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a>(&amp;result, key.<a class="code" href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">data</a>(), <span class="keyword">sizeof</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>));</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespaceripple.html#a235a855c91358ebe3956db81998142bd"> 42</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;{</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">reinterpret_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> const*<span class="keyword">&gt;</span>(key.<a class="code" href="classripple_1_1SHAMapHash.html#a8f95b5bc14b7085d368f56aeaa17ef4f">as_uint256</a>().<a class="code" href="classripple_1_1base__uint.html#a5342507fe2fb5ac55d578e7e98863f70">data</a>());</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;}</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="namespaceripple.html#ad4fe30928104b8e0d78b50dc43ae5f34"> 48</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">LedgerIndex</a> key)</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a><span class="keyword">&gt;</span>(key);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceripple.html#af7aa9ed7685dcc876afda7ad309db2e3"> 54</a></span>&#160;<a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;{</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; return ::beast::uhash&lt;&gt;{}(key);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;}</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key&gt;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="namespaceripple.html#a208517700724be17511ebb152d019385"> 61</a></span>&#160;<a class="code" href="namespaceripple.html#a208517700724be17511ebb152d019385">partitioner</a>(Key <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions)</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">extract</a>(key) % numPartitions;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<a class="code" href="namespaceripple.html#ae5fdd15ae49b9dd8902d6d0eefb827ab">partitioner&lt;LedgerIndex&gt;</a>(</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">LedgerIndex</a> <span class="keyword">const</span>&amp; key,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<a class="code" href="namespaceripple.html#a22206eb014f353afcc96542e370e40e3">partitioner&lt;uint256&gt;</a>(<a class="code" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<a class="code" href="namespaceripple.html#ae50f1a85e665e5fca56863ef5f263593">partitioner&lt;SHAMapHash&gt;</a>(SHAMapHash <span class="keyword">const</span>&amp; key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="keyword">template</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;partitioner&lt;std::string&gt;(</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; key,</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <span class="keyword">const</span> numPartitions);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceripple_html_ae5fdd15ae49b9dd8902d6d0eefb827ab"><div class="ttname"><a href="namespaceripple.html#ae5fdd15ae49b9dd8902d6d0eefb827ab">ripple::partitioner&lt; LedgerIndex &gt;</a></div><div class="ttdeci">template std::size_t partitioner&lt; LedgerIndex &gt;(LedgerIndex const &amp;key, std::size_t const numPartitions)</div></div>
<div class="ttc" id="anamespaceripple_html_a12af8e98b794e8ee3b4dbecaed2a4efd"><div class="ttname"><a href="namespaceripple.html#a12af8e98b794e8ee3b4dbecaed2a4efd">ripple::LedgerIndex</a></div><div class="ttdeci">std::uint32_t LedgerIndex</div><div class="ttdoc">A ledger index.</div><div class="ttdef"><b>Definition:</b> <a href="Protocol_8h_source.html#l00090">Protocol.h:90</a></div></div>
@@ -157,11 +161,12 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a22206eb014f353afcc96542e370e40e3"><div class="ttname"><a href="namespaceripple.html#a22206eb014f353afcc96542e370e40e3">ripple::partitioner&lt; uint256 &gt;</a></div><div class="ttdeci">template std::size_t partitioner&lt; uint256 &gt;(uint256 const &amp;key, std::size_t const numPartitions)</div></div>
<div class="ttc" id="anamespaceripple_html_a356c68147333a9a48a344718038576d9"><div class="ttname"><a href="namespaceripple.html#a356c68147333a9a48a344718038576d9">ripple::uint256</a></div><div class="ttdeci">base_uint&lt; 256 &gt; uint256</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00550">base_uint.h:550</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="anamespaceripple_html_a208517700724be17511ebb152d019385"><div class="ttname"><a href="namespaceripple.html#a208517700724be17511ebb152d019385">ripple::partitioner</a></div><div class="ttdeci">std::size_t partitioner(Key const &amp;key, std::size_t const numPartitions)</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8cpp_source.html#l00057">partitioned_unordered_map.cpp:57</a></div></div>
<div class="ttc" id="anamespaceripple_html_a208517700724be17511ebb152d019385"><div class="ttname"><a href="namespaceripple.html#a208517700724be17511ebb152d019385">ripple::partitioner</a></div><div class="ttdeci">std::size_t partitioner(Key const &amp;key, std::size_t const numPartitions)</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8cpp_source.html#l00061">partitioned_unordered_map.cpp:61</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="alimits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/limits.html">limits</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="amemcpy_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/byte/memcpy.html">std::memcpy</a></div><div class="ttdeci">T memcpy(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1SHAMapHash_html_a8f95b5bc14b7085d368f56aeaa17ef4f"><div class="ttname"><a href="classripple_1_1SHAMapHash.html#a8f95b5bc14b7085d368f56aeaa17ef4f">ripple::SHAMapHash::as_uint256</a></div><div class="ttdeci">uint256 const &amp; as_uint256() const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapHash_8h_source.html#l00043">SHAMapHash.h:43</a></div></div>
<div class="ttc" id="anamespaceripple_html_a41db2b18d077b2315f0b8282743cfe7f"><div class="ttname"><a href="namespaceripple.html#a41db2b18d077b2315f0b8282743cfe7f">ripple::extract</a></div><div class="ttdeci">static std::size_t extract(uint256 const &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8cpp_source.html#l00032">partitioned_unordered_map.cpp:32</a></div></div>
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>

View File

@@ -516,7 +516,7 @@ $(function() {
<div class="ttc" id="astructripple_1_1partitioned__unordered__map_1_1iterator_html_a465a7d3dc030277722e3e7eee4e5c88b"><div class="ttname"><a href="structripple_1_1partitioned__unordered__map_1_1iterator.html#a465a7d3dc030277722e3e7eee4e5c88b">ripple::partitioned_unordered_map::iterator::operator++</a></div><div class="ttdeci">iterator &amp; operator++()</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8h_source.html#l00104">partitioned_unordered_map.h:104</a></div></div>
<div class="ttc" id="athread_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/thread.html">thread</a></div></div>
<div class="ttc" id="astructripple_1_1partitioned__unordered__map_1_1iterator_html_a834208286b49c9605741410bfc5c1337"><div class="ttname"><a href="structripple_1_1partitioned__unordered__map_1_1iterator.html#a834208286b49c9605741410bfc5c1337">ripple::partitioned_unordered_map::iterator::inc</a></div><div class="ttdeci">void inc()</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8h_source.html#l00090">partitioned_unordered_map.h:90</a></div></div>
<div class="ttc" id="anamespaceripple_html_a208517700724be17511ebb152d019385"><div class="ttname"><a href="namespaceripple.html#a208517700724be17511ebb152d019385">ripple::partitioner</a></div><div class="ttdeci">std::size_t partitioner(Key const &amp;key, std::size_t const numPartitions)</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8cpp_source.html#l00057">partitioned_unordered_map.cpp:57</a></div></div>
<div class="ttc" id="anamespaceripple_html_a208517700724be17511ebb152d019385"><div class="ttname"><a href="namespaceripple.html#a208517700724be17511ebb152d019385">ripple::partitioner</a></div><div class="ttdeci">std::size_t partitioner(Key const &amp;key, std::size_t const numPartitions)</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8cpp_source.html#l00061">partitioned_unordered_map.cpp:61</a></div></div>
<div class="ttc" id="ahardware_concurrency_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/thread/hardware_concurrency.html">std::thread::hardware_concurrency</a></div><div class="ttdeci">T hardware_concurrency(T... args)</div></div>
<div class="ttc" id="astructripple_1_1partitioned__unordered__map_1_1const__iterator_html_a541ea1d328950d59d1c40b5669e074e0"><div class="ttname"><a href="structripple_1_1partitioned__unordered__map_1_1const__iterator.html#a541ea1d328950d59d1c40b5669e074e0">ripple::partitioned_unordered_map::const_iterator::inc</a></div><div class="ttdeci">void inc()</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8h_source.html#l00167">partitioned_unordered_map.h:167</a></div></div>
<div class="ttc" id="astructripple_1_1partitioned__unordered__map_1_1const__iterator_html_afae74740cd768b4502300a978ad1f503"><div class="ttname"><a href="structripple_1_1partitioned__unordered__map_1_1const__iterator.html#afae74740cd768b4502300a978ad1f503">ripple::partitioned_unordered_map::const_iterator::ait_</a></div><div class="ttdeci">partition_map_type::iterator ait_</div><div class="ttdef"><b>Definition:</b> <a href="partitioned__unordered__map_8h_source.html#l00138">partitioned_unordered_map.h:138</a></div></div>

View File

@@ -94,7 +94,7 @@ Public Attributes</h2></td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00549">549</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00557">557</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="aff76c3f43583be3a76452a87bf2f3574"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff76c3f43583be3a76452a87bf2f3574">&#9670;&nbsp;</a></span>total_len</h2>
@@ -108,7 +108,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00553">553</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00561">561</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -124,7 +124,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00554">554</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00562">562</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -140,7 +140,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00555">555</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00563">563</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -156,7 +156,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00556">556</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00564">564</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -172,7 +172,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00557">557</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00565">565</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -188,7 +188,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00558">558</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00566">566</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -204,7 +204,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00559">559</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00567">567</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -220,7 +220,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00560">560</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00568">568</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>

View File

@@ -94,7 +94,7 @@ Public Attributes</h2></td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00561">561</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00569">569</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a3f6c65944f21404ace59c313a662d642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f6c65944f21404ace59c313a662d642">&#9670;&nbsp;</a></span>total_len</h2>
@@ -108,7 +108,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00563">563</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00571">571</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -124,7 +124,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00564">564</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00572">572</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -140,7 +140,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00565">565</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00573">573</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -156,7 +156,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00566">566</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00574">574</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -172,7 +172,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00567">567</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00575">575</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -188,7 +188,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00568">568</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00576">576</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -204,7 +204,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00569">569</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00577">577</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>
@@ -220,7 +220,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00570">570</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00578">578</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>

View File

@@ -80,7 +80,7 @@ Public Attributes</h2></td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00147">147</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00149">149</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="aeb194a796de144951cc84f0fdcee5369"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb194a796de144951cc84f0fdcee5369">&#9670;&nbsp;</a></span>v</h2>
@@ -94,7 +94,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00149">149</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00151">151</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>

View File

@@ -80,7 +80,7 @@ Public Attributes</h2></td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00151">151</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00153">153</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a970194251012d28d4155575b70d760bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a970194251012d28d4155575b70d760bc">&#9670;&nbsp;</a></span>v</h2>
@@ -94,7 +94,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00153">153</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="xxhash_8cpp_source.html#l00155">155</a> of file <a class="el" href="xxhash_8cpp_source.html">xxhash.cpp</a>.</p>
</div>
</div>

View File

@@ -130,7 +130,7 @@ struct ripple::SlabAllocator&lt; Type &gt;::SlabBlock</h3>
<p>A block of memory that is owned by a slab allocator. </p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00050">50</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00052">52</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="aae3b881e26f20ed039f89906952ee9ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae3b881e26f20ed039f89906952ee9ba">&#9670;&nbsp;</a></span>SlabBlock() <span class="overload">[1/3]</span></h2>
@@ -172,7 +172,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00067">67</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00069">69</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -193,7 +193,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00085">85</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00089">89</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -338,7 +338,7 @@ template&lt;typename Type &gt; </div>
<p>Determines whether the given pointer belongs to this allocator. </p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00102">102</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00106">106</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -367,7 +367,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00108">108</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00112">112</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -406,7 +406,7 @@ template&lt;typename Type &gt; </div>
</dl>
<dl class="section note"><dt>Note</dt><dd>This is a dangerous, private interface; the item being returned should belong to this allocator. Debug builds will check and assert if this is not the case. Release builds will not. </dd></dl>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00134">134</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00142">142</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -425,7 +425,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00053">53</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00055">55</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -443,7 +443,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00056">56</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00058">58</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -461,7 +461,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00059">59</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00061">61</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -479,7 +479,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00062">62</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00064">64</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>
@@ -497,7 +497,7 @@ template&lt;typename Type &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00065">65</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="SlabAllocator_8h_source.html#l00067">67</a> of file <a class="el" href="SlabAllocator_8h_source.html">SlabAllocator.h</a>.</p>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@@ -240,22 +240,22 @@ $(function() {
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacebeast_1_1detail_html_a705223f490a47a158cb84beec6a31ca4"><div class="ttname"><a href="namespacebeast_1_1detail.html#a705223f490a47a158cb84beec6a31ca4">beast::detail::XXH32_freeState</a></div><div class="ttdeci">XXH_errorcode XXH32_freeState(XXH32_state_t *statePtr)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00583">xxhash.cpp:583</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a705223f490a47a158cb84beec6a31ca4"><div class="ttname"><a href="namespacebeast_1_1detail.html#a705223f490a47a158cb84beec6a31ca4">beast::detail::XXH32_freeState</a></div><div class="ttdeci">XXH_errorcode XXH32_freeState(XXH32_state_t *statePtr)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00591">xxhash.cpp:591</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a23d8bec4f2b07e28987d348b3b5c896c"><div class="ttname"><a href="namespacebeast_1_1detail.html#a23d8bec4f2b07e28987d348b3b5c896c">beast::detail::XXH_errorcode</a></div><div class="ttdeci">XXH_errorcode</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8h_source.html#l00079">xxhash.h:79</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a1889d409556a3a9206ab77fdf7cb4bad"><div class="ttname"><a href="namespacebeast_1_1detail.html#a1889d409556a3a9206ab77fdf7cb4bad">beast::detail::XXH64_update</a></div><div class="ttdeci">XXH_errorcode XXH64_update(XXH64_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00891">xxhash.cpp:891</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a180b5a4fa71deccd2842caf78dc2ae02"><div class="ttname"><a href="namespacebeast_1_1detail.html#a180b5a4fa71deccd2842caf78dc2ae02">beast::detail::XXH32_digest</a></div><div class="ttdeci">U32 XXH32_digest(const XXH32_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00785">xxhash.cpp:785</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_af9351de7641e84e52fcaa1c59ee2b7d6"><div class="ttname"><a href="namespacebeast_1_1detail.html#af9351de7641e84e52fcaa1c59ee2b7d6">beast::detail::XXH64_reset</a></div><div class="ttdeci">XXH_errorcode XXH64_reset(XXH64_state_t *state_in, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00622">xxhash.cpp:622</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a1889d409556a3a9206ab77fdf7cb4bad"><div class="ttname"><a href="namespacebeast_1_1detail.html#a1889d409556a3a9206ab77fdf7cb4bad">beast::detail::XXH64_update</a></div><div class="ttdeci">XXH_errorcode XXH64_update(XXH64_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00899">xxhash.cpp:899</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a180b5a4fa71deccd2842caf78dc2ae02"><div class="ttname"><a href="namespacebeast_1_1detail.html#a180b5a4fa71deccd2842caf78dc2ae02">beast::detail::XXH32_digest</a></div><div class="ttdeci">U32 XXH32_digest(const XXH32_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00793">xxhash.cpp:793</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_af9351de7641e84e52fcaa1c59ee2b7d6"><div class="ttname"><a href="namespacebeast_1_1detail.html#af9351de7641e84e52fcaa1c59ee2b7d6">beast::detail::XXH64_reset</a></div><div class="ttdeci">XXH_errorcode XXH64_reset(XXH64_state_t *state_in, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00630">xxhash.cpp:630</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a23d8bec4f2b07e28987d348b3b5c896caa642c7046ece6b5bfd60b8bd51d20cc0"><div class="ttname"><a href="namespacebeast_1_1detail.html#a23d8bec4f2b07e28987d348b3b5c896caa642c7046ece6b5bfd60b8bd51d20cc0">beast::detail::XXH_OK</a></div><div class="ttdeci">@ XXH_OK</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8h_source.html#l00083">xxhash.h:83</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a66c3f34661239aea8df7e193fa67880e"><div class="ttname"><a href="namespacebeast_1_1detail.html#a66c3f34661239aea8df7e193fa67880e">beast::detail::XXH64_digest</a></div><div class="ttdeci">unsigned long long XXH64_digest(const XXH64_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00985">xxhash.cpp:985</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a10af2adec8a6e31f6ea0be01248003a3"><div class="ttname"><a href="namespacebeast_1_1detail.html#a10af2adec8a6e31f6ea0be01248003a3">beast::detail::XXH64_freeState</a></div><div class="ttdeci">XXH_errorcode XXH64_freeState(XXH64_state_t *statePtr)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00599">xxhash.cpp:599</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a5b73efa3b39cfd02702e9f1a50269b99"><div class="ttname"><a href="namespacebeast_1_1detail.html#a5b73efa3b39cfd02702e9f1a50269b99">beast::detail::XXH32_update</a></div><div class="ttdeci">XXH_errorcode XXH32_update(XXH32_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00731">xxhash.cpp:731</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a66c3f34661239aea8df7e193fa67880e"><div class="ttname"><a href="namespacebeast_1_1detail.html#a66c3f34661239aea8df7e193fa67880e">beast::detail::XXH64_digest</a></div><div class="ttdeci">unsigned long long XXH64_digest(const XXH64_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00993">xxhash.cpp:993</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a10af2adec8a6e31f6ea0be01248003a3"><div class="ttname"><a href="namespacebeast_1_1detail.html#a10af2adec8a6e31f6ea0be01248003a3">beast::detail::XXH64_freeState</a></div><div class="ttdeci">XXH_errorcode XXH64_freeState(XXH64_state_t *statePtr)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00607">xxhash.cpp:607</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a5b73efa3b39cfd02702e9f1a50269b99"><div class="ttname"><a href="namespacebeast_1_1detail.html#a5b73efa3b39cfd02702e9f1a50269b99">beast::detail::XXH32_update</a></div><div class="ttdeci">XXH_errorcode XXH32_update(XXH32_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00739">xxhash.cpp:739</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a23d8bec4f2b07e28987d348b3b5c896ca14990ac4535ed1a6522cc44a93b279dd"><div class="ttname"><a href="namespacebeast_1_1detail.html#a23d8bec4f2b07e28987d348b3b5c896ca14990ac4535ed1a6522cc44a93b279dd">beast::detail::XXH_ERROR</a></div><div class="ttdeci">@ XXH_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8h_source.html#l00083">xxhash.h:83</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a15410a221c71f6be28b90e83a14fd448"><div class="ttname"><a href="namespacebeast_1_1detail.html#a15410a221c71f6be28b90e83a14fd448">beast::detail::XXH32_reset</a></div><div class="ttdeci">XXH_errorcode XXH32_reset(XXH32_state_t *state_in, U32 seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00608">xxhash.cpp:608</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a15410a221c71f6be28b90e83a14fd448"><div class="ttname"><a href="namespacebeast_1_1detail.html#a15410a221c71f6be28b90e83a14fd448">beast::detail::XXH32_reset</a></div><div class="ttdeci">XXH_errorcode XXH32_reset(XXH32_state_t *state_in, U32 seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00616">xxhash.cpp:616</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1XXH32__state__t_html"><div class="ttname"><a href="structbeast_1_1detail_1_1XXH32__state__t.html">beast::detail::XXH32_state_t</a></div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8h_source.html#l00103">xxhash.h:103</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a25f3c6d6c7ff9f497a76eb01ead658c2"><div class="ttname"><a href="namespacebeast_1_1detail.html#a25f3c6d6c7ff9f497a76eb01ead658c2">beast::detail::XXH32</a></div><div class="ttdeci">unsigned int XXH32(const void *input, size_t len, unsigned seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00360">xxhash.cpp:360</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_adf6aee195936f6582ee7b2adb4f60258"><div class="ttname"><a href="namespacebeast_1_1detail.html#adf6aee195936f6582ee7b2adb4f60258">beast::detail::XXH64_createState</a></div><div class="ttdeci">XXH64_state_t * XXH64_createState(void)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00590">xxhash.cpp:590</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_ab966aa3c3db5c80c832f2c41c32e4881"><div class="ttname"><a href="namespacebeast_1_1detail.html#ab966aa3c3db5c80c832f2c41c32e4881">beast::detail::XXH32_createState</a></div><div class="ttdeci">XXH32_state_t * XXH32_createState(void)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00574">xxhash.cpp:574</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a15cc8b5feb86235839a3c31e01ffc82b"><div class="ttname"><a href="namespacebeast_1_1detail.html#a15cc8b5feb86235839a3c31e01ffc82b">beast::detail::XXH64</a></div><div class="ttdeci">unsigned long long XXH64(const void *input, size_t len, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00511">xxhash.cpp:511</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a25f3c6d6c7ff9f497a76eb01ead658c2"><div class="ttname"><a href="namespacebeast_1_1detail.html#a25f3c6d6c7ff9f497a76eb01ead658c2">beast::detail::XXH32</a></div><div class="ttdeci">unsigned int XXH32(const void *input, size_t len, unsigned seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00368">xxhash.cpp:368</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_adf6aee195936f6582ee7b2adb4f60258"><div class="ttname"><a href="namespacebeast_1_1detail.html#adf6aee195936f6582ee7b2adb4f60258">beast::detail::XXH64_createState</a></div><div class="ttdeci">XXH64_state_t * XXH64_createState(void)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00598">xxhash.cpp:598</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_ab966aa3c3db5c80c832f2c41c32e4881"><div class="ttname"><a href="namespacebeast_1_1detail.html#ab966aa3c3db5c80c832f2c41c32e4881">beast::detail::XXH32_createState</a></div><div class="ttdeci">XXH32_state_t * XXH32_createState(void)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00582">xxhash.cpp:582</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a15cc8b5feb86235839a3c31e01ffc82b"><div class="ttname"><a href="namespacebeast_1_1detail.html#a15cc8b5feb86235839a3c31e01ffc82b">beast::detail::XXH64</a></div><div class="ttdeci">unsigned long long XXH64(const void *input, size_t len, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00519">xxhash.cpp:519</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1XXH64__state__t_html"><div class="ttname"><a href="structbeast_1_1detail_1_1XXH64__state__t.html">beast::detail::XXH64_state_t</a></div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8h_source.html#l00107">xxhash.h:107</a></div></div>
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00641">base_uint.h:641</a></div></div>
<!-- start footer part -->

View File

@@ -148,13 +148,13 @@ $(function() {
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacebeast_1_1detail_html_a1889d409556a3a9206ab77fdf7cb4bad"><div class="ttname"><a href="namespacebeast_1_1detail.html#a1889d409556a3a9206ab77fdf7cb4bad">beast::detail::XXH64_update</a></div><div class="ttdeci">XXH_errorcode XXH64_update(XXH64_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00891">xxhash.cpp:891</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a1889d409556a3a9206ab77fdf7cb4bad"><div class="ttname"><a href="namespacebeast_1_1detail.html#a1889d409556a3a9206ab77fdf7cb4bad">beast::detail::XXH64_update</a></div><div class="ttdeci">XXH_errorcode XXH64_update(XXH64_state_t *state_in, const void *input, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00899">xxhash.cpp:899</a></div></div>
<div class="ttc" id="aclassbeast_1_1xxhasher_html"><div class="ttname"><a href="classbeast_1_1xxhasher.html">beast::xxhasher</a></div><div class="ttdef"><b>Definition:</b> <a href="xxhasher_8h_source.html#l00030">xxhasher.h:30</a></div></div>
<div class="ttc" id="aclassbeast_1_1xxhasher_html_a27f44b10940831b67d76f60ef796d89d"><div class="ttname"><a href="classbeast_1_1xxhasher.html#a27f44b10940831b67d76f60ef796d89d">beast::xxhasher::xxhasher</a></div><div class="ttdeci">xxhasher() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="xxhasher_8h_source.html#l00043">xxhasher.h:43</a></div></div>
<div class="ttc" id="aclassbeast_1_1xxhasher_html_a5fbb2b4d1a32b8e7a481d5166225ff04"><div class="ttname"><a href="classbeast_1_1xxhasher.html#a5fbb2b4d1a32b8e7a481d5166225ff04">beast::xxhasher::state_</a></div><div class="ttdeci">detail::XXH64_state_t state_</div><div class="ttdef"><b>Definition:</b> <a href="xxhasher_8h_source.html#l00034">xxhasher.h:34</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_af9351de7641e84e52fcaa1c59ee2b7d6"><div class="ttname"><a href="namespacebeast_1_1detail.html#af9351de7641e84e52fcaa1c59ee2b7d6">beast::detail::XXH64_reset</a></div><div class="ttdeci">XXH_errorcode XXH64_reset(XXH64_state_t *state_in, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00622">xxhash.cpp:622</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_af9351de7641e84e52fcaa1c59ee2b7d6"><div class="ttname"><a href="namespacebeast_1_1detail.html#af9351de7641e84e52fcaa1c59ee2b7d6">beast::detail::XXH64_reset</a></div><div class="ttdeci">XXH_errorcode XXH64_reset(XXH64_state_t *state_in, unsigned long long seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00630">xxhash.cpp:630</a></div></div>
<div class="ttc" id="aenable_if_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a66c3f34661239aea8df7e193fa67880e"><div class="ttname"><a href="namespacebeast_1_1detail.html#a66c3f34661239aea8df7e193fa67880e">beast::detail::XXH64_digest</a></div><div class="ttdeci">unsigned long long XXH64_digest(const XXH64_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00985">xxhash.cpp:985</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a66c3f34661239aea8df7e193fa67880e"><div class="ttname"><a href="namespacebeast_1_1detail.html#a66c3f34661239aea8df7e193fa67880e">beast::detail::XXH64_digest</a></div><div class="ttdeci">unsigned long long XXH64_digest(const XXH64_state_t *state_in)</div><div class="ttdef"><b>Definition:</b> <a href="xxhash_8cpp_source.html#l00993">xxhash.cpp:993</a></div></div>
<div class="ttc" id="acstddef_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstddef.html">cstddef</a></div></div>
<div class="ttc" id="aclassbeast_1_1xxhasher_html_a4e744e54951665e9c1c39ec4e143ec2c"><div class="ttname"><a href="classbeast_1_1xxhasher.html#a4e744e54951665e9c1c39ec4e143ec2c">beast::xxhasher::xxhasher</a></div><div class="ttdeci">xxhasher(Seed seed, Seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhasher_8h_source.html#l00059">xxhasher.h:59</a></div></div>
<div class="ttc" id="aclassbeast_1_1xxhasher_html_aedcac8f2c4494df24e9e45e8970cef25"><div class="ttname"><a href="classbeast_1_1xxhasher.html#aedcac8f2c4494df24e9e45e8970cef25">beast::xxhasher::xxhasher</a></div><div class="ttdeci">xxhasher(Seed seed)</div><div class="ttdef"><b>Definition:</b> <a href="xxhasher_8h_source.html#l00051">xxhasher.h:51</a></div></div>