mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
445 lines
78 KiB
HTML
445 lines
78 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> =</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <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="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a397c3782964c102b72cbf4a798cb98b9"> 21</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="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a71586033c2d5693fc12713552f2fe500"> 22</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="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#ace9865681ddc94e3f7c3611dc13d255b"> 23</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="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a505378c41e90579c85b28853a1bf1e6b"> 24</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a505378c41e90579c85b28853a1bf1e6b">pointer</a> = <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional</a><</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> IsConst,</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">typename</span> Container::const_pointer,</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">typename</span> Container::pointer>::type;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#acfde7183f21f3777c239d127543aef22"> 28</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#acfde7183f21f3777c239d127543aef22">reference</a> = <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/conditional.html">std::conditional</a><</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> IsConst,</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">typename</span> Container::const_reference,</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">typename</span> Container::reference>::type;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="foldopen" id="foldopen00033" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a86e9d1a3e8009b5cdf60ad13c76b71b1"> 33</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="l00034" name="l00034"></a><span class="lineno"> 34</span> {</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </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#a7138d8c32be5aec3a58424781729899a"> 37</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="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> <span class="keyword">template</span> <<span class="keywordtype">bool</span> OtherIsConst></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#a68d3cb20385897b30e0cd7ee7955ac84"> 42</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a68d3cb20385897b30e0cd7ee7955ac84">LockFreeStackIterator</a>(</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator<Container, OtherIsConst></a> <span class="keyword">const</span>& other)</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>(other.<a class="code hl_variable" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7">m_node</a>)</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> {</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#a598b300c29df5b75c631ec3ed84b6f20"> 49</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="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_function" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0">node</a>;</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#a48c64e69b16c576cd19c360327da2a72"> 56</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStackIterator.html#a48c64e69b16c576cd19c360327da2a72">operator++</a>()</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_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="l00059" name="l00059"></a><span class="lineno"> 59</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="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">LockFreeStackIterator</a></div>
|
|
<div class="foldopen" id="foldopen00063" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#ad1efff137c3923348f763a4baa8e5217"> 63</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="l00064" name="l00064"></a><span class="lineno"> 64</span> {</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</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="l00066" name="l00066"></a><span class="lineno"> 66</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="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a74d7ae60355818298215ffe2309882c9">NodePtr</a></div>
|
|
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a3079ca04d830f950c5c5eb743fecf6a0"> 71</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="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</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="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#acfde7183f21f3777c239d127543aef22">reference</a></div>
|
|
<div class="foldopen" id="foldopen00077" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a16802f0770636c97a6097186ec05cb56"> 77</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="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</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="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a505378c41e90579c85b28853a1bf1e6b">pointer</a></div>
|
|
<div class="foldopen" id="foldopen00083" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a0d0fc849d51d5819f2130d53c4b03652"> 83</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="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classbeast_1_1LockFreeStackIterator.html#a505378c41e90579c85b28853a1bf1e6b">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="l00086" name="l00086"></a><span class="lineno"> 86</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStackIterator.html#a91d783ec393f95da7dd2610e6fec0ba7"> 89</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="l00090" name="l00090"></a><span class="lineno"> 90</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</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="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00096" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="namespacebeast.html#abe39345843815f6a125b8679bf0896f6"> 96</a></span><a class="code hl_function" href="namespacebeast.html#abe39345843815f6a125b8679bf0896f6">operator==</a>(</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</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="l00098" name="l00098"></a><span class="lineno"> 98</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="l00099" name="l00099"></a><span class="lineno"> 99</span>{</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</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="l00101" name="l00101"></a><span class="lineno"> 101</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</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="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00105" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="namespacebeast.html#abf1fc3e5efef3302b3037704024a2cce"> 105</a></span><a class="code hl_function" href="namespacebeast.html#abf1fc3e5efef3302b3037704024a2cce">operator!=</a>(</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</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="l00107" name="l00107"></a><span class="lineno"> 107</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="l00108" name="l00108"></a><span class="lineno"> 108</span>{</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</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="l00110" name="l00110"></a><span class="lineno"> 110</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</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="foldopen00127" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html"> 127</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="l00128" name="l00128"></a><span class="lineno"> 128</span>{</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span><span class="keyword">public</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"> 130</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="l00131" name="l00131"></a><span class="lineno"> 131</span> {</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">public</span>:</div>
|
|
<div class="foldopen" id="foldopen00133" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a96b59df310b2fb5b570e870271c772b9"> 133</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="l00134" name="l00134"></a><span class="lineno"> 134</span> {</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
|
|
<div class="foldopen" id="foldopen00137" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a39cd13745172d5cb7509570ab1520c44"> 137</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="l00138" name="l00138"></a><span class="lineno"> 138</span> {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> }</div>
|
|
</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"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a1951a10a266ff7ba75382704f420565a"> 141</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="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>&</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a7f199497c42f9ea2c4791bc67023b38c"> 143</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="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#a86a1850447a15181cc2ff8515deef9a0"> 146</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="l00147" name="l00147"></a><span class="lineno"> 147</span> </div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">template</span> <<span class="keyword">class</span> Container, <span class="keywordtype">bool</span> IsConst></div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#adb4cafe474ee3e3549c8d29ded9970b1"> 149</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="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack_1_1Node.html#ad22a1b7dfd0b06904624e1ccac666716"> 151</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="l00152" name="l00152"></a><span class="lineno"> 152</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a1e2bf8329b989a61a93798398dd915df"> 155</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="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a54a6e87c5584596b73c7e4794073d124"> 156</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="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a69d547559317ce53da3d193e27cd68be"> 157</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="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ab1c9f40e6c35c2384a880b0e14a0aa0d"> 158</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="l00159" name="l00159"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ac208bf5e265cf6e499c2431f529c7f02"> 159</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="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ac61f4f5b0dc1bc269337f70e0460f061"> 160</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="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#acc69aefb629e0761668a99569c397d8e"> 161</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="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2"> 162</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="l00163" name="l00163"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396"> 163</a></span> <span class="keyword">using </span><a class="code hl_class" href="classbeast_1_1LockFreeStackIterator.html">const_iterator</a> =</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <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="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="foldopen" id="foldopen00166" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a883b67af0ed5272cf0fb0ed5a979f7e4"> 166</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="l00167" name="l00167"></a><span class="lineno"> 167</span> {</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a77913f72115155984e9341190bfc7310"> 170</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="l00171" name="l00171"></a><span class="lineno"> 171</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack.html">LockFreeStack</a>&</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a8d1a7d955ce61d2ac17ba991c88c7e80"> 172</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="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00176" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a856b461e4633192bae17a04906243e1b"> 176</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="l00177" name="l00177"></a><span class="lineno"> 177</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</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="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="comment">// VFALCO NOTE Fix this, shouldn't it be a reference like intrusive list?</span></div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00194" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a20607ac776197f6e80db524e13737750"> 194</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="l00195" name="l00195"></a><span class="lineno"> 195</span> {</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordtype">bool</span> first;</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</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="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">do</span></div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> {</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> first = (old_head == &<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b">m_end</a>);</div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</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="l00202" name="l00202"></a><span class="lineno"> 202</span> } <span class="keywordflow">while</span> (!<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.compare_exchange_strong(</div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> old_head,</div>
|
|
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> node,</div>
|
|
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_release</a>,</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <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="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordflow">return</span> first;</div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> </div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> Element*</div>
|
|
<div class="foldopen" id="foldopen00220" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a62e709bb5c7bec338ffbf32585a7137c"> 220</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a62e709bb5c7bec338ffbf32585a7137c">pop_front</a>()</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> {</div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</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="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_class" href="classbeast_1_1LockFreeStack_1_1Node.html">Node</a>* new_head;</div>
|
|
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <span class="keywordflow">do</span></div>
|
|
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> {</div>
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</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="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</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="l00229" name="l00229"></a><span class="lineno"> 229</span> } <span class="keywordflow">while</span> (!<a class="code hl_variable" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de">m_head</a>.compare_exchange_strong(</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> node,</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> new_head,</div>
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::memory_order_release</a>,</div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <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="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>Element*<span class="keyword">></span>(node);</div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a></div>
|
|
<div class="foldopen" id="foldopen00245" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a5e135680d24783ba57f13792d0a09f9e"> 245</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#a5e135680d24783ba57f13792d0a09f9e">begin</a>()</div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> {</div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</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="l00248" name="l00248"></a><span class="lineno"> 248</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#a44788dc656182b46ee0e9bf534eec4c2">iterator</a></div>
|
|
<div class="foldopen" id="foldopen00251" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ab8804f35965a95c9b5725491b5233a99"> 251</a></span> <a class="code hl_function" href="classbeast_1_1LockFreeStack.html#ab8804f35965a95c9b5725491b5233a99">end</a>()</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> {</div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</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="l00254" name="l00254"></a><span class="lineno"> 254</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00257" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ae066bdacd20a6f4f178fbcf25384f30f"> 257</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="l00258" name="l00258"></a><span class="lineno"> 258</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</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="l00260" name="l00260"></a><span class="lineno"> 260</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00263" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#afae6af9923558333036a80dd1b01a2c8"> 263</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="l00264" name="l00264"></a><span class="lineno"> 264</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</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="l00266" name="l00266"></a><span class="lineno"> 266</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00269" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a5e0d6da45e9fe049347962d309204314"> 269</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="l00270" name="l00270"></a><span class="lineno"> 270</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</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="l00272" name="l00272"></a><span class="lineno"> 272</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> </div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <a class="code hl_typedef" href="classbeast_1_1LockFreeStack.html#aefab617c271b247d871210e8c4142396">const_iterator</a></div>
|
|
<div class="foldopen" id="foldopen00275" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#a05f4144c95b980440fa49b2e24dfddc2"> 275</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="l00276" name="l00276"></a><span class="lineno"> 276</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</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="l00278" name="l00278"></a><span class="lineno"> 278</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#ae85a67c34580718b970ddd6e6e464d1b"> 282</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="l00283" name="l00283"></a><span class="lineno"><a class="line" href="classbeast_1_1LockFreeStack.html#aef700416cc2ea924eb020e0be2ed63de"> 283</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="l00284" name="l00284"></a><span class="lineno"> 284</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> </div>
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span>} <span class="comment">// namespace beast</span></div>
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</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#l00083">LockFreeStack.h:83</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#l00077">LockFreeStack.h:77</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#l00071">LockFreeStack.h:71</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#l00056">LockFreeStack.h:56</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_a505378c41e90579c85b28853a1bf1e6b"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#a505378c41e90579c85b28853a1bf1e6b">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#l00024">LockFreeStack.h:27</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#l00049">LockFreeStack.h:49</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#l00042">LockFreeStack.h:42</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#l00037">LockFreeStack.h:37</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#l00022">LockFreeStack.h:22</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:18</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#l00033">LockFreeStack.h:33</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#l00089">LockFreeStack.h:89</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#l00023">LockFreeStack.h:23</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1LockFreeStackIterator_html_acfde7183f21f3777c239d127543aef22"><div class="ttname"><a href="classbeast_1_1LockFreeStackIterator.html#acfde7183f21f3777c239d127543aef22">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#l00028">LockFreeStack.h:31</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#l00063">LockFreeStack.h:63</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#l00130">LockFreeStack.h:131</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#l00137">LockFreeStack.h:137</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#l00133">LockFreeStack.h:133</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#l00151">LockFreeStack.h:151</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#l00127">LockFreeStack.h:128</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#l00275">LockFreeStack.h:275</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#l00155">LockFreeStack.h:155</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#l00194">LockFreeStack.h:194</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#l00162">LockFreeStack.h:162</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#l00156">LockFreeStack.h:156</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#l00269">LockFreeStack.h:269</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#l00245">LockFreeStack.h:245</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#l00220">LockFreeStack.h:220</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#l00157">LockFreeStack.h:157</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#l00176">LockFreeStack.h:176</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#l00166">LockFreeStack.h:166</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#l00158">LockFreeStack.h:158</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#l00251">LockFreeStack.h:251</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#l00159">LockFreeStack.h:159</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#l00257">LockFreeStack.h:257</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#l00282">LockFreeStack.h:282</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#l00283">LockFreeStack.h:283</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#l00163">LockFreeStack.h:164</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#l00263">LockFreeStack.h:263</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#l00653">base_uint.h:653</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#l00096">LockFreeStack.h:96</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#l00105">LockFreeStack.h:105</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>
|