1019 lines
245 KiB
HTML
1019 lines
245 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.10.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: src/entt/entity/view.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<script type="text/javascript" src="cookie.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-awesome.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">EnTT<span id="projectnumber"> 3.14.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.10.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_66e9674e8206a335795995fa32a03c91.html">entt</a></li><li class="navelem"><a class="el" href="dir_e3a7bb56c55e5c2286e2fe96e197d4f5.html">entity</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">view.hpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef ENTT_ENTITY_VIEW_HPP</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_ENTITY_VIEW_HPP</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <array></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <cstddef></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <iterator></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <tuple></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <type_traits></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <utility></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include "../config/config.h"</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include "../core/iterator.hpp"</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include "../core/type_traits.hpp"</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include "entity.hpp"</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">namespace </span>internal {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">const</span> Type *view_placeholder() {</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">static_assert</span>(std::is_same_v<std::remove_const_t<std::remove_reference_t<Type>>, Type>, <span class="stringliteral">"Unexpected type"</span>);</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">static</span> <span class="keyword">const</span> Type placeholder{};</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keywordflow">return</span> &placeholder;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>}</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">template</span><<span class="keyword">typename</span> It, <span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span>[[nodiscard]] <span class="keywordtype">bool</span> all_of(It first, <span class="keyword">const</span> It last, <span class="keyword">const</span> Entity <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">for</span>(; (first != last) && (*first)->contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>); ++first) {}</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordflow">return</span> first == last;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>}</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">template</span><<span class="keyword">typename</span> It, <span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>[[nodiscard]] <span class="keywordtype">bool</span> none_of(It first, <span class="keyword">const</span> It last, <span class="keyword">const</span> Entity <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">for</span>(; (first != last) && !(*first)->contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>); ++first) {}</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span> first == last;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>}</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">template</span><<span class="keyword">typename</span> It></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>[[nodiscard]] <span class="keywordtype">bool</span> fully_initialized(It first, <span class="keyword">const</span> It last) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> *placeholder = view_placeholder<std::remove_const_t<std::remove_pointer_t<<span class="keyword">typename</span> std::iterator_traits<It>::value_type>>>(); (first != last) && *first != placeholder; ++first) {}</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">return</span> first == last;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>}</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="keyword">template</span><<span class="keyword">typename</span> Result, <span class="keyword">typename</span> View, <span class="keyword">typename</span> Other, std::size_t... GLhs, std::size_t... ELhs, std::size_t... GRhs, std::size_t... ERhs></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>[[nodiscard]] Result view_pack(<span class="keyword">const</span> View &view, <span class="keyword">const</span> Other &other, std::index_sequence<GLhs...>, std::index_sequence<ELhs...>, std::index_sequence<GRhs...>, std::index_sequence<ERhs...>) {</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> Result elem{};</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// friend-initialization, avoid multiple calls to refresh</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> elem.pools = {<a class="code hl_typedef" href="namespaceentt.html#a3f86766cf81509c46f7009f90513d837">view</a>.template storage<GLhs>()..., other.template storage<GRhs>()...};</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> elem.filter = {<a class="code hl_typedef" href="namespaceentt.html#a3f86766cf81509c46f7009f90513d837">view</a>.template <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a><<span class="keyword">sizeof</span>...(GLhs) + ELhs>()..., other.template <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a><<span class="keyword">sizeof</span>...(GRhs) + ERhs>()...};</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> elem.refresh();</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> elem;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span>}</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, std::<span class="keywordtype">size_t</span> Get, std::<span class="keywordtype">size_t</span> Exclude></div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keyword">class </span>view_iterator final {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">template</span><<span class="keyword">typename</span>, <span class="keyword">typename</span>...></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">friend</span> <span class="keyword">class </span>extended_view_iterator;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">using </span>iterator_type = <span class="keyword">typename</span> Type::const_iterator;</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">using </span>iterator_traits = std::iterator_traits<iterator_type>;</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> [[nodiscard]] <span class="keywordtype">bool</span> valid(<span class="keyword">const</span> <span class="keyword">typename</span> iterator_traits::value_type <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">return</span> ((Get != 1u) || (<a class="code hl_namespace" href="namespaceentt.html">entt</a> != tombstone))</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> && internal::all_of(pools.begin(), pools.begin() + index, <a class="code hl_namespace" href="namespaceentt.html">entt</a>) && internal::all_of(pools.begin() + index + 1, pools.end(), <a class="code hl_namespace" href="namespaceentt.html">entt</a>)</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> && internal::none_of(filter.begin(), filter.end(), <a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">void</span> seek_next() {</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">for</span>(<span class="keyword">constexpr</span> iterator_type sentinel{}; it != sentinel && !valid(*it); ++it) {}</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">using </span>value_type = <span class="keyword">typename</span> iterator_traits::value_type;</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">using </span>pointer = <span class="keyword">typename</span> iterator_traits::pointer;</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">using </span>reference = <span class="keyword">typename</span> iterator_traits::reference;</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">using </span>difference_type = <span class="keyword">typename</span> iterator_traits::difference_type;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">using </span>iterator_category = std::forward_iterator_tag;</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">constexpr</span> view_iterator() noexcept</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> : it{},</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> pools{},</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> filter{},</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> index{} {}</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> view_iterator(iterator_type first, std::array<const Type *, Get> value, std::array<const Type *, Exclude> excl, <span class="keyword">const</span> std::size_t idx) noexcept</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> : it{first},</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> pools{value},</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> filter{excl},</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> index{idx} {</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> seek_next();</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> }</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> view_iterator &operator++() noexcept {</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> ++it;</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> seek_next();</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> }</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> view_iterator operator++(<span class="keywordtype">int</span>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> view_iterator orig = *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">return</span> ++(*this), orig;</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> }</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> [[nodiscard]] pointer operator->() const noexcept {</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">return</span> &*it;</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> }</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> [[nodiscard]] reference operator*() const noexcept {</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> *operator->();</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">template</span><<span class="keyword">typename</span> LhsType, <span class="keyword">auto</span>... LhsArgs, <span class="keyword">typename</span> RhsType, <span class="keyword">auto</span>... RhsArgs></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">friend</span> <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> view_iterator<LhsType, LhsArgs...> &, <span class="keyword">const</span> view_iterator<RhsType, RhsArgs...> &) <span class="keyword">noexcept</span>;</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> iterator_type it;</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> std::array<const Type *, Get> pools;</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> std::array<const Type *, Exclude> filter;</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> std::size_t index;</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span>};</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="keyword">template</span><<span class="keyword">typename</span> LhsType, <span class="keyword">auto</span>... LhsArgs, <span class="keyword">typename</span> RhsType, <span class="keyword">auto</span>... RhsArgs></div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> view_iterator<LhsType, LhsArgs...> &lhs, <span class="keyword">const</span> view_iterator<RhsType, RhsArgs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">return</span> lhs.it == rhs.it;</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>}</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span><span class="keyword">template</span><<span class="keyword">typename</span> LhsType, <span class="keyword">auto</span>... LhsArgs, <span class="keyword">typename</span> RhsType, <span class="keyword">auto</span>... RhsArgs></div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> view_iterator<LhsType, LhsArgs...> &lhs, <span class="keyword">const</span> view_iterator<RhsType, RhsArgs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span>}</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><span class="keyword">template</span><<span class="keyword">typename</span> It, <span class="keyword">typename</span>... Get></div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="keyword">class </span>extended_view_iterator final {</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">template</span><std::size_t... Index></div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> [[nodiscard]] <span class="keyword">auto</span> dereference(std::index_sequence<Index...>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow">return</span> std::tuple_cat(std::make_tuple(*it), <span class="keyword">static_cast<</span>Get *<span class="keyword">></span>(<span class="keyword">const_cast<</span>constness_as_t<typename Get::base_type, Get> *<span class="keyword">></span>(std::get<Index>(it.pools)))->get_as_tuple(*it)...);</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> }</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">using </span>iterator_type = It;</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">using </span>value_type = <span class="keyword">decltype</span>(std::tuple_cat(std::make_tuple(*std::declval<It>()), std::declval<Get>().get_as_tuple({})...));</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">using </span>pointer = input_iterator_pointer<value_type>;</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">using </span>reference = value_type;</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">using </span>difference_type = std::ptrdiff_t;</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">using </span>iterator_category = std::input_iterator_tag;</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">using </span>iterator_concept = std::forward_iterator_tag;</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">constexpr</span> extended_view_iterator()</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> : it{} {}</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> extended_view_iterator(iterator_type from)</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> : it{from} {}</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> extended_view_iterator &operator++() noexcept {</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordflow">return</span> ++it, *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> extended_view_iterator operator++(<span class="keywordtype">int</span>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> extended_view_iterator orig = *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordflow">return</span> ++(*this), orig;</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> [[nodiscard]] reference operator*() const noexcept {</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordflow">return</span> dereference(std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> [[nodiscard]] pointer operator->() const noexcept {</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow">return</span> operator*();</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> }</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> [[nodiscard]] <span class="keyword">constexpr</span> iterator_type base() const noexcept {</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">return</span> it;</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <span class="keyword">constexpr</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> extended_view_iterator<Lhs...> &, <span class="keyword">const</span> extended_view_iterator<Rhs...> &) <span class="keyword">noexcept</span>;</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> It it;</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span>};</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span><span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> extended_view_iterator<Lhs...> &lhs, <span class="keyword">const</span> extended_view_iterator<Rhs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> lhs.it == rhs.it;</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span>}</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> extended_view_iterator<Lhs...> &lhs, <span class="keyword">const</span> extended_view_iterator<Rhs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span>}</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> </div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span>} <span class="comment">// namespace internal</span></div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span><span class="keyword">template</span><<span class="keyword">typename</span>, <span class="keyword">typename</span>, <span class="keyword">typename</span>></div>
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span><span class="keyword">class </span><a class="code hl_function" href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1">basic_view</a>;</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
|
|
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, std::<span class="keywordtype">size_t</span> Get, std::<span class="keywordtype">size_t</span> Exclude></div>
|
|
<div class="foldopen" id="foldopen00226" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html"> 226</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1basic__common__view.html">basic_common_view</a> {</div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keyword">static_assert</span>(std::is_same_v<std::remove_const_t<std::remove_reference_t<Type>>, Type>, <span class="stringliteral">"Unexpected type"</span>);</div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keyword">template</span><<span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Return</a>, <span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">View</a>, <span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Other</a>, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">GLhs</a>, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ELhs</a>, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">GRhs</a>, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ERhs</a>></div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <span class="keyword">friend</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Return</a> internal::view_pack(<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">View</a> &, <span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Other</a> &, std::index_sequence<GLhs...>, std::index_sequence<ELhs...>, std::index_sequence<GRhs...>, std::index_sequence<ERhs...>);</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> offset() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> ENTT_ASSERT(index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>, <span class="stringliteral">"Invalid view"</span>);</div>
|
|
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">return</span> (pools[index]->policy() == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) ? pools[index]->free_list() : pools[index]->size();</div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordtype">void</span> unchecked_refresh() <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> index = 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>;</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> > 1u) {</div>
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">for</span>(<a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>{1u}; <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>; ++<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) {</div>
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">if</span>(pools[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>]->size() < pools[index]->size()) {</div>
|
|
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> index = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>;</div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> }</div>
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> }</div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> }</div>
|
|
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> </div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span><span class="keyword">protected</span>:</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_class" href="classentt_1_1basic__common__view.html">basic_common_view</a>() <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="keywordflow">for</span>(<a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>{}; <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>; ++<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) {</div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> filter[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>] = internal::view_placeholder<Type>();</div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> }</div>
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> }</div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
|
|
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <a class="code hl_class" href="classentt_1_1basic__common__view.html">basic_common_view</a>(std::array<const Type *, Get> value, std::array<const Type *, Exclude> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> : pools{value},</div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> filter{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a>},</div>
|
|
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> index{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>} {</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> unchecked_refresh();</div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> }</div>
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> </div>
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">const</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pool_at</a>(<span class="keyword">const</span> std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">return</span> pools[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>];</div>
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> }</div>
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">const</span> Type *<a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>(<span class="keyword">const</span> std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordflow">if</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) {</div>
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">return</span> pools[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>];</div>
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> }</div>
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> </div>
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">idx</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> - <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>; filter[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">idx</a>] != internal::view_placeholder<Type>()) {</div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keywordflow">return</span> filter[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">idx</a>];</div>
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> }</div>
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> }</div>
|
|
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> </div>
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordtype">void</span> <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>(<span class="keyword">const</span> std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>, <span class="keyword">const</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> ENTT_ASSERT(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"Unexpected element"</span>);</div>
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordflow">if</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) {</div>
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> pools[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>] = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>;</div>
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a4572fafa94a210f91cea5a97d5dda3b4">refresh</a>();</div>
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> filter[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> - <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>] = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>;</div>
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> }</div>
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> }</div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> </div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">none_of</a>(<span class="keyword">const</span> <span class="keyword">typename</span> Type::entity_type <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">return</span> internal::none_of(filter.begin(), filter.end(), <a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> }</div>
|
|
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> </div>
|
|
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <span class="keywordtype">void</span> use(<span class="keyword">const</span> std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> index = (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) ? <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> : <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>;</div>
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> }</div>
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a49d50a6ed08c233e75b59bc3aed62e46"> 302</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__common__view.html#a49d50a6ed08c233e75b59bc3aed62e46">common_type</a> = Type;</div>
|
|
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75"> 304</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entity_type</a> = <span class="keyword">typename</span> Type::entity_type;</div>
|
|
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f"> 306</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> = std::size_t;</div>
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146"> 308</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a> = internal::view_iterator<common_type, Get, Exclude>;</div>
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> </div>
|
|
<div class="foldopen" id="foldopen00311" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a4572fafa94a210f91cea5a97d5dda3b4"> 311</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a4572fafa94a210f91cea5a97d5dda3b4">refresh</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> = <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a><span class="keyword">></span>(index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) * <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>;</div>
|
|
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="keywordflow">for</span>(; <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> && pools[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>] != <span class="keyword">nullptr</span>; ++<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) {}</div>
|
|
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> </div>
|
|
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <span class="keywordflow">if</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) {</div>
|
|
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> unchecked_refresh();</div>
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> }</div>
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> </div>
|
|
<div class="foldopen" id="foldopen00324" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a4d4caecc5dfcf100b0132198fdfe43b3"> 324</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#a49d50a6ed08c233e75b59bc3aed62e46">common_type</a> *<a class="code hl_function" href="classentt_1_1basic__common__view.html#a4d4caecc5dfcf100b0132198fdfe43b3">handle</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) ? pools[index] : <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> </div>
|
|
<div class="foldopen" id="foldopen00332" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a34fdba8fb0d1d16714b473ac31b0f39d"> 332</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a34fdba8fb0d1d16714b473ac31b0f39d">size_hint</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) ? offset() : <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a>{};</div>
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> </div>
|
|
<div class="foldopen" id="foldopen00343" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a51cd2d2c3725b7b4122b594dac974da6"> 343</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a51cd2d2c3725b7b4122b594dac974da6">begin</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) ? <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a>{pools[index]->end() - <span class="keyword">static_cast<</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">typename</a> iterator::difference_type<span class="keyword">></span>(offset()), pools, filter, index} : <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a>{};</div>
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> </div>
|
|
<div class="foldopen" id="foldopen00351" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#aac1aa2564ab77156936955392053c61d"> 351</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#aac1aa2564ab77156936955392053c61d">end</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) ? <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a>{pools[index]->end(), pools, filter, index} : <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a>{};</div>
|
|
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> </div>
|
|
<div class="foldopen" id="foldopen00360" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a7d5614b020a387078f807a58cea0cd90"> 360</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a7d5614b020a387078f807a58cea0cd90">front</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = <a class="code hl_function" href="classentt_1_1basic__common__view.html#a51cd2d2c3725b7b4122b594dac974da6">begin</a>();</div>
|
|
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> != <a class="code hl_function" href="classentt_1_1basic__common__view.html#aac1aa2564ab77156936955392053c61d">end</a>() ? *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> : <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> </div>
|
|
<div class="foldopen" id="foldopen00370" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a6b0517d50e658cec5c259d0cf1cad8d7"> 370</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a6b0517d50e658cec5c259d0cf1cad8d7">back</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> <span class="keywordflow">if</span>(index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) {</div>
|
|
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = pools[index]->rbegin();</div>
|
|
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> <span class="keyword">const</span> <span class="keyword">auto</span> last = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> + <span class="keyword">static_cast<</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">typename</a> iterator::difference_type<span class="keyword">></span>(offset());</div>
|
|
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> <span class="keywordflow">for</span>(; <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> != last && !<a class="code hl_function" href="classentt_1_1basic__common__view.html#a5123427d3555f05d61b996fe518b78de">contains</a>(*<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>); ++<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>) {}</div>
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> == last ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>;</div>
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> }</div>
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> </div>
|
|
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> </div>
|
|
<div class="foldopen" id="foldopen00387" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#abb964d3db8d2476860c91314e6f353b0"> 387</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a> <a class="code hl_function" href="classentt_1_1basic__common__view.html#abb964d3db8d2476860c91314e6f353b0">find</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a5123427d3555f05d61b996fe518b78de">contains</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) ? <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">iterator</a>{pools[index]->find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>), pools, filter, index} : <a class="code hl_function" href="classentt_1_1basic__common__view.html#aac1aa2564ab77156936955392053c61d">end</a>();</div>
|
|
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div>
|
|
<div class="foldopen" id="foldopen00395" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#afd888f9d6b8141c3f1b4c1b1334720ac"> 395</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">explicit</span> <span class="keyword">operator</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">bool</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>) && internal::fully_initialized(filter.begin(), filter.end());</div>
|
|
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> </div>
|
|
<div class="foldopen" id="foldopen00404" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"><a class="line" href="classentt_1_1basic__common__view.html#a5123427d3555f05d61b996fe518b78de"> 404</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__common__view.html#a5123427d3555f05d61b996fe518b78de">contains</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> <span class="keywordflow">return</span> (index != <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>)</div>
|
|
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> && internal::all_of(pools.begin(), pools.end(), <a class="code hl_namespace" href="namespaceentt.html">entt</a>)</div>
|
|
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> && internal::none_of(filter.begin(), filter.end(), <a class="code hl_namespace" href="namespaceentt.html">entt</a>)</div>
|
|
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> && pools[index]->index(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) < offset();</div>
|
|
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> </div>
|
|
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> std::array<const common_type *, Get> pools{};</div>
|
|
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> std::array<const common_type *, Exclude> filter{};</div>
|
|
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">size_type</a> index{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>};</div>
|
|
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> </div>
|
|
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span><span class="keyword">template</span><<span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>></div>
|
|
<div class="foldopen" id="foldopen00430" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html"> 430</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>...>, std::<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">enable_if_t</a><(sizeof...(Get) != 0u)>></div>
|
|
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> : <span class="keyword">public</span> <a class="code hl_class" href="classentt_1_1basic__common__view.html">basic_common_view</a><std::common_type_t<typename Get::base_type..., typename Exclude::base_type...>, sizeof...(Get), sizeof...(Exclude)> {</div>
|
|
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> <span class="keyword">using </span><a class="code hl_class" href="classentt_1_1basic__common__view.html">base_type</a> = <a class="code hl_class" href="classentt_1_1basic__common__view.html">basic_common_view</a><std::common_type_t<<span class="keyword">typename</span> Get::base_type..., <span class="keyword">typename</span> Exclude::base_type...>, <span class="keyword">sizeof</span>...(Get), <span class="keyword">sizeof</span>...(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>)>;</div>
|
|
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> </div>
|
|
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::size_t index_of = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">type_list_index_v<std::remove_const_t<Type></a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a><<span class="keyword">typename</span> Get::element_type..., <span class="keyword">typename</span> Exclude::element_type...>>;</div>
|
|
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> </div>
|
|
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span> <span class="keyword">template</span><std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>></div>
|
|
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> <a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(<span class="keyword">const</span> <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">base_type::entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>, std::index_sequence<Index...>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span> <span class="keywordflow">return</span> std::tuple_cat(<a class="code hl_class" href="classentt_1_1basic__storage.html">storage<Index></a>()->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...);</div>
|
|
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> }</div>
|
|
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span> </div>
|
|
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> <span class="keyword">template</span><std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Curr</a>, std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Other</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>></div>
|
|
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> dispatch_get(<span class="keyword">const</span> std::tuple<typename base_type::entity_type, Args...> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Curr</a> == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Other</a>) {</div>
|
|
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> <span class="keywordflow">return</span> std::forward_as_tuple(std::get<Args>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)...);</div>
|
|
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"> 446</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">storage<Other></a>()->get_as_tuple(std::get<0>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>));</div>
|
|
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno"> 448</span> }</div>
|
|
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> }</div>
|
|
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span> </div>
|
|
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> <span class="keyword">template</span><std::size_t <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Curr</a>, <span class="keyword">typename</span> Func, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>></div>
|
|
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> <span class="keywordtype">void</span> each(Func &func, std::index_sequence<Index...>)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">tombstone_check_required</a> = ((<span class="keyword">sizeof</span>...(Get) == 1u) && ... && (Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>));</div>
|
|
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span> </div>
|
|
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno"> 455</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>: <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">storage<Curr></a>()->each()) {</div>
|
|
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno"> 456</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_namespace" href="namespaceentt.html">entt</a> = std::get<0>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>); (!<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">tombstone_check_required</a> || (<a class="code hl_namespace" href="namespaceentt.html">entt</a> != <a class="code hl_variable" href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862">tombstone</a>)) && ((<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Curr</a> == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> || base_type::pool_at(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>)->contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)) && ...) && base_type::none_of(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)) {</div>
|
|
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno"> 457</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_variable" href="namespaceentt.html#a4f238620469de3ef2bafdb28fe4657ef">is_applicable_v</a><Func, <span class="keyword">decltype</span>(std::tuple_cat(std::tuple<entity_type>{}, std::declval<basic_view>().get({})))>) {</div>
|
|
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno"> 458</span> std::apply(func, std::tuple_cat(std::make_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">dispatch_get<Curr, Index></a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)...));</div>
|
|
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> std::apply(func, std::tuple_cat(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">dispatch_get<Curr, Index></a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)...));</div>
|
|
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span> }</div>
|
|
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> }</div>
|
|
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> }</div>
|
|
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> }</div>
|
|
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> </div>
|
|
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> <span class="keyword">template</span><<span class="keyword">typename</span> Func, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>></div>
|
|
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> <span class="keywordtype">void</span> pick_and_each(Func &func, std::index_sequence<Index...> seq)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> *<a class="code hl_class" href="classentt_1_1basic__view.html">view</a> = base_type::handle(); <a class="code hl_class" href="classentt_1_1basic__view.html">view</a> != <span class="keyword">nullptr</span>) {</div>
|
|
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span> ((<a class="code hl_class" href="classentt_1_1basic__view.html">view</a> == base_type::pool_at(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>) ? <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">each<Index></a>(func, seq) : <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">void</a>()), ...);</div>
|
|
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> }</div>
|
|
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> }</div>
|
|
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> </div>
|
|
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"> 473</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a0ff2cde1a50fddc6d0ea89f3afe9a1cb"> 475</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a0ff2cde1a50fddc6d0ea89f3afe9a1cb">common_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#a49d50a6ed08c233e75b59bc3aed62e46">base_type::common_type</a>;</div>
|
|
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2"> 477</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2">entity_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">base_type::entity_type</a>;</div>
|
|
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afc8e7c18025093c344df42af5aff77aa"> 479</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afc8e7c18025093c344df42af5aff77aa">size_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">base_type::size_type</a>;</div>
|
|
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a572ec90eb0a60a1de9f801d3b9c3a448"> 481</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a572ec90eb0a60a1de9f801d3b9c3a448">iterator</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">base_type::iterator</a>;</div>
|
|
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad2bf640daad08eec4206cd7fd0442f9a"> 483</a></span> <span class="keyword">using </span><a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable</a> = <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor</a><internal::extended_view_iterator<<a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a572ec90eb0a60a1de9f801d3b9c3a448">iterator</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>...>>;</div>
|
|
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno"> 484</span> </div>
|
|
<div class="foldopen" id="foldopen00486" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a18e806e619209655ef00a44fb984dc91"> 486</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a18e806e619209655ef00a44fb984dc91">basic_view</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno"> 487</span> : <a class="code hl_class" href="classentt_1_1basic__common__view.html">base_type</a>{} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"> 488</span> </div>
|
|
<div class="foldopen" id="foldopen00494" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#af11033bff1be4277cd98aea2645cb90f"> 494</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#af11033bff1be4277cd98aea2645cb90f">basic_view</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> &...value, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a> &...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno"> 495</span> : <a class="code hl_class" href="classentt_1_1basic__common__view.html">base_type</a>{{&value...}, {&<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a>...}} {</div>
|
|
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno"> 496</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno"> 497</span> </div>
|
|
<div class="foldopen" id="foldopen00503" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ae6e5af07e9553705cdb58386e4fa499d"> 503</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ae6e5af07e9553705cdb58386e4fa499d">basic_view</a>(std::tuple<Get &...> value, std::tuple<Exclude &...> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a> = {}) <span class="keyword">noexcept</span></div>
|
|
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno"> 504</span> : <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a>{std::<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">make_from_tuple</a><<a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a>>(std::<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">tuple_cat</a>(value, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">excl</a>))} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno"> 505</span> </div>
|
|
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno"> 510</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00511" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad9ef674ebaedbf8c8d2db1bd885a71d5"> 511</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad9ef674ebaedbf8c8d2db1bd885a71d5">use</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno"> 512</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">use<index_of<Type></a>>();</div>
|
|
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno"> 513</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno"> 514</span> </div>
|
|
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno"> 519</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="foldopen" id="foldopen00520" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad9ef674ebaedbf8c8d2db1bd885a71d5"> 520</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad9ef674ebaedbf8c8d2db1bd885a71d5">use</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno"> 521</span> base_type::use(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>);</div>
|
|
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno"> 522</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno"> 523</span> </div>
|
|
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno"> 529</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00530" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afa5d580bf040d966091f63d2dcc8e771"> 530</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afa5d580bf040d966091f63d2dcc8e771">storage</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno"> 531</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1basic__storage.html">storage<index_of<Type></a>>();</div>
|
|
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno"> 532</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno"> 533</span> </div>
|
|
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno"> 539</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="foldopen" id="foldopen00540" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afa5d580bf040d966091f63d2dcc8e771"> 540</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afa5d580bf040d966091f63d2dcc8e771">storage</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno"> 541</span> <span class="keyword">using </span>type = <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>..., <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>...>>;</div>
|
|
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno"> 542</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>type *<span class="keyword">></span>(<span class="keyword">const_cast<</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t<common_type, type></a> *<span class="keyword">></span>(base_type::storage(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>)));</div>
|
|
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno"> 543</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno"> 544</span> </div>
|
|
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno"> 550</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00551" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2f653721035d75ee1353e2e9ee553bcb"> 551</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2f653721035d75ee1353e2e9ee553bcb">storage</a>(Type &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno"> 552</span> <a class="code hl_class" href="classentt_1_1basic__storage.html">storage<index_of<typename Type::element_type></a>>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>);</div>
|
|
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno"> 553</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno"> 554</span> </div>
|
|
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno"> 561</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index, <span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00562" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a3195ed2211e4013883ab9dad6306c9da"> 562</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a3195ed2211e4013883ab9dad6306c9da">storage</a>(Type &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno"> 563</span> <span class="keyword">static_assert</span>(std::is_convertible_v<Type &, <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>..., <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>...>> &>, <span class="stringliteral">"Unexpected type"</span>);</div>
|
|
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno"> 564</span> base_type::storage(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>);</div>
|
|
<div class="line"><a id="l00565" name="l00565"></a><span class="lineno"> 565</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno"> 566</span> </div>
|
|
<div class="foldopen" id="foldopen00572" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ab0ba88c753f7b489eaa6a01ada6a35c2"> 572</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <span class="keyword">operator</span>[](<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno"> 573</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno"> 574</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno"> 575</span> </div>
|
|
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno"> 583</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Other</a>></div>
|
|
<div class="foldopen" id="foldopen00584" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#aab5ab7ecb196e9ed26312af6b284d5af"> 584</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#aab5ab7ecb196e9ed26312af6b284d5af">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno"> 585</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">get<index_of<Type></a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">index_of<Other></a>...>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno"> 586</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno"> 587</span> </div>
|
|
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno"> 594</span> <span class="keyword">template</span><std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>></div>
|
|
<div class="foldopen" id="foldopen00595" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2774600071b22c8b8507f425ab346df3"> 595</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2774600071b22c8b8507f425ab346df3">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno"> 596</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno"> 597</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>, std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno"> 598</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 1) {</div>
|
|
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno"> 599</span> <span class="keywordflow">return</span> (<a class="code hl_class" href="classentt_1_1basic__storage.html">storage<Index></a>()-><a class="code hl_function" href="classentt_1_1basic__storage.html#a3d5a1009a9e86a3bb051eaaf01864574">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>), ...);</div>
|
|
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno"> 600</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno"> 601</span> <span class="keywordflow">return</span> std::tuple_cat(<a class="code hl_class" href="classentt_1_1basic__storage.html">storage<Index></a>()->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...);</div>
|
|
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno"> 602</span> }</div>
|
|
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno"> 603</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno"> 604</span> </div>
|
|
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno"> 620</span> <span class="keyword">template</span><<span class="keyword">typename</span> Func></div>
|
|
<div class="foldopen" id="foldopen00621" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a201c77165fbb557c7f82023fb6cdeb30"> 621</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a201c77165fbb557c7f82023fb6cdeb30">each</a>(Func func)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno"> 622</span> pick_and_each(func, std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno"> 623</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno"> 624</span> </div>
|
|
<div class="foldopen" id="foldopen00634" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a9638fe48b3b3dd15d69eccd8ac88c7e1"> 634</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable</a> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a9638fe48b3b3dd15d69eccd8ac88c7e1">each</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno"> 635</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable</a>{base_type::begin(), base_type::end()};</div>
|
|
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno"> 636</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno"> 637</span> </div>
|
|
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno"> 645</span> <span class="keyword">template</span><<span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>></div>
|
|
<div class="foldopen" id="foldopen00646" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a461907e002f095b23398cff58bc88f03"> 646</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a461907e002f095b23398cff58bc88f03">operator|</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t<OGet...></a>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t<OExclude...></a>> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno"> 647</span> <span class="keywordflow">return</span> internal::view_pack<<a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>..., <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>..., <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>...>>>(</div>
|
|
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno"> 648</span> *<span class="keyword">this</span>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>...>{}, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>...>{}, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>...>{}, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>...>{});</div>
|
|
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno"> 649</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno"> 650</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno"> 651</span> </div>
|
|
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno"> 658</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, deletion_policy Policy></div>
|
|
<div class="foldopen" id="foldopen00659" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html"> 659</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1basic__storage__view.html">basic_storage_view</a> {</div>
|
|
<div class="line"><a id="l00660" name="l00660"></a><span class="lineno"> 660</span> <span class="keyword">static_assert</span>(std::is_same_v<std::remove_const_t<std::remove_reference_t<Type>>, Type>, <span class="stringliteral">"Unexpected type"</span>);</div>
|
|
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno"> 661</span> </div>
|
|
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno"> 662</span><span class="keyword">protected</span>:</div>
|
|
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno"> 664</span> <a class="code hl_class" href="classentt_1_1basic__storage__view.html">basic_storage_view</a>() <span class="keyword">noexcept</span> = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno"> 665</span> </div>
|
|
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno"> 666</span> <a class="code hl_class" href="classentt_1_1basic__storage__view.html">basic_storage_view</a>(<span class="keyword">const</span> Type *value) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno"> 667</span> : leading{value} {</div>
|
|
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno"> 668</span> ENTT_ASSERT(leading->policy() == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno"> 669</span> }</div>
|
|
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno"> 672</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135"> 674</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135">common_type</a> = Type;</div>
|
|
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6"> 676</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entity_type</a> = <span class="keyword">typename</span> common_type::entity_type;</div>
|
|
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c"> 678</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">size_type</a> = std::size_t;</div>
|
|
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8"> 680</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a> = std::conditional_t<Policy == deletion_policy::in_place, internal::view_iterator<common_type, 1u, 0u>, <span class="keyword">typename</span> common_type::iterator>;</div>
|
|
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be"> 682</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">reverse_iterator</a> = std::conditional_t<Policy == deletion_policy::in_place, void, typename common_type::reverse_iterator>;</div>
|
|
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno"> 683</span> </div>
|
|
<div class="foldopen" id="foldopen00688" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#af229ede8e401c470bc1912752d004132"> 688</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135">common_type</a> *<a class="code hl_function" href="classentt_1_1basic__storage__view.html#af229ede8e401c470bc1912752d004132">handle</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno"> 689</span> <span class="keywordflow">return</span> leading;</div>
|
|
<div class="line"><a id="l00690" name="l00690"></a><span class="lineno"> 690</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno"> 691</span> </div>
|
|
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno"> 697</span> <span class="keyword">template</span><<span class="keyword">typename</span>..., <a class="code hl_enumeration" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">deletion_policy</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Pol</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>></div>
|
|
<div class="foldopen" id="foldopen00698" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a9ff0a4d5404e4559a8d1a0406f64ba02"> 698</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t<Pol != deletion_policy::in_place, size_type> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a9ff0a4d5404e4559a8d1a0406f64ba02">size</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno"> 699</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"> 700</span> <span class="keywordflow">return</span> leading ? leading->size() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">size_type</a>{};</div>
|
|
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno"> 701</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno"> 702</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno"> 703</span> <span class="keywordflow">return</span> leading ? leading->free_list() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">size_type</a>{};</div>
|
|
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno"> 704</span> }</div>
|
|
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno"> 705</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno"> 706</span> </div>
|
|
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno"> 712</span> <span class="keyword">template</span><<span class="keyword">typename</span>..., <a class="code hl_enumeration" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">deletion_policy</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Pol</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>></div>
|
|
<div class="foldopen" id="foldopen00713" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a8e5c6f2e7baad9ffb9b92bca19fc0e18"> 713</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t<Pol == deletion_policy::in_place, size_type> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a8e5c6f2e7baad9ffb9b92bca19fc0e18">size_hint</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno"> 714</span> <span class="keywordflow">return</span> leading ? leading->size() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">size_type</a>{};</div>
|
|
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"> 715</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno"> 716</span> </div>
|
|
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno"> 722</span> <span class="keyword">template</span><<span class="keyword">typename</span>..., <a class="code hl_enumeration" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">deletion_policy</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Pol</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>></div>
|
|
<div class="foldopen" id="foldopen00723" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab"> 723</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t<Pol != deletion_policy::in_place, bool> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab">empty</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno"> 724</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno"> 725</span> <span class="keywordflow">return</span> !leading || leading->empty();</div>
|
|
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno"> 726</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno"> 727</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno"> 728</span> <span class="keywordflow">return</span> !leading || (leading->free_list() == 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>);</div>
|
|
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno"> 729</span> }</div>
|
|
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno"> 730</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno"> 731</span> </div>
|
|
<div class="foldopen" id="foldopen00739" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#acd18a7a06f28e4e56b7f89d945404f9b"> 739</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#acd18a7a06f28e4e56b7f89d945404f9b">begin</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno"> 740</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno"> 741</span> <span class="keywordflow">return</span> leading ? leading->begin() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno"> 742</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno"> 743</span> <span class="keywordflow">return</span> leading ? (leading->end() - leading->free_list()) : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno"> 744</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno"> 745</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno"> 746</span> <span class="keywordflow">return</span> leading ? <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{leading->begin(), {leading}, {}, 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>} : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno"> 747</span> }</div>
|
|
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno"> 748</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00749" name="l00749"></a><span class="lineno"> 749</span> </div>
|
|
<div class="foldopen" id="foldopen00754" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a5b513d5daf9a12092903dfe022e02d9d"> 754</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a5b513d5daf9a12092903dfe022e02d9d">end</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno"> 755</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a> || <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno"> 756</span> <span class="keywordflow">return</span> leading ? leading->end() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00757" name="l00757"></a><span class="lineno"> 757</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00758" name="l00758"></a><span class="lineno"> 758</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00759" name="l00759"></a><span class="lineno"> 759</span> <span class="keywordflow">return</span> leading ? <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{leading->end(), {leading}, {}, 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>} : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00760" name="l00760"></a><span class="lineno"> 760</span> }</div>
|
|
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno"> 761</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno"> 762</span> </div>
|
|
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno"> 771</span> <span class="keyword">template</span><<span class="keyword">typename</span>..., <a class="code hl_enumeration" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">deletion_policy</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Pol</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>></div>
|
|
<div class="foldopen" id="foldopen00772" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00772" name="l00772"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a97a7fddfa36bb8ed8d602e76d35466ce"> 772</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t<Pol != deletion_policy::in_place, reverse_iterator> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a97a7fddfa36bb8ed8d602e76d35466ce">rbegin</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno"> 773</span> <span class="keywordflow">return</span> leading ? leading->rbegin() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno"> 774</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00775" name="l00775"></a><span class="lineno"> 775</span> </div>
|
|
<div class="line"><a id="l00783" name="l00783"></a><span class="lineno"> 783</span> <span class="keyword">template</span><<span class="keyword">typename</span>..., <a class="code hl_enumeration" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">deletion_policy</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Pol</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a>></div>
|
|
<div class="foldopen" id="foldopen00784" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00784" name="l00784"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a369e34fa91dc47872f5c08672505fa93"> 784</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t<Pol != deletion_policy::in_place, reverse_iterator> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a369e34fa91dc47872f5c08672505fa93">rend</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno"> 785</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno"> 786</span> <span class="keywordflow">return</span> leading ? leading->rend() : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00787" name="l00787"></a><span class="lineno"> 787</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00788" name="l00788"></a><span class="lineno"> 788</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00789" name="l00789"></a><span class="lineno"> 789</span> <span class="keywordflow">return</span> leading ? (leading->rbegin() + leading->free_list()) : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00790" name="l00790"></a><span class="lineno"> 790</span> }</div>
|
|
<div class="line"><a id="l00791" name="l00791"></a><span class="lineno"> 791</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00792" name="l00792"></a><span class="lineno"> 792</span> </div>
|
|
<div class="foldopen" id="foldopen00798" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00798" name="l00798"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a05395820519fbf8866d7f94ba9c2c0a7"> 798</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a05395820519fbf8866d7f94ba9c2c0a7">front</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00799" name="l00799"></a><span class="lineno"> 799</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00800" name="l00800"></a><span class="lineno"> 800</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab">empty</a>() ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *leading->begin();</div>
|
|
<div class="line"><a id="l00801" name="l00801"></a><span class="lineno"> 801</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l00802" name="l00802"></a><span class="lineno"> 802</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab">empty</a>() ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *(leading->end() - leading->free_list());</div>
|
|
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno"> 803</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00804" name="l00804"></a><span class="lineno"> 804</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00805" name="l00805"></a><span class="lineno"> 805</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = <a class="code hl_function" href="classentt_1_1basic__storage__view.html#acd18a7a06f28e4e56b7f89d945404f9b">begin</a>();</div>
|
|
<div class="line"><a id="l00806" name="l00806"></a><span class="lineno"> 806</span> <span class="keywordflow">return</span> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> == <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a5b513d5daf9a12092903dfe022e02d9d">end</a>()) ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>;</div>
|
|
<div class="line"><a id="l00807" name="l00807"></a><span class="lineno"> 807</span> }</div>
|
|
<div class="line"><a id="l00808" name="l00808"></a><span class="lineno"> 808</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno"> 809</span> </div>
|
|
<div class="foldopen" id="foldopen00815" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a2ab99ba76cfc6d6e68eb39819bdbd960"> 815</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a2ab99ba76cfc6d6e68eb39819bdbd960">back</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00816" name="l00816"></a><span class="lineno"> 816</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a> || <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l00817" name="l00817"></a><span class="lineno"> 817</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab">empty</a>() ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *leading->rbegin();</div>
|
|
<div class="line"><a id="l00818" name="l00818"></a><span class="lineno"> 818</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00819" name="l00819"></a><span class="lineno"> 819</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00820" name="l00820"></a><span class="lineno"> 820</span> </div>
|
|
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno"> 821</span> <span class="keywordflow">if</span>(leading) {</div>
|
|
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno"> 822</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = leading->rbegin();</div>
|
|
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno"> 823</span> <span class="keyword">const</span> <span class="keyword">auto</span> last = leading->rend();</div>
|
|
<div class="line"><a id="l00824" name="l00824"></a><span class="lineno"> 824</span> <span class="keywordflow">for</span>(; (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> != last) && (*<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> == <a class="code hl_variable" href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862">tombstone</a>); ++<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>) {}</div>
|
|
<div class="line"><a id="l00825" name="l00825"></a><span class="lineno"> 825</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> == last ? <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a> : *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>;</div>
|
|
<div class="line"><a id="l00826" name="l00826"></a><span class="lineno"> 826</span> }</div>
|
|
<div class="line"><a id="l00827" name="l00827"></a><span class="lineno"> 827</span> </div>
|
|
<div class="line"><a id="l00828" name="l00828"></a><span class="lineno"> 828</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00829" name="l00829"></a><span class="lineno"> 829</span> }</div>
|
|
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno"> 830</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno"> 831</span> </div>
|
|
<div class="foldopen" id="foldopen00838" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00838" name="l00838"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#afc36aa8a8900f919ba7246aefffb7cda"> 838</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#afc36aa8a8900f919ba7246aefffb7cda">find</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00839" name="l00839"></a><span class="lineno"> 839</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a>) {</div>
|
|
<div class="line"><a id="l00840" name="l00840"></a><span class="lineno"> 840</span> <span class="keywordflow">return</span> leading ? leading->find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno"> 841</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l00842" name="l00842"></a><span class="lineno"> 842</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = leading ? leading->find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno"> 843</span> <span class="keywordflow">return</span> leading && (<span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">size_type</a><span class="keyword">></span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>.index()) < leading->free_list()) ? <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> : <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{};</div>
|
|
<div class="line"><a id="l00844" name="l00844"></a><span class="lineno"> 844</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00845" name="l00845"></a><span class="lineno"> 845</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = leading ? leading->find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) : <span class="keyword">typename</span> common_type::iterator{};</div>
|
|
<div class="line"><a id="l00846" name="l00846"></a><span class="lineno"> 846</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">iterator</a>{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, {leading}, {}, 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>};</div>
|
|
<div class="line"><a id="l00847" name="l00847"></a><span class="lineno"> 847</span> }</div>
|
|
<div class="line"><a id="l00848" name="l00848"></a><span class="lineno"> 848</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno"> 849</span> </div>
|
|
<div class="foldopen" id="foldopen00854" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00854" name="l00854"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a1a64743073c0809b1dda953492865db6"> 854</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">explicit</span> <span class="keyword">operator</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">bool</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00855" name="l00855"></a><span class="lineno"> 855</span> <span class="keywordflow">return</span> (leading != <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a id="l00856" name="l00856"></a><span class="lineno"> 856</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00857" name="l00857"></a><span class="lineno"> 857</span> </div>
|
|
<div class="foldopen" id="foldopen00863" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00863" name="l00863"></a><span class="lineno"><a class="line" href="classentt_1_1basic__storage__view.html#a32339020ae42bc9153a7f283c2e2939b"> 863</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__storage__view.html#a32339020ae42bc9153a7f283c2e2939b">contains</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno"> 864</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a> || <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>) {</div>
|
|
<div class="line"><a id="l00865" name="l00865"></a><span class="lineno"> 865</span> <span class="keywordflow">return</span> leading && leading->contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00866" name="l00866"></a><span class="lineno"> 866</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00867" name="l00867"></a><span class="lineno"> 867</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Policy</a> == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l00868" name="l00868"></a><span class="lineno"> 868</span> <span class="keywordflow">return</span> leading && leading->contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) && (leading->index(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) < leading->free_list());</div>
|
|
<div class="line"><a id="l00869" name="l00869"></a><span class="lineno"> 869</span> }</div>
|
|
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno"> 870</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno"> 871</span> </div>
|
|
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno"> 872</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno"> 873</span> <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135">common_type</a> *leading{};</div>
|
|
<div class="line"><a id="l00874" name="l00874"></a><span class="lineno"> 874</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00875" name="l00875"></a><span class="lineno"> 875</span> </div>
|
|
<div class="line"><a id="l00886" name="l00886"></a><span class="lineno"> 886</span><span class="keyword">template</span><<span class="keyword">typename</span> Get></div>
|
|
<div class="foldopen" id="foldopen00887" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00887" name="l00887"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html"> 887</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><>></div>
|
|
<div class="line"><a id="l00888" name="l00888"></a><span class="lineno"> 888</span> : <span class="keyword">public</span> <a class="code hl_class" href="classentt_1_1basic__storage__view.html">basic_storage_view</a><typename Get::base_type, Get::storage_policy> {</div>
|
|
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno"> 889</span> <span class="keyword">using </span><a class="code hl_class" href="classentt_1_1basic__storage__view.html">base_type</a> = <a class="code hl_class" href="classentt_1_1basic__storage__view.html">basic_storage_view<typename Get::base_type, Get::storage_policy></a>;</div>
|
|
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno"> 890</span> </div>
|
|
<div class="line"><a id="l00891" name="l00891"></a><span class="lineno"> 891</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00893" name="l00893"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a353a69f58fbb7c660c140ca284d9d137"> 893</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a353a69f58fbb7c660c140ca284d9d137">common_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135">base_type::common_type</a>;</div>
|
|
<div class="line"><a id="l00895" name="l00895"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1"> 895</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1">entity_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">base_type::entity_type</a>;</div>
|
|
<div class="line"><a id="l00897" name="l00897"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae8943f475dd11109d4c2470e6dbffdb4"> 897</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae8943f475dd11109d4c2470e6dbffdb4">size_type</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">base_type::size_type</a>;</div>
|
|
<div class="line"><a id="l00899" name="l00899"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a596bf9b9e3c27f5e02fa5dd13cf9780b"> 899</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a596bf9b9e3c27f5e02fa5dd13cf9780b">iterator</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">base_type::iterator</a>;</div>
|
|
<div class="line"><a id="l00901" name="l00901"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a47200d684b9f5b58d61c2a87e84dc8ad"> 901</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a47200d684b9f5b58d61c2a87e84dc8ad">reverse_iterator</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">base_type::reverse_iterator</a>;</div>
|
|
<div class="line"><a id="l00903" name="l00903"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b"> 903</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b">iterable</a> = std::conditional_t<Get::storage_policy == deletion_policy::in_place, iterable_adaptor<internal::extended_view_iterator<iterator, Get>>, <span class="keyword">decltype</span>(std::declval<Get>().each())>;</div>
|
|
<div class="line"><a id="l00904" name="l00904"></a><span class="lineno"> 904</span> </div>
|
|
<div class="foldopen" id="foldopen00906" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00906" name="l00906"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a69a56c8c2d74c132b295fd25c84926af"> 906</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a69a56c8c2d74c132b295fd25c84926af">basic_view</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00907" name="l00907"></a><span class="lineno"> 907</span> : <a class="code hl_class" href="classentt_1_1basic__storage__view.html">base_type</a>{} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00908" name="l00908"></a><span class="lineno"> 908</span> </div>
|
|
<div class="foldopen" id="foldopen00913" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00913" name="l00913"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0d6136f906cb8929021caeacf145651e"> 913</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0d6136f906cb8929021caeacf145651e">basic_view</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> &value) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00914" name="l00914"></a><span class="lineno"> 914</span> : <a class="code hl_class" href="classentt_1_1basic__storage__view.html">base_type</a>{&value} {</div>
|
|
<div class="line"><a id="l00915" name="l00915"></a><span class="lineno"> 915</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00916" name="l00916"></a><span class="lineno"> 916</span> </div>
|
|
<div class="foldopen" id="foldopen00921" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a02bbf202f955da7b92a11b4a0c14b425"> 921</a></span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a02bbf202f955da7b92a11b4a0c14b425">basic_view</a>(std::tuple<Get &> value, std::tuple<> = {}) <span class="keyword">noexcept</span></div>
|
|
<div class="line"><a id="l00922" name="l00922"></a><span class="lineno"> 922</span> : <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a>{std::<a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a><0>(value)} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno"> 923</span> </div>
|
|
<div class="line"><a id="l00929" name="l00929"></a><span class="lineno"> 929</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type = <span class="keyword">typename</span> Get::element_type></div>
|
|
<div class="foldopen" id="foldopen00930" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00930" name="l00930"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a5b27ce8e68f2df8c008a3baccc84bd4a"> 930</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a5b27ce8e68f2df8c008a3baccc84bd4a">storage</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00931" name="l00931"></a><span class="lineno"> 931</span> <span class="keyword">static_assert</span>(std::is_same_v<std::remove_const_t<Type>, <span class="keyword">typename</span> Get::element_type>, <span class="stringliteral">"Invalid element type"</span>);</div>
|
|
<div class="line"><a id="l00932" name="l00932"></a><span class="lineno"> 932</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">storage<0></a>();</div>
|
|
<div class="line"><a id="l00933" name="l00933"></a><span class="lineno"> 933</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00934" name="l00934"></a><span class="lineno"> 934</span> </div>
|
|
<div class="line"><a id="l00940" name="l00940"></a><span class="lineno"> 940</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="foldopen" id="foldopen00941" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00941" name="l00941"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a5b27ce8e68f2df8c008a3baccc84bd4a"> 941</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a5b27ce8e68f2df8c008a3baccc84bd4a">storage</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00942" name="l00942"></a><span class="lineno"> 942</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> == 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>, <span class="stringliteral">"Index out of bounds"</span>);</div>
|
|
<div class="line"><a id="l00943" name="l00943"></a><span class="lineno"> 943</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> *<span class="keyword">></span>(<span class="keyword">const_cast<</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t<common_type, Get></a> *<span class="keyword">></span>(base_type::handle()));</div>
|
|
<div class="line"><a id="l00944" name="l00944"></a><span class="lineno"> 944</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00945" name="l00945"></a><span class="lineno"> 945</span> </div>
|
|
<div class="foldopen" id="foldopen00950" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00950" name="l00950"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae33d4eaa3b835a8a3e3e627248efb265"> 950</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae33d4eaa3b835a8a3e3e627248efb265">storage</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00951" name="l00951"></a><span class="lineno"> 951</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">storage<0></a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>);</div>
|
|
<div class="line"><a id="l00952" name="l00952"></a><span class="lineno"> 952</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00953" name="l00953"></a><span class="lineno"> 953</span> </div>
|
|
<div class="line"><a id="l00959" name="l00959"></a><span class="lineno"> 959</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="foldopen" id="foldopen00960" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00960" name="l00960"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0ef6bf301ccb7108321289aca51ee420"> 960</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0ef6bf301ccb7108321289aca51ee420">storage</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00961" name="l00961"></a><span class="lineno"> 961</span> <span class="keyword">static_assert</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> == 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>, <span class="stringliteral">"Index out of bounds"</span>);</div>
|
|
<div class="line"><a id="l00962" name="l00962"></a><span class="lineno"> 962</span> *<span class="keyword">this</span> = <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a>{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>};</div>
|
|
<div class="line"><a id="l00963" name="l00963"></a><span class="lineno"> 963</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00964" name="l00964"></a><span class="lineno"> 964</span> </div>
|
|
<div class="foldopen" id="foldopen00969" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0fdbe80b1384bd2eb8d1e41cfb7c3d9f"> 969</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a> *<a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0fdbe80b1384bd2eb8d1e41cfb7c3d9f">operator-></a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00970" name="l00970"></a><span class="lineno"> 970</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>();</div>
|
|
<div class="line"><a id="l00971" name="l00971"></a><span class="lineno"> 971</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00972" name="l00972"></a><span class="lineno"> 972</span> </div>
|
|
<div class="foldopen" id="foldopen00978" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00978" name="l00978"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aee1e863b2ec94b44a87697b9969ff30e"> 978</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <span class="keyword">operator</span>[](<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00979" name="l00979"></a><span class="lineno"> 979</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>()->get(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00980" name="l00980"></a><span class="lineno"> 980</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00981" name="l00981"></a><span class="lineno"> 981</span> </div>
|
|
<div class="line"><a id="l00988" name="l00988"></a><span class="lineno"> 988</span> <span class="keyword">template</span><<span class="keyword">typename</span> Elem></div>
|
|
<div class="foldopen" id="foldopen00989" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00989" name="l00989"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aff66d06e6368e7b22b116e422d038562"> 989</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aff66d06e6368e7b22b116e422d038562">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00990" name="l00990"></a><span class="lineno"> 990</span> <span class="keyword">static_assert</span>(std::is_same_v<std::remove_const_t<Elem>, <span class="keyword">typename</span> Get::element_type>, <span class="stringliteral">"Invalid element type"</span>);</div>
|
|
<div class="line"><a id="l00991" name="l00991"></a><span class="lineno"> 991</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">get<0></a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00992" name="l00992"></a><span class="lineno"> 992</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00993" name="l00993"></a><span class="lineno"> 993</span> </div>
|
|
<div class="line"><a id="l01000" name="l01000"></a><span class="lineno"> 1000</span> <span class="keyword">template</span><std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>></div>
|
|
<div class="foldopen" id="foldopen01001" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01001" name="l01001"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aff66d06e6368e7b22b116e422d038562"> 1001</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aff66d06e6368e7b22b116e422d038562">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l01002" name="l01002"></a><span class="lineno"> 1002</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l01003" name="l01003"></a><span class="lineno"> 1003</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>()->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l01004" name="l01004"></a><span class="lineno"> 1004</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01005" name="l01005"></a><span class="lineno"> 1005</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1basic__storage.html">storage</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>...>()-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l01006" name="l01006"></a><span class="lineno"> 1006</span> }</div>
|
|
<div class="line"><a id="l01007" name="l01007"></a><span class="lineno"> 1007</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01008" name="l01008"></a><span class="lineno"> 1008</span> </div>
|
|
<div class="line"><a id="l01024" name="l01024"></a><span class="lineno"> 1024</span> <span class="keyword">template</span><<span class="keyword">typename</span> Func></div>
|
|
<div class="foldopen" id="foldopen01025" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01025" name="l01025"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#abb851243b85eccc5c978064a2196a29a"> 1025</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#abb851243b85eccc5c978064a2196a29a">each</a>(Func func)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l01026" name="l01026"></a><span class="lineno"> 1026</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_variable" href="namespaceentt.html#a4f238620469de3ef2bafdb28fe4657ef">is_applicable_v</a><Func, <span class="keyword">decltype</span>(std::tuple_cat(std::tuple<entity_type>{}, std::declval<basic_view>().get({})))>) {</div>
|
|
<div class="line"><a id="l01027" name="l01027"></a><span class="lineno"> 1027</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pack</a>: each()) {</div>
|
|
<div class="line"><a id="l01028" name="l01028"></a><span class="lineno"> 1028</span> std::apply(func, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pack</a>);</div>
|
|
<div class="line"><a id="l01029" name="l01029"></a><span class="lineno"> 1029</span> }</div>
|
|
<div class="line"><a id="l01030" name="l01030"></a><span class="lineno"> 1030</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a> || Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l01031" name="l01031"></a><span class="lineno"> 1031</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_void_v<typename Get::value_type>) {</div>
|
|
<div class="line"><a id="l01032" name="l01032"></a><span class="lineno"> 1032</span> <span class="keywordflow">for</span>(<a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae8943f475dd11109d4c2470e6dbffdb4">size_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> = base_type::size(); <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>; --<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>) {</div>
|
|
<div class="line"><a id="l01033" name="l01033"></a><span class="lineno"> 1033</span> func();</div>
|
|
<div class="line"><a id="l01034" name="l01034"></a><span class="lineno"> 1034</span> }</div>
|
|
<div class="line"><a id="l01035" name="l01035"></a><span class="lineno"> 1035</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01036" name="l01036"></a><span class="lineno"> 1036</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">len</a> = base_type::size(); <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">len</a> != 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>) {</div>
|
|
<div class="line"><a id="l01037" name="l01037"></a><span class="lineno"> 1037</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> last = <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>()->end(), first = last - <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">len</a>; first != last; ++first) {</div>
|
|
<div class="line"><a id="l01038" name="l01038"></a><span class="lineno"> 1038</span> func(*first);</div>
|
|
<div class="line"><a id="l01039" name="l01039"></a><span class="lineno"> 1039</span> }</div>
|
|
<div class="line"><a id="l01040" name="l01040"></a><span class="lineno"> 1040</span> }</div>
|
|
<div class="line"><a id="l01041" name="l01041"></a><span class="lineno"> 1041</span> }</div>
|
|
<div class="line"><a id="l01042" name="l01042"></a><span class="lineno"> 1042</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01043" name="l01043"></a><span class="lineno"> 1043</span> <span class="keyword">static_assert</span>(Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l01044" name="l01044"></a><span class="lineno"> 1044</span> </div>
|
|
<div class="line"><a id="l01045" name="l01045"></a><span class="lineno"> 1045</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pack</a>: each()) {</div>
|
|
<div class="line"><a id="l01046" name="l01046"></a><span class="lineno"> 1046</span> std::apply([&func](<span class="keyword">const</span> <span class="keyword">auto</span>, <span class="keyword">auto</span> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>) { func(std::forward<<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>)>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">elem</a>)...); }, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pack</a>);</div>
|
|
<div class="line"><a id="l01047" name="l01047"></a><span class="lineno"> 1047</span> }</div>
|
|
<div class="line"><a id="l01048" name="l01048"></a><span class="lineno"> 1048</span> }</div>
|
|
<div class="line"><a id="l01049" name="l01049"></a><span class="lineno"> 1049</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01050" name="l01050"></a><span class="lineno"> 1050</span> </div>
|
|
<div class="foldopen" id="foldopen01060" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01060" name="l01060"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aca8aa93c28dfd02fb09310735e4e4925"> 1060</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b">iterable</a> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aca8aa93c28dfd02fb09310735e4e4925">each</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l01061" name="l01061"></a><span class="lineno"> 1061</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">deletion_policy::swap_and_pop</a> || Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">deletion_policy::swap_only</a>) {</div>
|
|
<div class="line"><a id="l01062" name="l01062"></a><span class="lineno"> 1062</span> <span class="keywordflow">return</span> base_type::handle() ? <a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>()->each() : <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b">iterable</a>{};</div>
|
|
<div class="line"><a id="l01063" name="l01063"></a><span class="lineno"> 1063</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01064" name="l01064"></a><span class="lineno"> 1064</span> <span class="keyword">static_assert</span>(Get::storage_policy == <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>, <span class="stringliteral">"Unexpected storage policy"</span>);</div>
|
|
<div class="line"><a id="l01065" name="l01065"></a><span class="lineno"> 1065</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b">iterable</a>{base_type::begin(), base_type::end()};</div>
|
|
<div class="line"><a id="l01066" name="l01066"></a><span class="lineno"> 1066</span> }</div>
|
|
<div class="line"><a id="l01067" name="l01067"></a><span class="lineno"> 1067</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01068" name="l01068"></a><span class="lineno"> 1068</span> </div>
|
|
<div class="line"><a id="l01076" name="l01076"></a><span class="lineno"> 1076</span> <span class="keyword">template</span><<span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>></div>
|
|
<div class="foldopen" id="foldopen01077" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01077" name="l01077"></a><span class="lineno"><a class="line" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a06b95c774a25f1329bde53d85035765a"> 1077</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> <a class="code hl_function" href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a06b95c774a25f1329bde53d85035765a">operator|</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t<OGet...></a>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t<OExclude...></a>> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l01078" name="l01078"></a><span class="lineno"> 1078</span> <span class="keywordflow">return</span> internal::view_pack<<a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>...>>>(</div>
|
|
<div class="line"><a id="l01079" name="l01079"></a><span class="lineno"> 1079</span> *<span class="keyword">this</span>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>, std::index_sequence_for<Get>{}, std::index_sequence_for<>{}, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OGet</a>...>{}, std::index_sequence_for<<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">OExclude</a>...>{});</div>
|
|
<div class="line"><a id="l01080" name="l01080"></a><span class="lineno"> 1080</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01081" name="l01081"></a><span class="lineno"> 1081</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l01082" name="l01082"></a><span class="lineno"> 1082</span> </div>
|
|
<div class="line"><a id="l01088" name="l01088"></a><span class="lineno"> 1088</span><span class="keyword">template</span><<span class="keyword">typename</span>... Type></div>
|
|
<div class="line"><a id="l01089" name="l01089"></a><span class="lineno"><a class="line" href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1"> 1089</a></span><a class="code hl_function" href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1">basic_view</a>(Type &...<a class="code hl_class" href="classentt_1_1basic__storage.html">storage</a>) -> <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view</a><<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><Type...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t<></a>>;</div>
|
|
<div class="line"><a id="l01090" name="l01090"></a><span class="lineno"> 1090</span> </div>
|
|
<div class="line"><a id="l01096" name="l01096"></a><span class="lineno"> 1096</span><span class="keyword">template</span><<span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Get</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Exclude</a>></div>
|
|
<div class="line"><a id="l01097" name="l01097"></a><span class="lineno"><a class="line" href="namespaceentt.html#a60bb84cde1e16efe42ffc9ec956b66b4"> 1097</a></span><a class="code hl_function" href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1">basic_view</a>(std::tuple<Get &...>, std::tuple<Exclude &...> = {}) -> <a class="code hl_function" href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1">basic_view</a><<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">get_t<Get...></a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">exclude_t<Exclude...></a>>;</div>
|
|
<div class="line"><a id="l01098" name="l01098"></a><span class="lineno"> 1098</span> </div>
|
|
<div class="line"><a id="l01099" name="l01099"></a><span class="lineno"> 1099</span>} <span class="comment">// namespace entt</span></div>
|
|
<div class="line"><a id="l01100" name="l01100"></a><span class="lineno"> 1100</span> </div>
|
|
<div class="line"><a id="l01101" name="l01101"></a><span class="lineno"> 1101</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html"><div class="ttname"><a href="classentt_1_1basic__common__view.html">entt::basic_common_view</a></div><div class="ttdoc">Basic storage view implementation.</div><div class="ttdef"><b>Definition</b> <a href="#l00226">view.hpp:226</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a34fdba8fb0d1d16714b473ac31b0f39d"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a34fdba8fb0d1d16714b473ac31b0f39d">entt::basic_common_view::size_hint</a></div><div class="ttdeci">size_type size_hint() const noexcept</div><div class="ttdoc">Estimates the number of entities iterated by the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00332">view.hpp:332</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a4572fafa94a210f91cea5a97d5dda3b4"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a4572fafa94a210f91cea5a97d5dda3b4">entt::basic_common_view::refresh</a></div><div class="ttdeci">void refresh() noexcept</div><div class="ttdoc">Updates the internal leading view if required.</div><div class="ttdef"><b>Definition</b> <a href="#l00311">view.hpp:311</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a49d50a6ed08c233e75b59bc3aed62e46"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a49d50a6ed08c233e75b59bc3aed62e46">entt::basic_common_view::common_type</a></div><div class="ttdeci">Type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00302">view.hpp:302</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a4d4caecc5dfcf100b0132198fdfe43b3"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a4d4caecc5dfcf100b0132198fdfe43b3">entt::basic_common_view::handle</a></div><div class="ttdeci">const common_type * handle() const noexcept</div><div class="ttdoc">Returns the leading storage of a view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00324">view.hpp:324</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a5123427d3555f05d61b996fe518b78de"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a5123427d3555f05d61b996fe518b78de">entt::basic_common_view::contains</a></div><div class="ttdeci">bool contains(const entity_type entt) const noexcept</div><div class="ttdoc">Checks if a view contains an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00404">view.hpp:404</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a51cd2d2c3725b7b4122b594dac974da6"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a51cd2d2c3725b7b4122b594dac974da6">entt::basic_common_view::begin</a></div><div class="ttdeci">iterator begin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00343">view.hpp:343</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a6b0517d50e658cec5c259d0cf1cad8d7"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a6b0517d50e658cec5c259d0cf1cad8d7">entt::basic_common_view::back</a></div><div class="ttdeci">entity_type back() const noexcept</div><div class="ttdoc">Returns the last entity of the view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00370">view.hpp:370</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_a7d5614b020a387078f807a58cea0cd90"><div class="ttname"><a href="classentt_1_1basic__common__view.html#a7d5614b020a387078f807a58cea0cd90">entt::basic_common_view::front</a></div><div class="ttdeci">entity_type front() const noexcept</div><div class="ttdoc">Returns the first entity of the view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00360">view.hpp:360</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_aa9ae1627c27d445f21b8ddf3db3fe78f"><div class="ttname"><a href="classentt_1_1basic__common__view.html#aa9ae1627c27d445f21b8ddf3db3fe78f">entt::basic_common_view::size_type</a></div><div class="ttdeci">std::size_t size_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00306">view.hpp:306</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_aac1aa2564ab77156936955392053c61d"><div class="ttname"><a href="classentt_1_1basic__common__view.html#aac1aa2564ab77156936955392053c61d">entt::basic_common_view::end</a></div><div class="ttdeci">iterator end() const noexcept</div><div class="ttdoc">Returns an iterator that is past the last entity of the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00351">view.hpp:351</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_abb964d3db8d2476860c91314e6f353b0"><div class="ttname"><a href="classentt_1_1basic__common__view.html#abb964d3db8d2476860c91314e6f353b0">entt::basic_common_view::find</a></div><div class="ttdeci">iterator find(const entity_type entt) const noexcept</div><div class="ttdoc">Finds an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00387">view.hpp:387</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_acca0fa3e8c6ca7fb4e3cebb1964ab146"><div class="ttname"><a href="classentt_1_1basic__common__view.html#acca0fa3e8c6ca7fb4e3cebb1964ab146">entt::basic_common_view::iterator</a></div><div class="ttdeci">internal::view_iterator< common_type, Get, Exclude > iterator</div><div class="ttdoc">Forward iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00308">view.hpp:308</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__common__view_html_adab226b6dd6c5fa0959afe67f17a9c75"><div class="ttname"><a href="classentt_1_1basic__common__view.html#adab226b6dd6c5fa0959afe67f17a9c75">entt::basic_common_view::entity_type</a></div><div class="ttdeci">typename Type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00304">view.hpp:304</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html"><div class="ttname"><a href="classentt_1_1basic__storage__view.html">entt::basic_storage_view</a></div><div class="ttdoc">Basic storage view implementation.</div><div class="ttdef"><b>Definition</b> <a href="#l00659">view.hpp:659</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a05395820519fbf8866d7f94ba9c2c0a7"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a05395820519fbf8866d7f94ba9c2c0a7">entt::basic_storage_view::front</a></div><div class="ttdeci">entity_type front() const noexcept</div><div class="ttdoc">Returns the first entity of the view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00798">view.hpp:798</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a1009b1f37493279e5f16aa9e516791ab"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a1009b1f37493279e5f16aa9e516791ab">entt::basic_storage_view::empty</a></div><div class="ttdeci">std::enable_if_t< Pol !=deletion_policy::in_place, bool > empty() const noexcept</div><div class="ttdoc">Checks whether a view is empty.</div><div class="ttdef"><b>Definition</b> <a href="#l00723">view.hpp:723</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a1e9df97e90ca800813415aa9592827be"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a1e9df97e90ca800813415aa9592827be">entt::basic_storage_view::reverse_iterator</a></div><div class="ttdeci">std::conditional_t< Policy==deletion_policy::in_place, void, typename common_type::reverse_iterator > reverse_iterator</div><div class="ttdoc">Reverse iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00682">view.hpp:682</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a2ab99ba76cfc6d6e68eb39819bdbd960"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a2ab99ba76cfc6d6e68eb39819bdbd960">entt::basic_storage_view::back</a></div><div class="ttdeci">entity_type back() const noexcept</div><div class="ttdoc">Returns the last entity of the view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00815">view.hpp:815</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a32339020ae42bc9153a7f283c2e2939b"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a32339020ae42bc9153a7f283c2e2939b">entt::basic_storage_view::contains</a></div><div class="ttdeci">bool contains(const entity_type entt) const noexcept</div><div class="ttdoc">Checks if a view contains an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00863">view.hpp:863</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a369e34fa91dc47872f5c08672505fa93"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a369e34fa91dc47872f5c08672505fa93">entt::basic_storage_view::rend</a></div><div class="ttdeci">std::enable_if_t< Pol !=deletion_policy::in_place, reverse_iterator > rend() const noexcept</div><div class="ttdoc">Returns an iterator that is past the last entity of the reversed view.</div><div class="ttdef"><b>Definition</b> <a href="#l00784">view.hpp:784</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a5b513d5daf9a12092903dfe022e02d9d"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a5b513d5daf9a12092903dfe022e02d9d">entt::basic_storage_view::end</a></div><div class="ttdeci">iterator end() const noexcept</div><div class="ttdoc">Returns an iterator that is past the last entity of the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00754">view.hpp:754</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a7e768d8d546580a784a6ce6ce03bbcd8"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a7e768d8d546580a784a6ce6ce03bbcd8">entt::basic_storage_view::iterator</a></div><div class="ttdeci">std::conditional_t< Policy==deletion_policy::in_place, internal::view_iterator< common_type, 1u, 0u >, typename common_type::iterator > iterator</div><div class="ttdoc">Random access iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00680">view.hpp:680</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a8e5c6f2e7baad9ffb9b92bca19fc0e18"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a8e5c6f2e7baad9ffb9b92bca19fc0e18">entt::basic_storage_view::size_hint</a></div><div class="ttdeci">std::enable_if_t< Pol==deletion_policy::in_place, size_type > size_hint() const noexcept</div><div class="ttdoc">Estimates the number of entities iterated by the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00713">view.hpp:713</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a97a7fddfa36bb8ed8d602e76d35466ce"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a97a7fddfa36bb8ed8d602e76d35466ce">entt::basic_storage_view::rbegin</a></div><div class="ttdeci">std::enable_if_t< Pol !=deletion_policy::in_place, reverse_iterator > rbegin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the reversed view.</div><div class="ttdef"><b>Definition</b> <a href="#l00772">view.hpp:772</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_a9ff0a4d5404e4559a8d1a0406f64ba02"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#a9ff0a4d5404e4559a8d1a0406f64ba02">entt::basic_storage_view::size</a></div><div class="ttdeci">std::enable_if_t< Pol !=deletion_policy::in_place, size_type > size() const noexcept</div><div class="ttdoc">Returns the number of entities that have the given element.</div><div class="ttdef"><b>Definition</b> <a href="#l00698">view.hpp:698</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_aa0dae829f9535d9c7d256d6cfa8efe6c"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#aa0dae829f9535d9c7d256d6cfa8efe6c">entt::basic_storage_view::size_type</a></div><div class="ttdeci">std::size_t size_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00678">view.hpp:678</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_ab15a8b7dcf21202d2bb9040b18358de6"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#ab15a8b7dcf21202d2bb9040b18358de6">entt::basic_storage_view::entity_type</a></div><div class="ttdeci">typename common_type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00676">view.hpp:676</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_acd18a7a06f28e4e56b7f89d945404f9b"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#acd18a7a06f28e4e56b7f89d945404f9b">entt::basic_storage_view::begin</a></div><div class="ttdeci">iterator begin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the view.</div><div class="ttdef"><b>Definition</b> <a href="#l00739">view.hpp:739</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_af229ede8e401c470bc1912752d004132"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#af229ede8e401c470bc1912752d004132">entt::basic_storage_view::handle</a></div><div class="ttdeci">const common_type * handle() const noexcept</div><div class="ttdoc">Returns the leading storage of a view, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00688">view.hpp:688</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_af3a7a5c31f0b29e30fc86119e7f76135"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#af3a7a5c31f0b29e30fc86119e7f76135">entt::basic_storage_view::common_type</a></div><div class="ttdeci">Type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00674">view.hpp:674</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage__view_html_afc36aa8a8900f919ba7246aefffb7cda"><div class="ttname"><a href="classentt_1_1basic__storage__view.html#afc36aa8a8900f919ba7246aefffb7cda">entt::basic_storage_view::find</a></div><div class="ttdeci">iterator find(const entity_type entt) const noexcept</div><div class="ttdoc">Finds an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00838">view.hpp:838</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage_html"><div class="ttname"><a href="classentt_1_1basic__storage.html">entt::basic_storage</a></div><div class="ttdoc">Storage implementation.</div><div class="ttdef"><b>Definition</b> <a href="storage_8hpp_source.html#l00230">storage.hpp:230</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__storage_html_a3d5a1009a9e86a3bb051eaaf01864574"><div class="ttname"><a href="classentt_1_1basic__storage.html#a3d5a1009a9e86a3bb051eaaf01864574">entt::basic_storage::get</a></div><div class="ttdeci">const value_type & get(const entity_type entt) const noexcept</div><div class="ttdoc">Returns the object assigned to an entity.</div><div class="ttdef"><b>Definition</b> <a href="storage_8hpp_source.html#l00639">storage.hpp:639</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a02bbf202f955da7b92a11b4a0c14b425"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a02bbf202f955da7b92a11b4a0c14b425">entt::basic_view< get_t< Get >, exclude_t<> >::basic_view</a></div><div class="ttdeci">basic_view(std::tuple< Get & > value, std::tuple<>={}) noexcept</div><div class="ttdoc">Constructs a view from a storage class.</div><div class="ttdef"><b>Definition</b> <a href="#l00921">view.hpp:921</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a032956125db6be519c82e860b76beff1"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a032956125db6be519c82e860b76beff1">entt::basic_view< get_t< Get >, exclude_t<> >::entity_type</a></div><div class="ttdeci">typename base_type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00895">view.hpp:895</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a06b95c774a25f1329bde53d85035765a"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a06b95c774a25f1329bde53d85035765a">entt::basic_view< get_t< Get >, exclude_t<> >::operator|</a></div><div class="ttdeci">auto operator|(const basic_view< get_t< OGet... >, exclude_t< OExclude... > > &other) const noexcept</div><div class="ttdoc">Combines two views in a more specific one.</div><div class="ttdef"><b>Definition</b> <a href="#l01077">view.hpp:1077</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a0d6136f906cb8929021caeacf145651e"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0d6136f906cb8929021caeacf145651e">entt::basic_view< get_t< Get >, exclude_t<> >::basic_view</a></div><div class="ttdeci">basic_view(Get &value) noexcept</div><div class="ttdoc">Constructs a view from a storage class.</div><div class="ttdef"><b>Definition</b> <a href="#l00913">view.hpp:913</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a0ef6bf301ccb7108321289aca51ee420"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0ef6bf301ccb7108321289aca51ee420">entt::basic_view< get_t< Get >, exclude_t<> >::storage</a></div><div class="ttdeci">void storage(Get &elem) noexcept</div><div class="ttdoc">Assigns a storage to a view.</div><div class="ttdef"><b>Definition</b> <a href="#l00960">view.hpp:960</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a0fdbe80b1384bd2eb8d1e41cfb7c3d9f"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a0fdbe80b1384bd2eb8d1e41cfb7c3d9f">entt::basic_view< get_t< Get >, exclude_t<> >::operator-></a></div><div class="ttdeci">Get * operator->() const noexcept</div><div class="ttdoc">Returns a pointer to the underlying storage.</div><div class="ttdef"><b>Definition</b> <a href="#l00969">view.hpp:969</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a353a69f58fbb7c660c140ca284d9d137"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a353a69f58fbb7c660c140ca284d9d137">entt::basic_view< get_t< Get >, exclude_t<> >::common_type</a></div><div class="ttdeci">typename base_type::common_type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00893">view.hpp:893</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a47200d684b9f5b58d61c2a87e84dc8ad"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a47200d684b9f5b58d61c2a87e84dc8ad">entt::basic_view< get_t< Get >, exclude_t<> >::reverse_iterator</a></div><div class="ttdeci">typename base_type::reverse_iterator reverse_iterator</div><div class="ttdoc">Reverse iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00901">view.hpp:901</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a596bf9b9e3c27f5e02fa5dd13cf9780b"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a596bf9b9e3c27f5e02fa5dd13cf9780b">entt::basic_view< get_t< Get >, exclude_t<> >::iterator</a></div><div class="ttdeci">typename base_type::iterator iterator</div><div class="ttdoc">Random access iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00899">view.hpp:899</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a5b27ce8e68f2df8c008a3baccc84bd4a"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a5b27ce8e68f2df8c008a3baccc84bd4a">entt::basic_view< get_t< Get >, exclude_t<> >::storage</a></div><div class="ttdeci">auto * storage() const noexcept</div><div class="ttdoc">Returns the storage for a given element type, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00930">view.hpp:930</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_a69a56c8c2d74c132b295fd25c84926af"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#a69a56c8c2d74c132b295fd25c84926af">entt::basic_view< get_t< Get >, exclude_t<> >::basic_view</a></div><div class="ttdeci">basic_view() noexcept</div><div class="ttdoc">Default constructor to use to create empty, invalid views.</div><div class="ttdef"><b>Definition</b> <a href="#l00906">view.hpp:906</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_abb851243b85eccc5c978064a2196a29a"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#abb851243b85eccc5c978064a2196a29a">entt::basic_view< get_t< Get >, exclude_t<> >::each</a></div><div class="ttdeci">void each(Func func) const</div><div class="ttdoc">Iterates entities and elements and applies the given function object to them.</div><div class="ttdef"><b>Definition</b> <a href="#l01025">view.hpp:1025</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_aca8aa93c28dfd02fb09310735e4e4925"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aca8aa93c28dfd02fb09310735e4e4925">entt::basic_view< get_t< Get >, exclude_t<> >::each</a></div><div class="ttdeci">iterable each() const noexcept</div><div class="ttdoc">Returns an iterable object to use to visit a view.</div><div class="ttdef"><b>Definition</b> <a href="#l01060">view.hpp:1060</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_ae33d4eaa3b835a8a3e3e627248efb265"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae33d4eaa3b835a8a3e3e627248efb265">entt::basic_view< get_t< Get >, exclude_t<> >::storage</a></div><div class="ttdeci">void storage(Get &elem) noexcept</div><div class="ttdoc">Assigns a storage to a view.</div><div class="ttdef"><b>Definition</b> <a href="#l00950">view.hpp:950</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_ae8943f475dd11109d4c2470e6dbffdb4"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#ae8943f475dd11109d4c2470e6dbffdb4">entt::basic_view< get_t< Get >, exclude_t<> >::size_type</a></div><div class="ttdeci">typename base_type::size_type size_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00897">view.hpp:897</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_afcea8ad4fe6ebb1ac142528f85f96b1b"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#afcea8ad4fe6ebb1ac142528f85f96b1b">entt::basic_view< get_t< Get >, exclude_t<> >::iterable</a></div><div class="ttdeci">std::conditional_t< Get::storage_policy==deletion_policy::in_place, iterable_adaptor< internal::extended_view_iterator< iterator, Get > >, decltype(std::declval< Get >().each())> iterable</div><div class="ttdoc">Iterable view type.</div><div class="ttdef"><b>Definition</b> <a href="#l00903">view.hpp:903</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4_html_aff66d06e6368e7b22b116e422d038562"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_01_4_00_01exclude__t_3_4_01_4.html#aff66d06e6368e7b22b116e422d038562">entt::basic_view< get_t< Get >, exclude_t<> >::get</a></div><div class="ttdeci">decltype(auto) get(const entity_type entt) const</div><div class="ttdoc">Returns the element assigned to the given entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00989">view.hpp:989</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a05ec937d47504bda347069c6330000c2"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a05ec937d47504bda347069c6330000c2">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::entity_type</a></div><div class="ttdeci">typename base_type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00477">view.hpp:477</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a0ff2cde1a50fddc6d0ea89f3afe9a1cb"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a0ff2cde1a50fddc6d0ea89f3afe9a1cb">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::common_type</a></div><div class="ttdeci">typename base_type::common_type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00475">view.hpp:475</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a18e806e619209655ef00a44fb984dc91"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a18e806e619209655ef00a44fb984dc91">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::basic_view</a></div><div class="ttdeci">basic_view() noexcept</div><div class="ttdoc">Default constructor to use to create empty, invalid views.</div><div class="ttdef"><b>Definition</b> <a href="#l00486">view.hpp:486</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a201c77165fbb557c7f82023fb6cdeb30"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a201c77165fbb557c7f82023fb6cdeb30">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::each</a></div><div class="ttdeci">void each(Func func) const</div><div class="ttdoc">Iterates entities and elements and applies the given function object to them.</div><div class="ttdef"><b>Definition</b> <a href="#l00621">view.hpp:621</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a2774600071b22c8b8507f425ab346df3"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2774600071b22c8b8507f425ab346df3">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::get</a></div><div class="ttdeci">decltype(auto) get(const entity_type entt) const</div><div class="ttdoc">Returns the elements assigned to the given entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00595">view.hpp:595</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a2f653721035d75ee1353e2e9ee553bcb"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a2f653721035d75ee1353e2e9ee553bcb">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::storage</a></div><div class="ttdeci">void storage(Type &elem) noexcept</div><div class="ttdoc">Assigns a storage to a view.</div><div class="ttdef"><b>Definition</b> <a href="#l00551">view.hpp:551</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a3195ed2211e4013883ab9dad6306c9da"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a3195ed2211e4013883ab9dad6306c9da">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::storage</a></div><div class="ttdeci">void storage(Type &elem) noexcept</div><div class="ttdoc">Assigns a storage to a view.</div><div class="ttdef"><b>Definition</b> <a href="#l00562">view.hpp:562</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a461907e002f095b23398cff58bc88f03"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a461907e002f095b23398cff58bc88f03">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::operator|</a></div><div class="ttdeci">auto operator|(const basic_view< get_t< OGet... >, exclude_t< OExclude... > > &other) const noexcept</div><div class="ttdoc">Combines two views in a more specific one.</div><div class="ttdef"><b>Definition</b> <a href="#l00646">view.hpp:646</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a572ec90eb0a60a1de9f801d3b9c3a448"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a572ec90eb0a60a1de9f801d3b9c3a448">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::iterator</a></div><div class="ttdeci">typename base_type::iterator iterator</div><div class="ttdoc">Forward iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00481">view.hpp:481</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_a9638fe48b3b3dd15d69eccd8ac88c7e1"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#a9638fe48b3b3dd15d69eccd8ac88c7e1">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::each</a></div><div class="ttdeci">iterable each() const noexcept</div><div class="ttdoc">Returns an iterable object to use to visit a view.</div><div class="ttdef"><b>Definition</b> <a href="#l00634">view.hpp:634</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_aab5ab7ecb196e9ed26312af6b284d5af"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#aab5ab7ecb196e9ed26312af6b284d5af">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::get</a></div><div class="ttdeci">decltype(auto) get(const entity_type entt) const</div><div class="ttdoc">Returns the elements assigned to the given entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00584">view.hpp:584</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_ad9ef674ebaedbf8c8d2db1bd885a71d5"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ad9ef674ebaedbf8c8d2db1bd885a71d5">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::use</a></div><div class="ttdeci">void use() noexcept</div><div class="ttdoc">Forces a view to use a given element to drive iterations.</div><div class="ttdef"><b>Definition</b> <a href="#l00511">view.hpp:511</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_ae6e5af07e9553705cdb58386e4fa499d"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#ae6e5af07e9553705cdb58386e4fa499d">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::basic_view</a></div><div class="ttdeci">basic_view(std::tuple< Get &... > value, std::tuple< Exclude &... > excl={}) noexcept</div><div class="ttdoc">Constructs a view from a set of storage classes.</div><div class="ttdef"><b>Definition</b> <a href="#l00503">view.hpp:503</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_af11033bff1be4277cd98aea2645cb90f"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#af11033bff1be4277cd98aea2645cb90f">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::basic_view</a></div><div class="ttdeci">basic_view(Get &...value, Exclude &...excl) noexcept</div><div class="ttdoc">Constructs a view from a set of storage classes.</div><div class="ttdef"><b>Definition</b> <a href="#l00494">view.hpp:494</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_afa5d580bf040d966091f63d2dcc8e771"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afa5d580bf040d966091f63d2dcc8e771">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::storage</a></div><div class="ttdeci">auto * storage() const noexcept</div><div class="ttdoc">Returns the storage for a given element type, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00530">view.hpp:530</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8_html_afc8e7c18025093c344df42af5aff77aa"><div class="ttname"><a href="classentt_1_1basic__view_3_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_00bfe15740605f6adb254763e866b0aef8.html#afc8e7c18025093c344df42af5aff77aa">entt::basic_view< get_t< Get... >, exclude_t< Exclude... >, std::enable_if_t<(sizeof...(Get) !=0u)> >::size_type</a></div><div class="ttdeci">typename base_type::size_type size_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00479">view.hpp:479</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__view_html"><div class="ttname"><a href="classentt_1_1basic__view.html">entt::basic_view</a></div><div class="ttdoc">View implementation.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00042">fwd.hpp:42</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html"><div class="ttname"><a href="namespaceentt.html">entt</a></div><div class="ttdoc">EnTT default namespace.</div><div class="ttdef"><b>Definition</b> <a href="dense__map_8hpp_source.html#l00022">dense_map.hpp:22</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a044bc9823cac51816fc5cbcd490478d1"><div class="ttname"><a href="namespaceentt.html#a044bc9823cac51816fc5cbcd490478d1">entt::basic_view</a></div><div class="ttdeci">basic_view(Type &...storage) -> basic_view< get_t< Type... >, exclude_t<> ></div><div class="ttdoc">Deduction guide.</div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a12e4d0c58f9c4cc6f5513c39c530b9b7"><div class="ttname"><a href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">entt::make_obj_using_allocator</a></div><div class="ttdeci">constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...args)</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="memory_8hpp_source.html#l00219">memory.hpp:219</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a13168ef82af733bfe584f34f29472d20"><div class="ttname"><a href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">entt::constness_as_t</a></div><div class="ttdeci">typename constness_as< To, From >::type constness_as_t</div><div class="ttdoc">Alias template to facilitate the transcription of the constness.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00839">type_traits.hpp:839</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a2f0c0a1c1d953ea991591748744cdd8b"><div class="ttname"><a href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">entt::null</a></div><div class="ttdeci">constexpr null_t null</div><div class="ttdoc">Compile-time constant for null entities.</div><div class="ttdef"><b>Definition</b> <a href="entity_8hpp_source.html#l00375">entity.hpp:375</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a3f86766cf81509c46f7009f90513d837"><div class="ttname"><a href="namespaceentt.html#a3f86766cf81509c46f7009f90513d837">entt::view</a></div><div class="ttdeci">basic_view< type_list_transform_t< Get, storage_for >, type_list_transform_t< Exclude, storage_for > > view</div><div class="ttdoc">Alias declaration for the most common use case.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00278">fwd.hpp:278</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a4f238620469de3ef2bafdb28fe4657ef"><div class="ttname"><a href="namespaceentt.html#a4f238620469de3ef2bafdb28fe4657ef">entt::is_applicable_v</a></div><div class="ttdeci">constexpr bool is_applicable_v</div><div class="ttdoc">Helper variable template.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00625">type_traits.hpp:625</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a674269102fdfe3fd6d7766210a828862"><div class="ttname"><a href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862">entt::tombstone</a></div><div class="ttdeci">constexpr tombstone_t tombstone</div><div class="ttdoc">Compile-time constant for tombstone entities.</div><div class="ttdef"><b>Definition</b> <a href="entity_8hpp_source.html#l00384">entity.hpp:384</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a8c24ecc5ab0055f9f2a4725c95afb29e"><div class="ttname"><a href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">entt::get</a></div><div class="ttdeci">constexpr get_t< Type... > get</div><div class="ttdoc">Variable template for lists of observed elements.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00168">fwd.hpp:168</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a9ac8221f536d5ecb512dc433ec7a4fd1"><div class="ttname"><a href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">entt::type_list_element_t</a></div><div class="ttdeci">typename type_list_element< Index, List >::type type_list_element_t</div><div class="ttdoc">Helper type.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00148">type_traits.hpp:148</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_abc4d0fa77fae26e7c01793990996c581"><div class="ttname"><a href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581">entt::deletion_policy</a></div><div class="ttdeci">deletion_policy</div><div class="ttdoc">Storage deletion policy.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00017">fwd.hpp:17</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b"><div class="ttname"><a href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a62044f8c7b1568e4536403704282322b">entt::deletion_policy::swap_only</a></div><div class="ttdeci">@ swap_only</div><div class="ttdoc">Swap-only deletion policy.</div></div>
|
|
<div class="ttc" id="anamespaceentt_html_abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708"><div class="ttname"><a href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581a8223d1ccb16b6dd0b19fe9c6fdb13708">entt::deletion_policy::swap_and_pop</a></div><div class="ttdeci">@ swap_and_pop</div><div class="ttdoc">Swap-and-pop deletion policy.</div></div>
|
|
<div class="ttc" id="anamespaceentt_html_abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28"><div class="ttname"><a href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">entt::deletion_policy::in_place</a></div><div class="ttdeci">@ in_place</div><div class="ttdoc">In-place deletion policy.</div></div>
|
|
<div class="ttc" id="anamespaceentt_html_ad9accc71a383509ada028f7fa2b767bf"><div class="ttname"><a href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00232">hashed_string.hpp:232</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_af7c61951b721a1e3612cf536bd707501"><div class="ttname"><a href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">entt::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00220">hashed_string.hpp:220</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_aff8fd99fc1ff2432dcb0f6b017a9c60e"><div class="ttname"><a href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">entt::storage</a></div><div class="ttdeci">basic_storage< Type > storage</div><div class="ttdoc">Alias declaration for the most common use case.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00076">fwd.hpp:76</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1exclude__t_html"><div class="ttname"><a href="structentt_1_1exclude__t.html">entt::exclude_t</a></div><div class="ttdoc">Alias for exclusion lists.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00141">fwd.hpp:141</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1get__t_html"><div class="ttname"><a href="structentt_1_1get__t.html">entt::get_t</a></div><div class="ttdoc">Alias for lists of observed elements.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00158">fwd.hpp:158</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1iterable__adaptor_html"><div class="ttname"><a href="structentt_1_1iterable__adaptor.html">entt::iterable_adaptor</a></div><div class="ttdoc">Utility class to create an iterable object from a pair of iterators.</div><div class="ttdef"><b>Definition</b> <a href="iterator_8hpp_source.html#l00141">iterator.hpp:141</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1type__list_html"><div class="ttname"><a href="structentt_1_1type__list.html">entt::type_list</a></div><div class="ttdoc">A class to use to push around lists of types, nothing more.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00110">type_traits.hpp:110</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
|
|
</small></address>
|
|
</body>
|
|
</html>
|