mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
1579 lines
90 KiB
HTML
1579 lines
90 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: beast::List< T, Tag > Class Template Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespacebeast.html">beast</a></li><li class="navelem"><a class="el" href="classbeast_1_1List.html">List</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-methods">Private Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classbeast_1_1List-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">beast::List< T, Tag > Class Template Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Intrusive doubly linked list.
|
|
<a href="classbeast_1_1List.html#details">More...</a></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for beast::List< T, Tag >:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classbeast_1_1List__coll__graph.png" border="0" usemap="#beast_1_1List_3_01T_00_01Tag_01_4_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="beast_1_1List_3_01T_00_01Tag_01_4_coll__map" id="beast_1_1List_3_01T_00_01Tag_01_4_coll__map">
|
|
<area shape="rect" title="Intrusive doubly linked list." alt="" coords="119,243,276,269"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="5,124,173,165"/>
|
|
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="5,5,173,47"/>
|
|
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="197,131,285,158"/>
|
|
</map>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:a9045c6eaf5485a33cc001e8845c47585"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> = typename <a class="el" href="classbeast_1_1detail_1_1ListNode.html">detail::ListNode</a>< T, Tag ></td></tr>
|
|
<tr class="separator:a9045c6eaf5485a33cc001e8845c47585"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a63a1df8d77a6a00b1d85b8211759761d"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> = T</td></tr>
|
|
<tr class="separator:a63a1df8d77a6a00b1d85b8211759761d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6d52273e032dce1d710c117727d92380"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a6d52273e032dce1d710c117727d92380">pointer</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> *</td></tr>
|
|
<tr class="separator:a6d52273e032dce1d710c117727d92380"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa1d0b5ae5080f6e15ef8b17a4278b9b3"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> &</td></tr>
|
|
<tr class="separator:aa1d0b5ae5080f6e15ef8b17a4278b9b3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a03164255795b93fe4fb59ec168e80d5d"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a03164255795b93fe4fb59ec168e80d5d">const_pointer</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> const *</td></tr>
|
|
<tr class="separator:a03164255795b93fe4fb59ec168e80d5d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac012e92c2402a063425bbaba5f333318"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> const &</td></tr>
|
|
<tr class="separator:ac012e92c2402a063425bbaba5f333318"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0c93009b264caa80fbdb4269d1c0ad4e"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></td></tr>
|
|
<tr class="separator:a0c93009b264caa80fbdb4269d1c0ad4e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a868d9d7a9879ff1ac34bf24c33308691"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a868d9d7a9879ff1ac34bf24c33308691">difference_type</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/types/ptrdiff_t.html">std::ptrdiff_t</a></td></tr>
|
|
<tr class="separator:a868d9d7a9879ff1ac34bf24c33308691"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a40627d0f3ad01d19dbd96caf06bbf65b"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> = <a class="el" href="classbeast_1_1detail_1_1ListIterator.html">detail::ListIterator</a>< <a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> ></td></tr>
|
|
<tr class="separator:a40627d0f3ad01d19dbd96caf06bbf65b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a07d23c110e136d8fdd57ae5472485e48"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> = <a class="el" href="classbeast_1_1detail_1_1ListIterator.html">detail::ListIterator</a>< <a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> const ></td></tr>
|
|
<tr class="separator:a07d23c110e136d8fdd57ae5472485e48"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ad90fd05ef9baf19fd67880f51276d7d9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ad90fd05ef9baf19fd67880f51276d7d9">List</a> ()</td></tr>
|
|
<tr class="memdesc:ad90fd05ef9baf19fd67880f51276d7d9"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty list. <a href="classbeast_1_1List.html#ad90fd05ef9baf19fd67880f51276d7d9">More...</a><br /></td></tr>
|
|
<tr class="separator:ad90fd05ef9baf19fd67880f51276d7d9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa7a1a8e254dbaf26a8af32dbdf20eff2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#aa7a1a8e254dbaf26a8af32dbdf20eff2">List</a> (<a class="el" href="classbeast_1_1List.html">List</a> const &)=delete</td></tr>
|
|
<tr class="separator:aa7a1a8e254dbaf26a8af32dbdf20eff2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a416adae20bef2608c399eed9985ee844"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html">List</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a416adae20bef2608c399eed9985ee844">operator=</a> (<a class="el" href="classbeast_1_1List.html">List</a> const &)=delete</td></tr>
|
|
<tr class="separator:a416adae20bef2608c399eed9985ee844"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9841a3b7bc7902d7f4e438978d464001"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a9841a3b7bc7902d7f4e438978d464001">empty</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a9841a3b7bc7902d7f4e438978d464001"><td class="mdescLeft"> </td><td class="mdescRight">Determine if the list is empty. <a href="classbeast_1_1List.html#a9841a3b7bc7902d7f4e438978d464001">More...</a><br /></td></tr>
|
|
<tr class="separator:a9841a3b7bc7902d7f4e438978d464001"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad1887824b8827b60b3c9fe7ccc09c130"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ad1887824b8827b60b3c9fe7ccc09c130">size</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:ad1887824b8827b60b3c9fe7ccc09c130"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of elements in the list. <a href="classbeast_1_1List.html#ad1887824b8827b60b3c9fe7ccc09c130">More...</a><br /></td></tr>
|
|
<tr class="separator:ad1887824b8827b60b3c9fe7ccc09c130"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1d46509c54405b5fe4558ff8f00db5f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a1d46509c54405b5fe4558ff8f00db5f3">front</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a1d46509c54405b5fe4558ff8f00db5f3"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a reference to the first element. <a href="classbeast_1_1List.html#a1d46509c54405b5fe4558ff8f00db5f3">More...</a><br /></td></tr>
|
|
<tr class="separator:a1d46509c54405b5fe4558ff8f00db5f3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a822463abd19c159b0811ed64e0e34ccd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a822463abd19c159b0811ed64e0e34ccd">front</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a822463abd19c159b0811ed64e0e34ccd"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const reference to the first element. <a href="classbeast_1_1List.html#a822463abd19c159b0811ed64e0e34ccd">More...</a><br /></td></tr>
|
|
<tr class="separator:a822463abd19c159b0811ed64e0e34ccd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a84edbf644909e6a377e432785da86a14"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a84edbf644909e6a377e432785da86a14">back</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a84edbf644909e6a377e432785da86a14"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a reference to the last element. <a href="classbeast_1_1List.html#a84edbf644909e6a377e432785da86a14">More...</a><br /></td></tr>
|
|
<tr class="separator:a84edbf644909e6a377e432785da86a14"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d41b13fa74a92c92fe2a1cc598e1bae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a3d41b13fa74a92c92fe2a1cc598e1bae">back</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a3d41b13fa74a92c92fe2a1cc598e1bae"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const reference to the last element. <a href="classbeast_1_1List.html#a3d41b13fa74a92c92fe2a1cc598e1bae">More...</a><br /></td></tr>
|
|
<tr class="separator:a3d41b13fa74a92c92fe2a1cc598e1bae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d3c19a2ea6aba941902adcc0c1a5a73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a2d3c19a2ea6aba941902adcc0c1a5a73">begin</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a2d3c19a2ea6aba941902adcc0c1a5a73"><td class="mdescLeft"> </td><td class="mdescRight">Obtain an iterator to the beginning of the list. <a href="classbeast_1_1List.html#a2d3c19a2ea6aba941902adcc0c1a5a73">More...</a><br /></td></tr>
|
|
<tr class="separator:a2d3c19a2ea6aba941902adcc0c1a5a73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1094a4aec90a0b2dac32e61fdc730b20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a1094a4aec90a0b2dac32e61fdc730b20">begin</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a1094a4aec90a0b2dac32e61fdc730b20"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const iterator to the beginning of the list. <a href="classbeast_1_1List.html#a1094a4aec90a0b2dac32e61fdc730b20">More...</a><br /></td></tr>
|
|
<tr class="separator:a1094a4aec90a0b2dac32e61fdc730b20"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad3ec5127cf5bd832781d3f827f7194ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ad3ec5127cf5bd832781d3f827f7194ad">cbegin</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:ad3ec5127cf5bd832781d3f827f7194ad"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const iterator to the beginning of the list. <a href="classbeast_1_1List.html#ad3ec5127cf5bd832781d3f827f7194ad">More...</a><br /></td></tr>
|
|
<tr class="separator:ad3ec5127cf5bd832781d3f827f7194ad"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a672d23adfca5d4a5e7c4443cf64a8a55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a672d23adfca5d4a5e7c4443cf64a8a55">end</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a672d23adfca5d4a5e7c4443cf64a8a55"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a iterator to the end of the list. <a href="classbeast_1_1List.html#a672d23adfca5d4a5e7c4443cf64a8a55">More...</a><br /></td></tr>
|
|
<tr class="separator:a672d23adfca5d4a5e7c4443cf64a8a55"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8c37d92977108ab93b57941fcb52e050"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a8c37d92977108ab93b57941fcb52e050">end</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a8c37d92977108ab93b57941fcb52e050"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const iterator to the end of the list. <a href="classbeast_1_1List.html#a8c37d92977108ab93b57941fcb52e050">More...</a><br /></td></tr>
|
|
<tr class="separator:a8c37d92977108ab93b57941fcb52e050"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a16c1ce8b06e47e2566355e039e666623"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a16c1ce8b06e47e2566355e039e666623">cend</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a16c1ce8b06e47e2566355e039e666623"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const iterator to the end of the list. <a href="classbeast_1_1List.html#a16c1ce8b06e47e2566355e039e666623">More...</a><br /></td></tr>
|
|
<tr class="separator:a16c1ce8b06e47e2566355e039e666623"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2363f8aaea2ae751b26dae67ce41d78c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a2363f8aaea2ae751b26dae67ce41d78c">clear</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a2363f8aaea2ae751b26dae67ce41d78c"><td class="mdescLeft"> </td><td class="mdescRight">Clear the list. <a href="classbeast_1_1List.html#a2363f8aaea2ae751b26dae67ce41d78c">More...</a><br /></td></tr>
|
|
<tr class="separator:a2363f8aaea2ae751b26dae67ce41d78c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a52ed927dfed7415df459b6cc11572fdf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a52ed927dfed7415df459b6cc11572fdf">insert</a> (<a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> pos, T &element) noexcept</td></tr>
|
|
<tr class="memdesc:a52ed927dfed7415df459b6cc11572fdf"><td class="mdescLeft"> </td><td class="mdescRight">Insert an element. <a href="classbeast_1_1List.html#a52ed927dfed7415df459b6cc11572fdf">More...</a><br /></td></tr>
|
|
<tr class="separator:a52ed927dfed7415df459b6cc11572fdf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2bbebdc9a9c283bacdb32975326279b6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a2bbebdc9a9c283bacdb32975326279b6">insert</a> (<a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> pos, <a class="el" href="classbeast_1_1List.html">List</a> &other) noexcept</td></tr>
|
|
<tr class="memdesc:a2bbebdc9a9c283bacdb32975326279b6"><td class="mdescLeft"> </td><td class="mdescRight">Insert another list into this one. <a href="classbeast_1_1List.html#a2bbebdc9a9c283bacdb32975326279b6">More...</a><br /></td></tr>
|
|
<tr class="separator:a2bbebdc9a9c283bacdb32975326279b6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aeed218d106b4ab72b2290ac953f97405"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#aeed218d106b4ab72b2290ac953f97405">erase</a> (<a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> pos) noexcept</td></tr>
|
|
<tr class="memdesc:aeed218d106b4ab72b2290ac953f97405"><td class="mdescLeft"> </td><td class="mdescRight">Remove an element. <a href="classbeast_1_1List.html#aeed218d106b4ab72b2290ac953f97405">More...</a><br /></td></tr>
|
|
<tr class="separator:aeed218d106b4ab72b2290ac953f97405"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab87398d236198de27a6571e10b5503f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ab87398d236198de27a6571e10b5503f5">push_front</a> (T &element) noexcept</td></tr>
|
|
<tr class="memdesc:ab87398d236198de27a6571e10b5503f5"><td class="mdescLeft"> </td><td class="mdescRight">Insert an element at the beginning of the list. <a href="classbeast_1_1List.html#ab87398d236198de27a6571e10b5503f5">More...</a><br /></td></tr>
|
|
<tr class="separator:ab87398d236198de27a6571e10b5503f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab94ffa10aa70bd3ec3cdec8351b48cd5"><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ab94ffa10aa70bd3ec3cdec8351b48cd5">pop_front</a> () noexcept</td></tr>
|
|
<tr class="memdesc:ab94ffa10aa70bd3ec3cdec8351b48cd5"><td class="mdescLeft"> </td><td class="mdescRight">Remove the element at the beginning of the list. <a href="classbeast_1_1List.html#ab94ffa10aa70bd3ec3cdec8351b48cd5">More...</a><br /></td></tr>
|
|
<tr class="separator:ab94ffa10aa70bd3ec3cdec8351b48cd5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0ced815cdedb1b2323cd9adf97cca504"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a0ced815cdedb1b2323cd9adf97cca504">push_back</a> (T &element) noexcept</td></tr>
|
|
<tr class="memdesc:a0ced815cdedb1b2323cd9adf97cca504"><td class="mdescLeft"> </td><td class="mdescRight">Append an element at the end of the list. <a href="classbeast_1_1List.html#a0ced815cdedb1b2323cd9adf97cca504">More...</a><br /></td></tr>
|
|
<tr class="separator:a0ced815cdedb1b2323cd9adf97cca504"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4a1ef6ded08491b40f11ff24f9ca7344"><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a4a1ef6ded08491b40f11ff24f9ca7344">pop_back</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a4a1ef6ded08491b40f11ff24f9ca7344"><td class="mdescLeft"> </td><td class="mdescRight">Remove the element at the end of the list. <a href="classbeast_1_1List.html#a4a1ef6ded08491b40f11ff24f9ca7344">More...</a><br /></td></tr>
|
|
<tr class="separator:a4a1ef6ded08491b40f11ff24f9ca7344"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a98afd9f3adea12843d20d2a7cb585095"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a98afd9f3adea12843d20d2a7cb585095">swap</a> (<a class="el" href="classbeast_1_1List.html">List</a> &other) noexcept</td></tr>
|
|
<tr class="memdesc:a98afd9f3adea12843d20d2a7cb585095"><td class="mdescLeft"> </td><td class="mdescRight">Swap contents with another list. <a href="classbeast_1_1List.html#a98afd9f3adea12843d20d2a7cb585095">More...</a><br /></td></tr>
|
|
<tr class="separator:a98afd9f3adea12843d20d2a7cb585095"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af980125999dcc8dd28f92fc1293ebe71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#af980125999dcc8dd28f92fc1293ebe71">prepend</a> (<a class="el" href="classbeast_1_1List.html">List</a> &list) noexcept</td></tr>
|
|
<tr class="memdesc:af980125999dcc8dd28f92fc1293ebe71"><td class="mdescLeft"> </td><td class="mdescRight">Insert another list at the beginning of this list. <a href="classbeast_1_1List.html#af980125999dcc8dd28f92fc1293ebe71">More...</a><br /></td></tr>
|
|
<tr class="separator:af980125999dcc8dd28f92fc1293ebe71"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e42fc88625071226c400a287a25467a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a5e42fc88625071226c400a287a25467a">append</a> (<a class="el" href="classbeast_1_1List.html">List</a> &list) noexcept</td></tr>
|
|
<tr class="memdesc:a5e42fc88625071226c400a287a25467a"><td class="mdescLeft"> </td><td class="mdescRight">Append another list at the end of this list. <a href="classbeast_1_1List.html#a5e42fc88625071226c400a287a25467a">More...</a><br /></td></tr>
|
|
<tr class="separator:a5e42fc88625071226c400a287a25467a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a052268b3c6b478ceadfc0044e2f44636"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a052268b3c6b478ceadfc0044e2f44636">iterator_to</a> (T &element) const noexcept</td></tr>
|
|
<tr class="memdesc:a052268b3c6b478ceadfc0044e2f44636"><td class="mdescLeft"> </td><td class="mdescRight">Obtain an iterator from an element. <a href="classbeast_1_1List.html#a052268b3c6b478ceadfc0044e2f44636">More...</a><br /></td></tr>
|
|
<tr class="separator:a052268b3c6b478ceadfc0044e2f44636"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa484edca3eddbc186371135a50f72836"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#aa484edca3eddbc186371135a50f72836">const_iterator_to</a> (T const &element) const noexcept</td></tr>
|
|
<tr class="memdesc:aa484edca3eddbc186371135a50f72836"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a const iterator from an element. <a href="classbeast_1_1List.html#aa484edca3eddbc186371135a50f72836">More...</a><br /></td></tr>
|
|
<tr class="separator:aa484edca3eddbc186371135a50f72836"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
|
|
Private Member Functions</h2></td></tr>
|
|
<tr class="memitem:ae24e82711cc324fcee31d6765fb2f212"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#ae24e82711cc324fcee31d6765fb2f212">element_from</a> (<a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> *node) noexcept</td></tr>
|
|
<tr class="separator:ae24e82711cc324fcee31d6765fb2f212"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6a33ff030ff738d993ba09546b0e6610"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a6a33ff030ff738d993ba09546b0e6610">element_from</a> (<a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> const *node) const noexcept</td></tr>
|
|
<tr class="separator:a6a33ff030ff738d993ba09546b0e6610"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:affdad43179d987f5dee90f8f48823ba9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#affdad43179d987f5dee90f8f48823ba9">m_size</a></td></tr>
|
|
<tr class="separator:affdad43179d987f5dee90f8f48823ba9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0506a9fc63652b7d9119265fbf5ffb76"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a0506a9fc63652b7d9119265fbf5ffb76">m_head</a></td></tr>
|
|
<tr class="separator:a0506a9fc63652b7d9119265fbf5ffb76"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0b9665072db8d42d2c6f2b386435739e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1List.html#a0b9665072db8d42d2c6f2b386435739e">m_tail</a></td></tr>
|
|
<tr class="separator:a0b9665072db8d42d2c6f2b386435739e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><h3>template<typename T, typename Tag = void><br />
|
|
class beast::List< T, Tag ></h3>
|
|
|
|
<p>Intrusive doubly linked list. </p>
|
|
<p>This intrusive <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a> is a container similar in operation to <a class="elRef" href="http://en.cppreference.com/w/cpp/container/list.html" title="STL class.">std::list</a> in the Standard Template Library (STL). Like all intrusive containers, <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a> requires you to first derive your class from <a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">List<>::Node</a>:</p>
|
|
<div class="fragment"><div class="line"><span class="keyword">struct </span>Object : <a class="code" href="classbeast_1_1List.html#ad90fd05ef9baf19fd67880f51276d7d9">List</a> <Object><a class="code" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">::Node</a></div>
|
|
<div class="line">{</div>
|
|
<div class="line"> <span class="keyword">explicit</span> Object (<span class="keywordtype">int</span> value) : m_value (value)</div>
|
|
<div class="line"> {</div>
|
|
<div class="line"> }</div>
|
|
<div class="line"> </div>
|
|
<div class="line"> <span class="keywordtype">int</span> m_value;</div>
|
|
<div class="line">};</div>
|
|
</div><!-- fragment --><p>Now we define the list, and add a couple of items.</p>
|
|
<div class="fragment"><div class="line">List <Object> list;</div>
|
|
<div class="line"> </div>
|
|
<div class="line">list.push_back (* (<span class="keyword">new</span> Object (1)));</div>
|
|
<div class="line">list.push_back (* (<span class="keyword">new</span> Object (2)));</div>
|
|
</div><!-- fragment --><p>For compatibility with the standard containers, <a class="el" href="classbeast_1_1List.html#a0ced815cdedb1b2323cd9adf97cca504" title="Append an element at the end of the list.">push_back()</a> expects a reference to the object. Unlike the standard container, however, <a class="el" href="classbeast_1_1List.html#a0ced815cdedb1b2323cd9adf97cca504" title="Append an element at the end of the list.">push_back()</a> places the actual object in the list and not a copy-constructed duplicate.</p>
|
|
<p>Iterating over the list follows the same idiom as the STL:</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">for</span> (<a class="code" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">List <Object>::iterator</a> iter = list.begin(); iter != list.end; ++iter)</div>
|
|
<div class="line"> <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/cout.html">std::cout</a> << iter->m_value;</div>
|
|
</div><!-- fragment --><p>You can even use BOOST_FOREACH, or range based for loops:</p>
|
|
<div class="fragment"><div class="line">BOOST_FOREACH (Object& <span class="keywordtype">object</span>, list) <span class="comment">// boost only</span></div>
|
|
<div class="line"> <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/cout.html">std::cout</a> << <span class="keywordtype">object</span>.m_value;</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="keywordflow">for</span> (Object& <span class="keywordtype">object</span> : list) <span class="comment">// C++11 only</span></div>
|
|
<div class="line"> <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/cout.html">std::cout</a> << <span class="keywordtype">object</span>.m_value;</div>
|
|
</div><!-- fragment --><p>Because <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a> is mostly STL compliant, it can be passed into STL algorithms: e.g. <code><a class="elRef" href="http://en.cppreference.com/w/cpp/algorithm/for_each.html">std::for_each()</a></code> or <code><a class="elRef" href="http://en.cppreference.com/w/cpp/algorithm/find_first_of.html">std::find_first_of()</a></code>.</p>
|
|
<p>In general, objects placed into a <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a> should be dynamically allocated although this cannot be enforced at compile time. Since the caller provides the storage for the object, the caller is also responsible for deleting the object. An object still exists after being removed from a <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a>, until the caller deletes it. This means an element can be moved from one <a class="el" href="classbeast_1_1List.html" title="Intrusive doubly linked list.">List</a> to another with practically no overhead.</p>
|
|
<p>Unlike the standard containers, an object may only exist in one list at a time, unless special preparations are made. The Tag template parameter is used to distinguish between different list types for the same object, allowing the object to exist in more than one list simultaneously.</p>
|
|
<p>For example, consider an actor system where a global list of actors is maintained, so that they can each be periodically receive processing time. We wish to also maintain a list of the subset of actors that require a domain-dependent update. To achieve this, we declare two tags, the associated list types, and the list element thusly:</p>
|
|
<div class="fragment"><div class="line"><span class="keyword">struct </span>Actor; <span class="comment">// Forward declaration required</span></div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="keyword">struct </span>ProcessTag { };</div>
|
|
<div class="line"><span class="keyword">struct </span>UpdateTag { };</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="keyword">using</span> ProcessList = List <Actor, ProcessTag>;</div>
|
|
<div class="line"><span class="keyword">using</span> UpdateList = List <Actor, UpdateTag>;</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="comment">// Derive from both node types so we can be in each list at once.</span></div>
|
|
<div class="line"><span class="comment">//</span></div>
|
|
<div class="line"><span class="keyword">struct </span>Actor : ProcessList::Node, UpdateList::Node</div>
|
|
<div class="line">{</div>
|
|
<div class="line"> <span class="keywordtype">bool</span> process (); <span class="comment">// returns true if we need an update</span></div>
|
|
<div class="line"> <span class="keywordtype">void</span> update ();</div>
|
|
<div class="line">};</div>
|
|
</div><!-- fragment --><dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">T</td><td>The base type of element which the list will store pointers to.</td></tr>
|
|
<tr><td class="paramname">Tag</td><td>An optional unique type name used to distinguish lists and nodes, when the object can exist in multiple lists simultaneously. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00029">29</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
</div><h2 class="groupheader">Member Typedef Documentation</h2>
|
|
<a id="a9045c6eaf5485a33cc001e8845c47585"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9045c6eaf5485a33cc001e8845c47585">◆ </a></span>Node</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> = typename <a class="el" href="classbeast_1_1detail_1_1ListNode.html">detail::ListNode</a><T, Tag></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00282">282</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a63a1df8d77a6a00b1d85b8211759761d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a63a1df8d77a6a00b1d85b8211759761d">◆ </a></span>value_type</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> = T</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00284">284</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6d52273e032dce1d710c117727d92380"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6d52273e032dce1d710c117727d92380">◆ </a></span>pointer</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a6d52273e032dce1d710c117727d92380">pointer</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a>*</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00285">285</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa1d0b5ae5080f6e15ef8b17a4278b9b3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa1d0b5ae5080f6e15ef8b17a4278b9b3">◆ </a></span>reference</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a>&</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00286">286</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a03164255795b93fe4fb59ec168e80d5d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a03164255795b93fe4fb59ec168e80d5d">◆ </a></span>const_pointer</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a03164255795b93fe4fb59ec168e80d5d">const_pointer</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> const*</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00287">287</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac012e92c2402a063425bbaba5f333318"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac012e92c2402a063425bbaba5f333318">◆ </a></span>const_reference</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> = <a class="el" href="classbeast_1_1List.html#a63a1df8d77a6a00b1d85b8211759761d">value_type</a> const&</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00288">288</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0c93009b264caa80fbdb4269d1c0ad4e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0c93009b264caa80fbdb4269d1c0ad4e">◆ </a></span>size_type</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00289">289</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a868d9d7a9879ff1ac34bf24c33308691"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a868d9d7a9879ff1ac34bf24c33308691">◆ </a></span>difference_type</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a868d9d7a9879ff1ac34bf24c33308691">difference_type</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/types/ptrdiff_t.html">std::ptrdiff_t</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00290">290</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a40627d0f3ad01d19dbd96caf06bbf65b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a40627d0f3ad01d19dbd96caf06bbf65b">◆ </a></span>iterator</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> = <a class="el" href="classbeast_1_1detail_1_1ListIterator.html">detail::ListIterator</a><<a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a>></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00292">292</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a07d23c110e136d8fdd57ae5472485e48"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a07d23c110e136d8fdd57ae5472485e48">◆ </a></span>const_iterator</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> = <a class="el" href="classbeast_1_1detail_1_1ListIterator.html">detail::ListIterator</a><<a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> const></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00293">293</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ad90fd05ef9baf19fd67880f51276d7d9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad90fd05ef9baf19fd67880f51276d7d9">◆ </a></span>List() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html">List</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create an empty list. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00296">296</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa7a1a8e254dbaf26a8af32dbdf20eff2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa7a1a8e254dbaf26a8af32dbdf20eff2">◆ </a></span>List() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::<a class="el" href="classbeast_1_1List.html">List</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > const & </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a416adae20bef2608c399eed9985ee844"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a416adae20bef2608c399eed9985ee844">◆ </a></span>operator=()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html">List</a>& <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::operator= </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > const & </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9841a3b7bc7902d7f4e438978d464001"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9841a3b7bc7902d7f4e438978d464001">◆ </a></span>empty()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::empty </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determine if the list is empty. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the list is empty. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00311">311</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad1887824b8827b60b3c9fe7ccc09c130"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad1887824b8827b60b3c9fe7ccc09c130">◆ </a></span>size()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::size </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of elements in the list. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00318">318</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1d46509c54405b5fe4558ff8f00db5f3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1d46509c54405b5fe4558ff8f00db5f3">◆ </a></span>front() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::front </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a reference to the first element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list may not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A reference to the first element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00328">328</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a822463abd19c159b0811ed64e0e34ccd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a822463abd19c159b0811ed64e0e34ccd">◆ </a></span>front() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::front </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const reference to the first element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list may not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A const reference to the first element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00338">338</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a84edbf644909e6a377e432785da86a14"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a84edbf644909e6a377e432785da86a14">◆ </a></span>back() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::back </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a reference to the last element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list may not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A reference to the last element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00348">348</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3d41b13fa74a92c92fe2a1cc598e1bae"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3d41b13fa74a92c92fe2a1cc598e1bae">◆ </a></span>back() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::back </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const reference to the last element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list may not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A const reference to the last element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00358">358</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2d3c19a2ea6aba941902adcc0c1a5a73"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2d3c19a2ea6aba941902adcc0c1a5a73">◆ </a></span>begin() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::begin </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain an iterator to the beginning of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>An iterator pointing to the beginning of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00367">367</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1094a4aec90a0b2dac32e61fdc730b20"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1094a4aec90a0b2dac32e61fdc730b20">◆ </a></span>begin() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::begin </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const iterator to the beginning of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>A const iterator pointing to the beginning of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00376">376</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad3ec5127cf5bd832781d3f827f7194ad"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad3ec5127cf5bd832781d3f827f7194ad">◆ </a></span>cbegin()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::cbegin </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const iterator to the beginning of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>A const iterator pointing to the beginning of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00385">385</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a672d23adfca5d4a5e7c4443cf64a8a55"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a672d23adfca5d4a5e7c4443cf64a8a55">◆ </a></span>end() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::end </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a iterator to the end of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>An iterator pointing to the end of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00394">394</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8c37d92977108ab93b57941fcb52e050"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8c37d92977108ab93b57941fcb52e050">◆ </a></span>end() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::end </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const iterator to the end of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>A constiterator pointing to the end of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00403">403</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a16c1ce8b06e47e2566355e039e666623"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a16c1ce8b06e47e2566355e039e666623">◆ </a></span>cend()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::cend </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const iterator to the end of the list. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>A constiterator pointing to the end of the list. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00412">412</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2363f8aaea2ae751b26dae67ce41d78c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2363f8aaea2ae751b26dae67ce41d78c">◆ </a></span>clear()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::clear </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clear the list. </p>
|
|
<dl class="section note"><dt>Note</dt><dd>This does not free the elements. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00421">421</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a52ed927dfed7415df459b6cc11572fdf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a52ed927dfed7415df459b6cc11572fdf">◆ </a></span>insert() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::insert </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td>
|
|
<td class="paramname"><em>pos</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T & </td>
|
|
<td class="paramname"><em>element</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Insert an element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must not already be in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pos</td><td>The location to insert after. </td></tr>
|
|
<tr><td class="paramname">element</td><td>The element to insert. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>An iterator pointing to the newly inserted element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00435">435</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2bbebdc9a9c283bacdb32975326279b6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2bbebdc9a9c283bacdb32975326279b6">◆ </a></span>insert() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::insert </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td>
|
|
<td class="paramname"><em>pos</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > & </td>
|
|
<td class="paramname"><em>other</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Insert another list into this one. </p>
|
|
<p>The other list is cleared. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pos</td><td>The location to insert after. </td></tr>
|
|
<tr><td class="paramname">other</td><td>The list to insert. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00452">452</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aeed218d106b4ab72b2290ac953f97405"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aeed218d106b4ab72b2290ac953f97405">◆ </a></span>erase()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::erase </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> </td>
|
|
<td class="paramname"><em>pos</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Remove an element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must exist in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pos</td><td>An iterator pointing to the element to remove. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>An iterator pointing to the next element after the one removed. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00472">472</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab87398d236198de27a6571e10b5503f5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab87398d236198de27a6571e10b5503f5">◆ </a></span>push_front()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::push_front </td>
|
|
<td>(</td>
|
|
<td class="paramtype">T & </td>
|
|
<td class="paramname"><em>element</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Insert an element at the beginning of the list. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must not exist in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">element</td><td>The element to insert. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00487">487</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab94ffa10aa70bd3ec3cdec8351b48cd5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab94ffa10aa70bd3ec3cdec8351b48cd5">◆ </a></span>pop_front()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">T& <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::pop_front </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Remove the element at the beginning of the list. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list must not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A reference to the popped element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00497">497</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0ced815cdedb1b2323cd9adf97cca504"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0ced815cdedb1b2323cd9adf97cca504">◆ </a></span>push_back()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::push_back </td>
|
|
<td>(</td>
|
|
<td class="paramtype">T & </td>
|
|
<td class="paramname"><em>element</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Append an element at the end of the list. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must not exist in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">element</td><td>The element to append. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00509">509</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4a1ef6ded08491b40f11ff24f9ca7344"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4a1ef6ded08491b40f11ff24f9ca7344">◆ </a></span>pop_back()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">T& <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::pop_back </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Remove the element at the end of the list. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The list must not be empty. </dd></dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A reference to the popped element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00519">519</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a98afd9f3adea12843d20d2a7cb585095"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a98afd9f3adea12843d20d2a7cb585095">◆ </a></span>swap()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::swap </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > & </td>
|
|
<td class="paramname"><em>other</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Swap contents with another list. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00528">528</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af980125999dcc8dd28f92fc1293ebe71"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af980125999dcc8dd28f92fc1293ebe71">◆ </a></span>prepend()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::prepend </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > & </td>
|
|
<td class="paramname"><em>list</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Insert another list at the beginning of this list. </p>
|
|
<p>The other list is cleared. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">list</td><td>The other list to insert. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00541">541</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5e42fc88625071226c400a287a25467a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5e42fc88625071226c400a287a25467a">◆ </a></span>append()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::append </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html">List</a>< T, Tag > & </td>
|
|
<td class="paramname"><em>list</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Append another list at the end of this list. </p>
|
|
<p>The other list is cleared. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">list</td><td>the other list to append. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00551">551</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a052268b3c6b478ceadfc0044e2f44636"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a052268b3c6b478ceadfc0044e2f44636">◆ </a></span>iterator_to()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::iterator_to </td>
|
|
<td>(</td>
|
|
<td class="paramtype">T & </td>
|
|
<td class="paramname"><em>element</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain an iterator from an element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must exist in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">element</td><td>The element to obtain an iterator for. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>An iterator to the element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00562">562</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa484edca3eddbc186371135a50f72836"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa484edca3eddbc186371135a50f72836">◆ </a></span>const_iterator_to()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a07d23c110e136d8fdd57ae5472485e48">const_iterator</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::const_iterator_to </td>
|
|
<td>(</td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>element</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Obtain a const iterator from an element. </p>
|
|
<dl class="section invariant"><dt>Invariant</dt><dd>The element must exist in the list. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">element</td><td>The element to obtain an iterator for. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A const iterator to the element. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00573">573</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae24e82711cc324fcee31d6765fb2f212"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae24e82711cc324fcee31d6765fb2f212">◆ </a></span>element_from() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#aa1d0b5ae5080f6e15ef8b17a4278b9b3">reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::element_from </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> * </td>
|
|
<td class="paramname"><em>node</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00580">580</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6a33ff030ff738d993ba09546b0e6610"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6a33ff030ff738d993ba09546b0e6610">◆ </a></span>element_from() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#ac012e92c2402a063425bbaba5f333318">const_reference</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::element_from </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> const * </td>
|
|
<td class="paramname"><em>node</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00586">586</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="affdad43179d987f5dee90f8f48823ba9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#affdad43179d987f5dee90f8f48823ba9">◆ </a></span>m_size</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a0c93009b264caa80fbdb4269d1c0ad4e">size_type</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::m_size</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00592">592</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0506a9fc63652b7d9119265fbf5ffb76"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0506a9fc63652b7d9119265fbf5ffb76">◆ </a></span>m_head</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::m_head</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00593">593</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0b9665072db8d42d2c6f2b386435739e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0b9665072db8d42d2c6f2b386435739e">◆ </a></span>m_tail</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename T , typename Tag = void> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">Node</a> <a class="el" href="classbeast_1_1List.html">beast::List</a>< T, Tag >::m_tail</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="List_8h_source.html#l00594">594</a> of file <a class="el" href="List_8h_source.html">List.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<div class="ttc" id="aclassbeast_1_1List_html_a40627d0f3ad01d19dbd96caf06bbf65b"><div class="ttname"><a href="classbeast_1_1List.html#a40627d0f3ad01d19dbd96caf06bbf65b">beast::List::iterator</a></div><div class="ttdeci">detail::ListIterator< Node > iterator</div><div class="ttdef"><b>Definition:</b> <a href="List_8h_source.html#l00292">List.h:292</a></div></div>
|
|
<div class="ttc" id="acout_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/cout.html">std::cout</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1List_html_a9045c6eaf5485a33cc001e8845c47585"><div class="ttname"><a href="classbeast_1_1List.html#a9045c6eaf5485a33cc001e8845c47585">beast::List::Node</a></div><div class="ttdeci">typename detail::ListNode< T, Tag > Node</div><div class="ttdef"><b>Definition:</b> <a href="List_8h_source.html#l00282">List.h:282</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1List_html_ad90fd05ef9baf19fd67880f51276d7d9"><div class="ttname"><a href="classbeast_1_1List.html#ad90fd05ef9baf19fd67880f51276d7d9">beast::List::List</a></div><div class="ttdeci">List()</div><div class="ttdoc">Create an empty list.</div><div class="ttdef"><b>Definition:</b> <a href="List_8h_source.html#l00296">List.h:296</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|