mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-03 13:35:25 +00:00
429 lines
76 KiB
HTML
429 lines
76 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: LockFreeStack.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_31b47b71b675f5c4d1b67be42516b2a9.html">beast</a></li><li class="navelem"><a class="el" href="dir_30e11735e16a3b00e221b0ee7bbd62ba.html">core</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">LockFreeStack.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef BEAST_INTRUSIVE_LOCKFREESTACK_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define BEAST_INTRUSIVE_LOCKFREESTACK_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a>></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/iterator.html">iterator</a>></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacebeast.html">beast</a> {</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">template</span> <<span class="keyword">class</span> Container, <span class="keywordtype">bool</span> IsConst></div>
|
|
<div class="foldopen" id="foldopen00013" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html"> 13</a></span><span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>{</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">protected</span>:</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a4c903f93e751aa8e3adc383e70789d98"> 16</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a4c903f93e751aa8e3adc383e70789d98">Node</a> = <span class="keyword">typename</span> Container::Node;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9"> 17</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a> = <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional<IsConst, Node const*, Node*>::type</a>;</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a397c3782964c102b72cbf4a798cb98b9"> 20</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_tags.html">iterator_category</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_tags.html">std::forward_iterator_tag</a>;</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a71586033c2d5693fc12713552f2fe500"> 21</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a71586033c2d5693fc12713552f2fe500">value_type</a> = <span class="keyword">typename</span> Container::value_type;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#ace9865681ddc94e3f7c3611dc13d255b"> 22</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#ace9865681ddc94e3f7c3611dc13d255b">difference_type</a> = <span class="keyword">typename</span> Container::difference_type;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a60cc2b8adebf13e92da8988865033c84"> 23</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a60cc2b8adebf13e92da8988865033c84">pointer</a> =</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional<IsConst, typename Container::const_pointer, typename Container::pointer>::type</a>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#af3601906e5b2b2ab94a845393127ec43"> 25</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#af3601906e5b2b2ab94a845393127ec43">reference</a> =</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional<IsConst, typename Container::const_reference, typename Container::reference>::type</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="foldopen" id="foldopen00028" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a86e9d1a3e8009b5cdf60ad13c76b71b1"> 28</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a86e9d1a3e8009b5cdf60ad13c76b71b1">LockFreeStackIterator</a>() : <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>()</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> {</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="foldopen" id="foldopen00032" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a7138d8c32be5aec3a58424781729899a"> 32</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a7138d8c32be5aec3a58424781729899a">LockFreeStackIterator</a>(<a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>) : <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>(<a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>)</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> {</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">template</span> <<span class="keywordtype">bool</span> OtherIsConst></div>
|
|
<div class="foldopen" id="foldopen00037" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a68d3cb20385897b30e0cd7ee7955ac84"> 37</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a68d3cb20385897b30e0cd7ee7955ac84">LockFreeStackIterator</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, OtherIsConst></a> <span class="keyword">const</span>& other) : <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>(other.<a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>)</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a>&</div>
|
|
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a598b300c29df5b75c631ec3ed84b6f20"> 42</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a598b300c29df5b75c631ec3ed84b6f20">operator=</a>(<a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>)</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> {</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a> = <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>;</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a>&<span class="keyword">></span>(*this);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a>&</div>
|
|
<div class="foldopen" id="foldopen00049" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a48c64e69b16c576cd19c360327da2a72"> 49</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a48c64e69b16c576cd19c360327da2a72">operator++</a>()</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> {</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a> = <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>->m_next.load();</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a>&<span class="keyword">></span>(*this);</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a></div>
|
|
<div class="foldopen" id="foldopen00056" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#ad1efff137c3923348f763a4baa8e5217"> 56</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#ad1efff137c3923348f763a4baa8e5217">operator++</a>(<span class="keywordtype">int</span>)</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a> result(*<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a> = <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>->m_next;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a></div>
|
|
<div class="foldopen" id="foldopen00064" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0"> 64</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#af3601906e5b2b2ab94a845393127ec43">reference</a></div>
|
|
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a16802f0770636c97a6097186ec05cb56"> 70</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a16802f0770636c97a6097186ec05cb56">operator*</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> *this-><a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a0d0fc849d51d5819f2130d53c4b03652">operator-></a>();</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a60cc2b8adebf13e92da8988865033c84">pointer</a></div>
|
|
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a0d0fc849d51d5819f2130d53c4b03652"> 76</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a0d0fc849d51d5819f2130d53c4b03652">operator-></a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a60cc2b8adebf13e92da8988865033c84">pointer</a><span class="keyword">></span>(<a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>);</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7"> 82</a></span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a> <a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>;</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="keyword">template</span> <<span class="keyword">class</span> Container, <span class="keywordtype">bool</span> LhsIsConst, <span class="keywordtype">bool</span> RhsIsConst></div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00089" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="namespacebeast.html#abe39345843815f6a125b8679bf0896f6"> 89</a></span><a class="code hl_function" href="namespacebeast.html#abe39345843815f6a125b8679bf0896f6">operator==</a>(</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, LhsIsConst></a> <span class="keyword">const</span>& lhs,</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, RhsIsConst></a> <span class="keyword">const</span>& rhs)</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>{</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> lhs.<a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>() == rhs.<a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>();</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="keyword">template</span> <<span class="keyword">class</span> Container, <span class="keywordtype">bool</span> LhsIsConst, <span class="keywordtype">bool</span> RhsIsConst></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00098" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="namespacebeast.html#abf1fc3e5efef3302b3037704024a2cce"> 98</a></span><a class="code hl_function" href="namespacebeast.html#abf1fc3e5efef3302b3037704024a2cce">operator!=</a>(</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, LhsIsConst></a> <span class="keyword">const</span>& lhs,</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, RhsIsConst></a> <span class="keyword">const</span>& rhs)</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span>{</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">return</span> lhs.<a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>() != rhs.<a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>();</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span><span class="keyword">template</span> <<span class="keyword">class</span> Element, <span class="keyword">class</span> Tag = <span class="keywordtype">void</span>></div>
|
|
<div class="foldopen" id="foldopen00120" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html"> 120</a></span><span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a></div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span>{</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span><span class="keyword">public</span>:</div>
|
|
<div class="foldopen" id="foldopen00123" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html"> 123</a></span> <span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> {</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">public</span>:</div>
|
|
<div class="foldopen" id="foldopen00126" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a96b59df310b2fb5b570e870271c772b9"> 126</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack_1_1Node.html#a96b59df310b2fb5b570e870271c772b9">Node</a>() : <a class="code hl_variable" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">m_next</a>(nullptr)</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> {</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
|
|
<div class="foldopen" id="foldopen00130" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a39cd13745172d5cb7509570ab1520c44"> 130</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classbeast_1_1LockFreeStack_1_1Node.html#a39cd13745172d5cb7509570ab1520c44">Node</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* next) : <a class="code hl_variable" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">m_next</a>(next)</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> {</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a1951a10a266ff7ba75382704f420565a"> 134</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack_1_1Node.html#a1951a10a266ff7ba75382704f420565a">Node</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>&</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a7f199497c42f9ea2c4791bc67023b38c"> 136</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack_1_1Node.html#a7f199497c42f9ea2c4791bc67023b38c">operator=</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a86a1850447a15181cc2ff8515deef9a0"> 139</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a>;</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">template</span> <<span class="keyword">class</span> Container, <span class="keywordtype">bool</span> IsConst></div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#adb4cafe474ee3e3549c8d29ded9970b1"> 142</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a>;</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716"> 144</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic<Node*></a> <a class="code hl_variable" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">m_next</a>;</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a1e2bf8329b989a61a93798398dd915df"> 148</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a1e2bf8329b989a61a93798398dd915df">value_type</a> = Element;</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a54a6e87c5584596b73c7e4794073d124"> 149</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a54a6e87c5584596b73c7e4794073d124">pointer</a> = Element*;</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a69d547559317ce53da3d193e27cd68be"> 150</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a69d547559317ce53da3d193e27cd68be">reference</a> = Element&;</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ab1c9f40e6c35c2384a880b0e14a0aa0d"> 151</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#ab1c9f40e6c35c2384a880b0e14a0aa0d">const_pointer</a> = Element <span class="keyword">const</span>*;</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ac208bf5e265cf6e499c2431f529c7f02"> 152</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#ac208bf5e265cf6e499c2431f529c7f02">const_reference</a> = Element <span class="keyword">const</span>&;</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ac61f4f5b0dc1bc269337f70e0460f061"> 153</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">size_type</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>;</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#acc69aefb629e0761668a99569c397d8e"> 154</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/ptrdiff_t.html">difference_type</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/ptrdiff_t.html">std::ptrdiff_t</a>;</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2"> 155</a></span> <span class="keyword">using </span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">iterator</a> = <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<LockFreeStack<Element, Tag></a>, <span class="keyword">false</span>>;</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396"> 156</a></span> <span class="keyword">using </span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">const_iterator</a> = <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<LockFreeStack<Element, Tag></a>, <span class="keyword">true</span>>;</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a883b67af0ed5272cf0fb0ed5a979f7e4"> 158</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a883b67af0ed5272cf0fb0ed5a979f7e4">LockFreeStack</a>() : <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>(nullptr), <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>(&<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>)</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> {</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a77913f72115155984e9341190bfc7310"> 162</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a77913f72115155984e9341190bfc7310">LockFreeStack</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a>&</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a8d1a7d955ce61d2ac17ba991c88c7e80"> 164</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a8d1a7d955ce61d2ac17ba991c88c7e80">operator=</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00168" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a856b461e4633192bae17a04906243e1b"> 168</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a856b461e4633192bae17a04906243e1b">empty</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load() == &<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>;</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="comment">// VFALCO NOTE Fix this, shouldn't it be a reference like intrusive list?</span></div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00186" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a20607ac776197f6e80db524e13737750"> 186</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a20607ac776197f6e80db524e13737750">push_front</a>(<a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* node)</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> {</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordtype">bool</span> first;</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* old_head = <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_relaxed</a>);</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">do</span></div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> {</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> first = (old_head == &<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>);</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> node-><a class="code hl_variable" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">m_next</a> = old_head;</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> } <span class="keywordflow">while</span> (!<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.compare_exchange_strong(old_head, node, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_release</a>, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_relaxed</a>));</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="keywordflow">return</span> first;</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
|
|
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> Element*</div>
|
|
<div class="foldopen" id="foldopen00208" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a62e709bb5c7bec338ffbf32585a7137c"> 208</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a62e709bb5c7bec338ffbf32585a7137c">pop_front</a>()</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> {</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* node = <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load();</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* new_head;</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keywordflow">do</span></div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> {</div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">if</span> (node == &<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>)</div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> new_head = node-><a class="code hl_variable" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">m_next</a>.load();</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> } <span class="keywordflow">while</span> (!<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.compare_exchange_strong(node, new_head, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_release</a>, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_relaxed</a>));</div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>Element*<span class="keyword">></span>(node);</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> </div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a></div>
|
|
<div class="foldopen" id="foldopen00229" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a5e135680d24783ba57f13792d0a09f9e"> 229</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a5e135680d24783ba57f13792d0a09f9e">begin</a>()</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> {</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a>(<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load());</div>
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> </div>
|
|
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a></div>
|
|
<div class="foldopen" id="foldopen00235" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ab8804f35965a95c9b5725491b5233a99"> 235</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#ab8804f35965a95c9b5725491b5233a99">end</a>()</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> {</div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a>(&<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>);</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00241" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ae066bdacd20a6f4f178fbcf25384f30f"> 241</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#ae066bdacd20a6f4f178fbcf25384f30f">begin</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a>(<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load());</div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> </div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00247" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#afae6af9923558333036a80dd1b01a2c8"> 247</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#afae6af9923558333036a80dd1b01a2c8">end</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a>(&<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>);</div>
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> </div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00253" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a5e0d6da45e9fe049347962d309204314"> 253</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a5e0d6da45e9fe049347962d309204314">cbegin</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a>(<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.load());</div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00259" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a05f4144c95b980440fa49b2e24dfddc2"> 259</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a05f4144c95b980440fa49b2e24dfddc2">cend</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a>(&<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>);</div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b"> 266</a></span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a> <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>;</div>
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de"> 267</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic<Node*></a> <a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>;</div>
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span>} <span class="comment">// namespace beast</span></div>
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> </div>
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span><span class="preprocessor">#endif</span></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="aclassbeast_1_1LockFreeStackIterator_html"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html">beast::LockFreeStackIterator</a></div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00013">LockFreeStack.h:14</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a0d0fc849d51d5819f2130d53c4b03652"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a0d0fc849d51d5819f2130d53c4b03652">beast::LockFreeStackIterator::operator-></a></div><div class="ttdeci">pointer operator->() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00076">LockFreeStack.h:76</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a16802f0770636c97a6097186ec05cb56"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a16802f0770636c97a6097186ec05cb56">beast::LockFreeStackIterator::operator*</a></div><div class="ttdeci">reference operator*() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00070">LockFreeStack.h:70</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a3079ca04d830f950c5c5eb743fecf6a0"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">beast::LockFreeStackIterator::node</a></div><div class="ttdeci">NodePtr node() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00064">LockFreeStack.h:64</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a48c64e69b16c576cd19c360327da2a72"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a48c64e69b16c576cd19c360327da2a72">beast::LockFreeStackIterator::operator++</a></div><div class="ttdeci">LockFreeStackIterator & operator++()</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00049">LockFreeStack.h:49</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a4c903f93e751aa8e3adc383e70789d98"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a4c903f93e751aa8e3adc383e70789d98">beast::LockFreeStackIterator::Node</a></div><div class="ttdeci">typename Container::Node Node</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00016">LockFreeStack.h:16</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a598b300c29df5b75c631ec3ed84b6f20"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a598b300c29df5b75c631ec3ed84b6f20">beast::LockFreeStackIterator::operator=</a></div><div class="ttdeci">LockFreeStackIterator & operator=(NodePtr node)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00042">LockFreeStack.h:42</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a60cc2b8adebf13e92da8988865033c84"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a60cc2b8adebf13e92da8988865033c84">beast::LockFreeStackIterator::pointer</a></div><div class="ttdeci">typename std::conditional< IsConst, typename Container::const_pointer, typename Container::pointer >::type pointer</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00023">LockFreeStack.h:24</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a68d3cb20385897b30e0cd7ee7955ac84"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a68d3cb20385897b30e0cd7ee7955ac84">beast::LockFreeStackIterator::LockFreeStackIterator</a></div><div class="ttdeci">LockFreeStackIterator(LockFreeStackIterator< Container, OtherIsConst > const &other)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00037">LockFreeStack.h:37</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a7138d8c32be5aec3a58424781729899a"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a7138d8c32be5aec3a58424781729899a">beast::LockFreeStackIterator::LockFreeStackIterator</a></div><div class="ttdeci">LockFreeStackIterator(NodePtr node)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00032">LockFreeStack.h:32</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a71586033c2d5693fc12713552f2fe500"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a71586033c2d5693fc12713552f2fe500">beast::LockFreeStackIterator::value_type</a></div><div class="ttdeci">typename Container::value_type value_type</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00021">LockFreeStack.h:21</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a74d7ae60355818298215ffe2309882c9"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">beast::LockFreeStackIterator::NodePtr</a></div><div class="ttdeci">typename std::conditional< IsConst, Node const *, Node * >::type NodePtr</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00017">LockFreeStack.h:17</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a86e9d1a3e8009b5cdf60ad13c76b71b1"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a86e9d1a3e8009b5cdf60ad13c76b71b1">beast::LockFreeStackIterator::LockFreeStackIterator</a></div><div class="ttdeci">LockFreeStackIterator()</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00028">LockFreeStack.h:28</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_a91d783ec393f95da7dd2610e6fec0ba7"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">beast::LockFreeStackIterator::m_node</a></div><div class="ttdeci">NodePtr m_node</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00082">LockFreeStack.h:82</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_ace9865681ddc94e3f7c3611dc13d255b"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#ace9865681ddc94e3f7c3611dc13d255b">beast::LockFreeStackIterator::difference_type</a></div><div class="ttdeci">typename Container::difference_type difference_type</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00022">LockFreeStack.h:22</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_ad1efff137c3923348f763a4baa8e5217"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#ad1efff137c3923348f763a4baa8e5217">beast::LockFreeStackIterator::operator++</a></div><div class="ttdeci">LockFreeStackIterator operator++(int)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00056">LockFreeStack.h:56</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_af3601906e5b2b2ab94a845393127ec43"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#af3601906e5b2b2ab94a845393127ec43">beast::LockFreeStackIterator::reference</a></div><div class="ttdeci">typename std::conditional< IsConst, typename Container::const_reference, typename Container::reference >::type reference</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00025">LockFreeStack.h:26</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html">beast::LockFreeStack::Node</a></div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00123">LockFreeStack.h:124</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html_a1951a10a266ff7ba75382704f420565a"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html#a1951a10a266ff7ba75382704f420565a">beast::LockFreeStack::Node::Node</a></div><div class="ttdeci">Node(Node const &)=delete</div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html_a39cd13745172d5cb7509570ab1520c44"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html#a39cd13745172d5cb7509570ab1520c44">beast::LockFreeStack::Node::Node</a></div><div class="ttdeci">Node(Node *next)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00130">LockFreeStack.h:130</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html_a7f199497c42f9ea2c4791bc67023b38c"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html#a7f199497c42f9ea2c4791bc67023b38c">beast::LockFreeStack::Node::operator=</a></div><div class="ttdeci">Node & operator=(Node const &)=delete</div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html_a96b59df310b2fb5b570e870271c772b9"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html#a96b59df310b2fb5b570e870271c772b9">beast::LockFreeStack::Node::Node</a></div><div class="ttdeci">Node()</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00126">LockFreeStack.h:126</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_1_1Node_html_ad22a1b7dfd0b06904624e1ccac666716"><div class="ttname"><a href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716">beast::LockFreeStack::Node::m_next</a></div><div class="ttdeci">std::atomic< Node * > m_next</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00144">LockFreeStack.h:144</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html">beast::LockFreeStack</a></div><div class="ttdoc">Multiple Producer, Multiple Consumer (MPMC) intrusive stack.</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00120">LockFreeStack.h:121</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a05f4144c95b980440fa49b2e24dfddc2"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a05f4144c95b980440fa49b2e24dfddc2">beast::LockFreeStack::cend</a></div><div class="ttdeci">const_iterator cend() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00259">LockFreeStack.h:259</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a1e2bf8329b989a61a93798398dd915df"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a1e2bf8329b989a61a93798398dd915df">beast::LockFreeStack::value_type</a></div><div class="ttdeci">Element value_type</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00148">LockFreeStack.h:148</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a20607ac776197f6e80db524e13737750"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a20607ac776197f6e80db524e13737750">beast::LockFreeStack::push_front</a></div><div class="ttdeci">bool push_front(Node *node)</div><div class="ttdoc">Push a node onto the stack.</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00186">LockFreeStack.h:186</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a44788dc656182b46ee0e9bf534eec4c2"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">beast::LockFreeStack::iterator</a></div><div class="ttdeci">LockFreeStackIterator< LockFreeStack< Element, Tag >, false > iterator</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00155">LockFreeStack.h:155</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a54a6e87c5584596b73c7e4794073d124"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a54a6e87c5584596b73c7e4794073d124">beast::LockFreeStack::pointer</a></div><div class="ttdeci">Element * pointer</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00149">LockFreeStack.h:149</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a5e0d6da45e9fe049347962d309204314"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a5e0d6da45e9fe049347962d309204314">beast::LockFreeStack::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00253">LockFreeStack.h:253</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a5e135680d24783ba57f13792d0a09f9e"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a5e135680d24783ba57f13792d0a09f9e">beast::LockFreeStack::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdoc">Return a forward iterator to the beginning or end of the stack.</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00229">LockFreeStack.h:229</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a62e709bb5c7bec338ffbf32585a7137c"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a62e709bb5c7bec338ffbf32585a7137c">beast::LockFreeStack::pop_front</a></div><div class="ttdeci">Element * pop_front()</div><div class="ttdoc">Pop an element off the stack.</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00208">LockFreeStack.h:208</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a69d547559317ce53da3d193e27cd68be"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a69d547559317ce53da3d193e27cd68be">beast::LockFreeStack::reference</a></div><div class="ttdeci">Element & reference</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00150">LockFreeStack.h:150</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a77913f72115155984e9341190bfc7310"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a77913f72115155984e9341190bfc7310">beast::LockFreeStack::LockFreeStack</a></div><div class="ttdeci">LockFreeStack(LockFreeStack const &)=delete</div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a856b461e4633192bae17a04906243e1b"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a856b461e4633192bae17a04906243e1b">beast::LockFreeStack::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if the stack is empty.</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00168">LockFreeStack.h:168</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a883b67af0ed5272cf0fb0ed5a979f7e4"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a883b67af0ed5272cf0fb0ed5a979f7e4">beast::LockFreeStack::LockFreeStack</a></div><div class="ttdeci">LockFreeStack()</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00158">LockFreeStack.h:158</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_a8d1a7d955ce61d2ac17ba991c88c7e80"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#a8d1a7d955ce61d2ac17ba991c88c7e80">beast::LockFreeStack::operator=</a></div><div class="ttdeci">LockFreeStack & operator=(LockFreeStack const &)=delete</div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_ab1c9f40e6c35c2384a880b0e14a0aa0d"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#ab1c9f40e6c35c2384a880b0e14a0aa0d">beast::LockFreeStack::const_pointer</a></div><div class="ttdeci">Element const * const_pointer</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00151">LockFreeStack.h:151</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_ab8804f35965a95c9b5725491b5233a99"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#ab8804f35965a95c9b5725491b5233a99">beast::LockFreeStack::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00235">LockFreeStack.h:235</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_ac208bf5e265cf6e499c2431f529c7f02"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#ac208bf5e265cf6e499c2431f529c7f02">beast::LockFreeStack::const_reference</a></div><div class="ttdeci">Element const & const_reference</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00152">LockFreeStack.h:152</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_ae066bdacd20a6f4f178fbcf25384f30f"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#ae066bdacd20a6f4f178fbcf25384f30f">beast::LockFreeStack::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00241">LockFreeStack.h:241</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_ae85a67c34580718b970ddd6e6e464d1b"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">beast::LockFreeStack::m_end</a></div><div class="ttdeci">Node m_end</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00266">LockFreeStack.h:266</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_aef700416cc2ea924eb020e0be2ed63de"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">beast::LockFreeStack::m_head</a></div><div class="ttdeci">std::atomic< Node * > m_head</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00267">LockFreeStack.h:267</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_aefab617c271b247d871210e8c4142396"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">beast::LockFreeStack::const_iterator</a></div><div class="ttdeci">LockFreeStackIterator< LockFreeStack< Element, Tag >, true > const_iterator</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00156">LockFreeStack.h:156</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStack_html_afae6af9923558333036a80dd1b01a2c8"><div class="ttname"><a href="classbeast_1_1LockFreeStack.html#afae6af9923558333036a80dd1b01a2c8">beast::LockFreeStack::end</a></div><div class="ttdeci">const_iterator end() const</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00247">LockFreeStack.h:247</a></div></div>
|
|
<div class="ttc" id="aconditional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional</a></div></div>
|
|
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
|
<div class="ttc" id="aiterator_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/iterator.html">iterator</a></div></div>
|
|
<div class="ttc" id="aiterator_tags_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/iterator_tags.html">std::forward_iterator_tag</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#l00638">base_uint.h:638</a></div></div>
|
|
<div class="ttc" id="anamespacebeast_html_abe39345843815f6a125b8679bf0896f6"><div class="ttname"><a href="namespacebeast.html#abe39345843815f6a125b8679bf0896f6">beast::operator==</a></div><div class="ttdeci">bool operator==(LockFreeStackIterator< Container, LhsIsConst > const &lhs, LockFreeStackIterator< Container, RhsIsConst > const &rhs)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00089">LockFreeStack.h:89</a></div></div>
|
|
<div class="ttc" id="anamespacebeast_html_abf1fc3e5efef3302b3037704024a2cce"><div class="ttname"><a href="namespacebeast.html#abf1fc3e5efef3302b3037704024a2cce">beast::operator!=</a></div><div class="ttdeci">bool operator!=(LockFreeStackIterator< Container, LhsIsConst > const &lhs, LockFreeStackIterator< Container, RhsIsConst > const &rhs)</div><div class="ttdef"><b>Definition</b> <a href="LockFreeStack_8h_source.html#l00098">LockFreeStack.h:98</a></div></div>
|
|
<div class="ttc" id="aptrdiff_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/ptrdiff_t.html">std::ptrdiff_t</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="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|