899 lines
209 KiB
HTML
899 lines
209 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.13.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: src/entt/entity/group.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>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.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.15.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.2 -->
|
|
<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">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @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',false);
|
|
$(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(){ initResizable(false); });
|
|
/* @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 id="doc-content">
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">group.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_GROUP_HPP</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_ENTITY_GROUP_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/algorithm.hpp"</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include "../core/fwd.hpp"</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include "../core/iterator.hpp"</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include "../core/type_info.hpp"</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include "../core/type_traits.hpp"</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include "entity.hpp"</span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">namespace </span>internal {</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</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="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">class </span>extended_group_iterator;</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><span class="keyword">template</span><<span class="keyword">typename</span> It, <span class="keyword">typename</span>... Owned, <span class="keyword">typename</span>... Get></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">class </span>extended_group_iterator<It, owned_t<Owned...>, get_t<Get...>> {</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> [[nodiscard]] <span class="keyword">auto</span> index_to_element([[maybe_unused]] Type &cpool)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_void_v<typename Type::value_type>) {</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> std::make_tuple();</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> std::forward_as_tuple(cpool.rbegin()[it.index()]);</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">using </span>iterator_type = It;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">using </span>value_type = <span class="keyword">decltype</span>(std::tuple_cat(std::make_tuple(*std::declval<It>()), std::declval<Owned>().get_as_tuple({})..., std::declval<Get>().get_as_tuple({})...));</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">using </span>pointer = input_iterator_pointer<value_type>;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">using </span>reference = value_type;</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">using </span>difference_type = std::ptrdiff_t;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">using </span>iterator_category = std::input_iterator_tag;</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">using </span>iterator_concept = std::forward_iterator_tag;</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">constexpr</span> extended_group_iterator()</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> : it{},</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> pools{} {}</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> extended_group_iterator(iterator_type from, std::tuple<Owned *..., Get *...> cpools)</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> : it{from},</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> pools{std::move(cpools)} {}</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> extended_group_iterator &operator++() noexcept {</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> ++it, *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> extended_group_iterator operator++(<span class="keywordtype">int</span>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">const</span> extended_group_iterator orig = *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">return</span> ++(*this), orig;</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> [[nodiscard]] reference operator*() const noexcept {</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">return</span> std::tuple_cat(std::make_tuple(*it), index_to_element(*std::get<Owned *>(pools))..., std::get<Get *>(pools)->get_as_tuple(*it)...);</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> [[nodiscard]] pointer operator->() const noexcept {</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">return</span> operator*();</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> [[nodiscard]] <span class="keyword">constexpr</span> iterator_type base() const noexcept {</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> it;</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</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> extended_group_iterator<Lhs...> &, <span class="keyword">const</span> extended_group_iterator<Rhs...> &) <span class="keyword">noexcept</span>;</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> It it;</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> std::tuple<Owned *..., Get *...> pools;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>};</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</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_group_iterator<Lhs...> &lhs, <span class="keyword">const</span> extended_group_iterator<Rhs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">return</span> lhs.it == rhs.it;</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>}</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="keyword">template</span><<span class="keyword">typename</span>... Lhs, <span class="keyword">typename</span>... Rhs></div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</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_group_iterator<Lhs...> &lhs, <span class="keyword">const</span> extended_group_iterator<Rhs...> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>}</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="keyword">struct </span>group_descriptor {</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">using </span>size_type = std::size_t;</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">virtual</span> ~group_descriptor() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="namespaceentt.html#ac91ddbe2446a912714a5fe7251e25768">owned</a>(<span class="keyword">const</span> id_type) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">return</span> <span class="keyword">false</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> </div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, std::<span class="keywordtype">size_t</span> Owned, std::<span class="keywordtype">size_t</span> Get, std::<span class="keywordtype">size_t</span> Exclude></div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><span class="keyword">class </span>group_handler final: <span class="keyword">public</span> group_descriptor {</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">using </span>entity_type = <span class="keyword">typename</span> Type::entity_type;</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> <span class="keywordtype">void</span> swap_elements(<span class="keyword">const</span> std::size_t pos, <span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">for</span>(size_type next{}; next < Owned; ++next) {</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> pools[next]->swap_elements((*pools[next])[pos], entt);</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> }</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordtype">void</span> push_on_construct(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">if</span>(std::apply([entt, pos = len](<span class="keyword">auto</span> *cpool, <span class="keyword">auto</span> *...other) { <span class="keywordflow">return</span> cpool->contains(entt) && !(cpool->index(entt) < pos) && (other->contains(entt) && ...); }, pools)</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { <span class="keywordflow">return</span> (!cpool->contains(entt) && ...); }, filter)) {</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> swap_elements(len++, entt);</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> }</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">void</span> push_on_destroy(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">if</span>(std::apply([entt, pos = len](<span class="keyword">auto</span> *cpool, <span class="keyword">auto</span> *...other) { <span class="keywordflow">return</span> cpool->contains(entt) && !(cpool->index(entt) < pos) && (other->contains(entt) && ...); }, pools)</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { <span class="keywordflow">return</span> (0u + ... + cpool->contains(entt)) == 1u; }, filter)) {</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> swap_elements(len++, entt);</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> }</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordtype">void</span> remove_if(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">if</span>(pools[0u]->contains(entt) && (pools[0u]->index(entt) < len)) {</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> swap_elements(--len, entt);</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> common_setup() {</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="comment">// we cannot iterate backwards because we want to leave behind valid entities in case of owned types</span></div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> first = pools[0u]->rbegin(), last = first + <span class="keyword">static_cast<</span>typename decltype(pools)::difference_type<span class="keyword">></span>(pools[0u]->size()); first != last; ++first) {</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> push_on_construct(*first);</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> }</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">using </span>common_type = Type;</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">using </span>size_type = <span class="keyword">typename</span> Type::size_type;</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">template</span><<span class="keyword">typename</span>... OGType, <span class="keyword">typename</span>... EType></div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> group_handler(std::tuple<OGType &...> ogpool, std::tuple<EType &...> epool)</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> : pools{std::apply([](auto &&...cpool) { <span class="keywordflow">return</span> std::array<common_type *, (Owned + Get)>{&cpool...}; }, ogpool)},</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> filter{std::apply([](<span class="keyword">auto</span> &&...cpool) { <span class="keywordflow">return</span> std::array<common_type *, Exclude>{&cpool...}; }, epool)} {</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> std::apply([<span class="keyword">this</span>](<span class="keyword">auto</span> &...cpool) { ((cpool.on_construct().<span class="keyword">template</span> connect<&group_handler::push_on_construct>(*<span class="keyword">this</span>), cpool.on_destroy().template connect<&group_handler::remove_if>(*<span class="keyword">this</span>)), ...); }, ogpool);</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> std::apply([<span class="keyword">this</span>](<span class="keyword">auto</span> &...cpool) { ((cpool.on_construct().<span class="keyword">template</span> connect<&group_handler::remove_if>(*<span class="keyword">this</span>), cpool.on_destroy().template connect<&group_handler::push_on_destroy>(*<span class="keyword">this</span>)), ...); }, epool);</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> common_setup();</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_variable" href="namespaceentt.html#ac91ddbe2446a912714a5fe7251e25768">owned</a>(<span class="keyword">const</span> id_type hash) <span class="keyword">const</span> <span class="keyword">noexcept</span> <span class="keyword">override</span> {</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">for</span>(size_type pos{}; pos < Owned; ++pos) {</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keywordflow">if</span>(pools[pos]->type().hash() == hash) {</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> }</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</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> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> }</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> [[nodiscard]] size_type length() const noexcept {</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">return</span> len;</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> </div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> [[nodiscard]] common_type *<a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(Index < (Owned + Get)) {</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">return</span> pools[Index];</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">return</span> filter[Index - (Owned + Get)];</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> }</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> std::array<common_type *, (Owned + Get)> pools;</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> std::array<common_type *, Exclude> filter;</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> std::size_t len{};</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> </div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</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="l00182" name="l00182"></a><span class="lineno"> 182</span><span class="keyword">class </span>group_handler<Type, 0u, Get, Exclude> final: <span class="keyword">public</span> group_descriptor {</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keyword">using </span>entity_type = <span class="keyword">typename</span> Type::entity_type;</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keywordtype">void</span> push_on_construct(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">if</span>(!elem.contains(entt)</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { return (cpool->contains(entt) && ...); }, pools)</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { return (!cpool->contains(entt) && ...); }, filter)) {</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> elem.push(entt);</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> }</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordtype">void</span> push_on_destroy(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="keywordflow">if</span>(!elem.contains(entt)</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { return (cpool->contains(entt) && ...); }, pools)</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> && std::apply([entt](<span class="keyword">auto</span> *...cpool) { return (0u + ... + cpool->contains(entt)) == 1u; }, filter)) {</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> elem.push(entt);</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> }</div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> }</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <span class="keywordtype">void</span> remove_if(<span class="keyword">const</span> entity_type entt) {</div>
|
|
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> elem.remove(entt);</div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> }</div>
|
|
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keywordtype">void</span> common_setup() {</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> entity: *pools[0u]) {</div>
|
|
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> push_on_construct(entity);</div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> }</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keyword">using </span>common_type = Type;</div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> </div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... GType, <span class="keyword">typename</span>... EType></div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> group_handler(<span class="keyword">const</span> Allocator &allocator, std::tuple<GType &...> gpool, std::tuple<EType &...> epool)</div>
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> : pools{std::apply([](auto &&...cpool) { <span class="keywordflow">return</span> std::array<common_type *, Get>{&cpool...}; }, gpool)},</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> filter{std::apply([](<span class="keyword">auto</span> &&...cpool) { <span class="keywordflow">return</span> std::array<common_type *, Exclude>{&cpool...}; }, epool)},</div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> elem{allocator} {</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> std::apply([<span class="keyword">this</span>](<span class="keyword">auto</span> &...cpool) { ((cpool.on_construct().<span class="keyword">template</span> connect<&group_handler::push_on_construct>(*<span class="keyword">this</span>), cpool.on_destroy().template connect<&group_handler::remove_if>(*<span class="keyword">this</span>)), ...); }, gpool);</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> std::apply([<span class="keyword">this</span>](<span class="keyword">auto</span> &...cpool) { ((cpool.on_construct().<span class="keyword">template</span> connect<&group_handler::remove_if>(*<span class="keyword">this</span>), cpool.on_destroy().template connect<&group_handler::push_on_destroy>(*<span class="keyword">this</span>)), ...); }, epool);</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> common_setup();</div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> }</div>
|
|
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
|
|
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> [[nodiscard]] common_type &<a class="code hl_typedef" href="namespaceentt.html#a4709e4ff444e7d9b73f97d9e471bf8af">handle</a>() noexcept {</div>
|
|
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">return</span> elem;</div>
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> }</div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> [[nodiscard]] <span class="keyword">const</span> common_type &<a class="code hl_typedef" href="namespaceentt.html#a4709e4ff444e7d9b73f97d9e471bf8af">handle</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordflow">return</span> elem;</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> }</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> [[nodiscard]] common_type *<a class="code hl_typedef" href="namespaceentt.html#aff8fd99fc1ff2432dcb0f6b017a9c60e">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(Index < Get) {</div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="keywordflow">return</span> pools[Index];</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> filter[Index - Get];</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</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> </div>
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> std::array<common_type *, Get> pools;</div>
|
|
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> std::array<common_type *, Exclude> filter;</div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> common_type elem;</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>} <span class="comment">// namespace internal</span></div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span></div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</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="l00257" name="l00257"></a><span class="lineno"> 257</span><span class="keyword">class </span>basic_group;</div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span></div>
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span><span class="keyword">template</span><<span class="keyword">typename</span>... Get, <span class="keyword">typename</span>... Exclude></div>
|
|
<div class="foldopen" id="foldopen00282" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html"> 282</a></span><span class="keyword">class </span><a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#af0007b6e275808ca8037551a4133a0b8">basic_group</a><<a class="code hl_struct" href="structentt_1_1owned__t.html">owned_t</a><>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><Get...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><Exclude...>> {</div>
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keyword">using </span>base_type = std::common_type_t<<span class="keyword">typename</span> Get::base_type..., <span class="keyword">typename</span> Exclude::base_type...>;</div>
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keyword">using </span>underlying_type = <span class="keyword">typename</span> base_type::entity_type;</div>
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> </div>
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::size_t index_of = <a class="code hl_variable" href="namespaceentt.html#a3a9e46d106b526d281a35901da1edea6">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="l00288" name="l00288"></a><span class="lineno"> 288</span> </div>
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keyword">template</span><std::size_t... Index></div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> [[nodiscard]] <span class="keyword">auto</span> pools_for(std::index_sequence<Index...>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keyword">using </span>return_type = std::tuple<Get *...>;</div>
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">return</span> descriptor ? return_type{<span class="keyword">static_cast<</span>Get *<span class="keyword">></span>(descriptor->template <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">storage<Index></a>())...} : return_type{};</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="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480"> 297</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> = underlying_type;</div>
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4"> 299</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a> = std::size_t;</div>
|
|
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a66cfc4cf7cc6ded38267f92436256904"> 301</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a66cfc4cf7cc6ded38267f92436256904">difference_type</a> = std::ptrdiff_t;</div>
|
|
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ae404710a7c3d6d5ca6b2066d0bffea07"> 303</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ae404710a7c3d6d5ca6b2066d0bffea07">common_type</a> = base_type;</div>
|
|
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f"> 305</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a> = <span class="keyword">typename</span> common_type::iterator;</div>
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469"> 307</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">reverse_iterator</a> = <span class="keyword">typename</span> common_type::reverse_iterator;</div>
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a41dc2207369df205d0776db3e78be604"> 309</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a41dc2207369df205d0776db3e78be604">iterable</a> = <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor<internal::extended_group_iterator<iterator, owned_t<></a>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><Get...>>>;</div>
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac308d47ad733d64e47937a9e9a3be3e2"> 311</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac308d47ad733d64e47937a9e9a3be3e2">handler</a> = internal::group_handler<<a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ae404710a7c3d6d5ca6b2066d0bffea07">common_type</a>, 0u, <span class="keyword">sizeof</span>...(Get), <span class="keyword">sizeof</span>...(Exclude)>;</div>
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span></div>
|
|
<div class="foldopen" id="foldopen00317" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1087af5249eb3f2049610ae8d0b07bd7"> 317</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceentt.html#a620d583c0e6d64acf3d394524bb72303">id_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1087af5249eb3f2049610ae8d0b07bd7">group_id</a>() noexcept {</div>
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structentt_1_1type__hash.html">type_hash<basic_group<owned_t<></a>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t<std::remove_const_t<Get></a>...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t<std::remove_const_t<Exclude></a>...>>>::value();</div>
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span></div>
|
|
<div class="foldopen" id="foldopen00322" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#af0007b6e275808ca8037551a4133a0b8"> 322</a></span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#af0007b6e275808ca8037551a4133a0b8">basic_group</a>() noexcept</div>
|
|
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> : descriptor{} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span></div>
|
|
<div class="foldopen" id="foldopen00329" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a2048d3e38b1ef64777a701d4a9e1a92d"> 329</a></span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a2048d3e38b1ef64777a701d4a9e1a92d">basic_group</a>(<a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac308d47ad733d64e47937a9e9a3be3e2">handler</a> &<a class="code hl_enumvalue" href="namespaceentt.html#add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15">ref</a>) noexcept</div>
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> : descriptor{&<a class="code hl_enumvalue" href="namespaceentt.html#add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15">ref</a>} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span></div>
|
|
<div class="foldopen" id="foldopen00336" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6"> 336</a></span> [[nodiscard]] <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ae404710a7c3d6d5ca6b2066d0bffea07">common_type</a> &<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> <span class="keywordflow">return</span> descriptor->handle();</div>
|
|
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span></div>
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00346" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b"> 346</a></span> [[nodiscard]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">storage<index_of<Type></a>>();</div>
|
|
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span></div>
|
|
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></div>
|
|
<div class="foldopen" id="foldopen00356" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b"> 356</a></span> [[nodiscard]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> <span class="keyword">using </span>type = <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a><Index, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a><Get..., Exclude...>>;</div>
|
|
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <span class="keyword">static_cast<</span>type *<span class="keyword">></span>(descriptor->template <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">storage<Index></a>()) : <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span></div>
|
|
<div class="foldopen" id="foldopen00365" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#afd8a5c5072abffebe052dd8f1eeb7411"> 365</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#afd8a5c5072abffebe052dd8f1eeb7411">size</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().size() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a>{};</div>
|
|
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span></div>
|
|
<div class="foldopen" id="foldopen00374" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#aaec4bf1c339ee706c1e382f81e995116"> 374</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#aaec4bf1c339ee706c1e382f81e995116">capacity</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().capacity() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a>{};</div>
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span></div>
|
|
<div class="foldopen" id="foldopen00379" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab0dee7a4e6589ce4a1bdec06a38f3e59"> 379</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab0dee7a4e6589ce4a1bdec06a38f3e59">shrink_to_fit</a>() {</div>
|
|
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> <span class="keywordflow">if</span>(*<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> descriptor->handle().shrink_to_fit();</div>
|
|
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> }</div>
|
|
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span></div>
|
|
<div class="foldopen" id="foldopen00389" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a64e489bb00e091fd7203d91b5d1aaf5a"> 389</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a64e489bb00e091fd7203d91b5d1aaf5a">empty</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> <span class="keywordflow">return</span> !*<span class="keyword">this</span> || <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().empty();</div>
|
|
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span></div>
|
|
<div class="foldopen" id="foldopen00400" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258"> 400</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258">begin</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().begin() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a>{};</div>
|
|
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span></div>
|
|
<div class="foldopen" id="foldopen00409" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac94857c70d27826612b584af4c70f200"> 409</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac94857c70d27826612b584af4c70f200">end</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().end() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a>{};</div>
|
|
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span></div>
|
|
<div class="foldopen" id="foldopen00420" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3c52657f3305d9076c8859df5e2792f2"> 420</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">reverse_iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3c52657f3305d9076c8859df5e2792f2">rbegin</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().rbegin() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span></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__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#abfbf1ce09751a74c56743688c7769f99"> 430</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">reverse_iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#abfbf1ce09751a74c56743688c7769f99">rend</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().rend() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span></div>
|
|
<div class="foldopen" id="foldopen00439" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab5ba983fbaee1dce61af5edeb3872ecd"> 439</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab5ba983fbaee1dce61af5edeb3872ecd">front</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258">begin</a>();</div>
|
|
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span> <span class="keywordflow">return</span> it != <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac94857c70d27826612b584af4c70f200">end</a>() ? *it : <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span></div>
|
|
<div class="foldopen" id="foldopen00449" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ad23be7c83702338af05db3fd851a4a1b"> 449</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ad23be7c83702338af05db3fd851a4a1b">back</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3c52657f3305d9076c8859df5e2792f2">rbegin</a>();</div>
|
|
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> <span class="keywordflow">return</span> it != <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#abfbf1ce09751a74c56743688c7769f99">rend</a>() ? *it : <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span></div>
|
|
<div class="foldopen" id="foldopen00460" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac63cc46269cc44038dee7f51a3663342"> 460</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac63cc46269cc44038dee7f51a3663342">find</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">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="l00461" name="l00461"></a><span class="lineno"> 461</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">iterator</a>{};</div>
|
|
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span></div>
|
|
<div class="foldopen" id="foldopen00469" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38ee47145fc3fcb63ab0a80250f43a55"> 469</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38ee47145fc3fcb63ab0a80250f43a55">operator[]</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">size_type</a> pos)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258">begin</a>()[<span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a66cfc4cf7cc6ded38267f92436256904">difference_type</a><span class="keyword">></span>(pos)];</div>
|
|
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span></div>
|
|
<div class="foldopen" id="foldopen00477" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a5032823e971e2da23bacae135c78fbd2"> 477</a></span> [[nodiscard]] <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() const noexcept {</div>
|
|
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span> <span class="keywordflow">return</span> descriptor != <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</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__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38f5f9228661385295bc7a576fb187fe"> 486</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38f5f9228661385295bc7a576fb187fe">contains</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">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="l00487" name="l00487"></a><span class="lineno"> 487</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> && <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">handle</a>().contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"> 488</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno"> 489</span></div>
|
|
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno"> 497</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Other></div>
|
|
<div class="foldopen" id="foldopen00498" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9"> 498</a></span> [[nodiscard]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno"> 499</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">get<index_of<Type></a>, index_of<Other>...>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno"> 500</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"> 501</span></div>
|
|
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno"> 508</span> <span class="keyword">template</span><std::size_t... Index></div>
|
|
<div class="foldopen" id="foldopen00509" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a8a9d3d57c43e454d991d1c7c85752cd9"> 509</a></span> [[nodiscard]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a8a9d3d57c43e454d991d1c7c85752cd9">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno"> 510</span> <span class="keyword">const</span> <span class="keyword">auto</span> cpools = pools_for(std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno"> 511</span> </div>
|
|
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno"> 512</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno"> 513</span> <span class="keywordflow">return</span> std::apply([<a class="code hl_namespace" href="namespaceentt.html">entt</a>](<span class="keyword">auto</span> *...curr) { <span class="keywordflow">return</span> std::tuple_cat(curr->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...); }, cpools);</div>
|
|
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno"> 514</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="l00515" name="l00515"></a><span class="lineno"> 515</span> <span class="keywordflow">return</span> (std::get<Index>(cpools)-><a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>), ...);</div>
|
|
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno"> 516</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno"> 517</span> <span class="keywordflow">return</span> std::tuple_cat(std::get<Index>(cpools)->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...);</div>
|
|
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno"> 518</span> }</div>
|
|
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno"> 519</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"> 520</span></div>
|
|
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno"> 543</span> <span class="keyword">template</span><<span class="keyword">typename</span> Func></div>
|
|
<div class="foldopen" id="foldopen00544" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a7a9e949db960db1c091f7042b6829026"> 544</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a7a9e949db960db1c091f7042b6829026">each</a>(Func func)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno"> 545</span> <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_namespace" href="namespaceentt.html">entt</a>: *<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno"> 546</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_group>().get({})))>) {</div>
|
|
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno"> 547</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="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)));</div>
|
|
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno"> 548</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno"> 549</span> std::apply(func, <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>));</div>
|
|
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno"> 550</span> }</div>
|
|
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno"> 551</span> }</div>
|
|
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno"> 552</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno"> 553</span></div>
|
|
<div class="foldopen" id="foldopen00567" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#adc11363d541605654bf66ed62f5359eb"> 567</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a41dc2207369df205d0776db3e78be604">iterable</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#adc11363d541605654bf66ed62f5359eb">each</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno"> 568</span> <span class="keyword">const</span> <span class="keyword">auto</span> cpools = pools_for(std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno"> 569</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a41dc2207369df205d0776db3e78be604">iterable</a>{{<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258">begin</a>(), cpools}, {<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac94857c70d27826612b584af4c70f200">end</a>(), cpools}};</div>
|
|
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno"> 570</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno"> 571</span></div>
|
|
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno"> 605</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Other, <span class="keyword">typename</span> Compare, <span class="keyword">typename</span> Sort = <a class="code hl_struct" href="structentt_1_1std__sort.html">std_sort</a>, <span class="keyword">typename</span>... Args></div>
|
|
<div class="foldopen" id="foldopen00606" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4f242692abecbf361c09117c14c73fe4"> 606</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4f242692abecbf361c09117c14c73fe4">sort</a>(Compare compare, Sort algo = Sort{}, Args &&...args) {</div>
|
|
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"> 607</span> sort<index_of<Type>, index_of<Other>...>(std::move(compare), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno"> 608</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno"> 609</span></div>
|
|
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno"> 623</span> <span class="keyword">template</span><std::size_t... Index, <span class="keyword">typename</span> Compare, <span class="keyword">typename</span> Sort = std_sort, <span class="keyword">typename</span>... Args></div>
|
|
<div class="foldopen" id="foldopen00624" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3be8735e76b3d7389c783a60ad80d624"> 624</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3be8735e76b3d7389c783a60ad80d624">sort</a>(Compare compare, Sort algo = Sort{}, Args &&...args) {</div>
|
|
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno"> 625</span> <span class="keywordflow">if</span>(*<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno"> 626</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno"> 627</span> <span class="keyword">static_assert</span>(std::is_invocable_v<Compare, const entity_type, const entity_type>, <span class="stringliteral">"Invalid comparison function"</span>);</div>
|
|
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno"> 628</span> descriptor->handle().sort(std::move(compare), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno"> 629</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno"> 630</span> <span class="keyword">auto</span> comp = [&compare, cpools = pools_for(std::index_sequence_for<Get...>{})](<span class="keyword">const</span> entity_type lhs, <span class="keyword">const</span> entity_type rhs) {</div>
|
|
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno"> 631</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 1) {</div>
|
|
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno"> 632</span> <span class="keywordflow">return</span> compare((std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(lhs), ...), (std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(rhs), ...));</div>
|
|
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno"> 633</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno"> 634</span> <span class="keywordflow">return</span> compare(std::forward_as_tuple(std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(lhs)...), std::forward_as_tuple(std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(rhs)...));</div>
|
|
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno"> 635</span> }</div>
|
|
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno"> 636</span> };</div>
|
|
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno"> 637</span> </div>
|
|
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno"> 638</span> descriptor->handle().sort(std::move(comp), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno"> 639</span> }</div>
|
|
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno"> 640</span> }</div>
|
|
<div class="line"><a id="l00641" name="l00641"></a><span class="lineno"> 641</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno"> 642</span></div>
|
|
<div class="line"><a id="l00653" name="l00653"></a><span class="lineno"> 653</span> <span class="keyword">template</span><<span class="keyword">typename</span> It></div>
|
|
<div class="foldopen" id="foldopen00654" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a044bf4aef3d8b417e50e128dce5f78f2"> 654</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a044bf4aef3d8b417e50e128dce5f78f2">sort_as</a>(It first, It last)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno"> 655</span> <span class="keywordflow">if</span>(*<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno"> 656</span> descriptor->handle().sort_as(first, last);</div>
|
|
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno"> 657</span> }</div>
|
|
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno"> 658</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno"> 659</span> </div>
|
|
<div class="line"><a id="l00660" name="l00660"></a><span class="lineno"> 660</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno"> 661</span> handler *descriptor;</div>
|
|
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno"> 662</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00663" name="l00663"></a><span class="lineno"> 663</span></div>
|
|
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno"> 695</span><span class="keyword">template</span><<span class="keyword">typename</span>... Owned, <span class="keyword">typename</span>... Get, <span class="keyword">typename</span>... Exclude></div>
|
|
<div class="foldopen" id="foldopen00696" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html"> 696</a></span><span class="keyword">class </span><a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a181467a35167330707fbe2ad94a60e57">basic_group</a><<a class="code hl_struct" href="structentt_1_1owned__t.html">owned_t</a><Owned...>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><Get...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a><Exclude...>> {</div>
|
|
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno"> 697</span> <span class="keyword">static_assert</span>(((Owned::storage_policy != <a class="code hl_enumvalue" href="namespaceentt.html#abc4d0fa77fae26e7c01793990996c581aa49f99ae99ae9daddd1fb79b73d2db28">deletion_policy::in_place</a>) && ...), <span class="stringliteral">"Groups do not support in-place delete"</span>);</div>
|
|
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"> 698</span> </div>
|
|
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno"> 699</span> <span class="keyword">using </span>base_type = std::common_type_t<<span class="keyword">typename</span> Owned::base_type..., <span class="keyword">typename</span> Get::base_type..., <span class="keyword">typename</span> Exclude::base_type...>;</div>
|
|
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"> 700</span> <span class="keyword">using </span>underlying_type = <span class="keyword">typename</span> base_type::entity_type;</div>
|
|
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno"> 701</span> </div>
|
|
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno"> 702</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno"> 703</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::size_t index_of = <a class="code hl_variable" href="namespaceentt.html#a3a9e46d106b526d281a35901da1edea6">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> Owned::element_type..., <span class="keyword">typename</span> Get::element_type..., <span class="keyword">typename</span> Exclude::element_type...>>;</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> <span class="keyword">template</span><std::size_t... Index, std::size_t... Other></div>
|
|
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno"> 706</span> [[nodiscard]] <span class="keyword">auto</span> pools_for(std::index_sequence<Index...>, std::index_sequence<Other...>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno"> 707</span> <span class="keyword">using </span>return_type = std::tuple<Owned *..., Get *...>;</div>
|
|
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno"> 708</span> <span class="keywordflow">return</span> descriptor ? return_type{<span class="keyword">static_cast<</span>Owned *<span class="keyword">></span>(descriptor->template <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage<Index></a>())..., <span class="keyword">static_cast<</span>Get *<span class="keyword">></span>(descriptor->template <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage</a><<span class="keyword">sizeof</span>...(Owned) + Other>())...} : return_type{};</div>
|
|
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno"> 709</span> }</div>
|
|
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno"> 710</span> </div>
|
|
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno"> 711</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1"> 713</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> = underlying_type;</div>
|
|
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60"> 715</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60">size_type</a> = std::size_t;</div>
|
|
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144"> 717</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144">difference_type</a> = std::ptrdiff_t;</div>
|
|
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a51f55ba9c65468ef4f615fae26b881d7"> 719</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a51f55ba9c65468ef4f615fae26b881d7">common_type</a> = base_type;</div>
|
|
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64"> 721</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a> = <span class="keyword">typename</span> common_type::iterator;</div>
|
|
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e"> 723</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">reverse_iterator</a> = <span class="keyword">typename</span> common_type::reverse_iterator;</div>
|
|
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4e52d1b38e4284b76bc51a72cb0b8c3"> 725</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4e52d1b38e4284b76bc51a72cb0b8c3">iterable</a> = <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor</a><internal::extended_group_iterator<<a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a>, <a class="code hl_struct" href="structentt_1_1owned__t.html">owned_t</a><Owned...>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a><Get...>>>;</div>
|
|
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a5ebb7fc96e20ebb95ce3af127983f296"> 727</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a5ebb7fc96e20ebb95ce3af127983f296">handler</a> = internal::group_handler<<a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a51f55ba9c65468ef4f615fae26b881d7">common_type</a>, <span class="keyword">sizeof</span>...(Owned), <span class="keyword">sizeof</span>...(Get), <span class="keyword">sizeof</span>...(Exclude)>;</div>
|
|
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno"> 728</span></div>
|
|
<div class="foldopen" id="foldopen00733" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae1cc1b088c5625d4fc991a35d959995d"> 733</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceentt.html#a620d583c0e6d64acf3d394524bb72303">id_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae1cc1b088c5625d4fc991a35d959995d">group_id</a>() noexcept {</div>
|
|
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno"> 734</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structentt_1_1type__hash.html">type_hash<basic_group<owned_t<std::remove_const_t<Owned></a>...>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t<std::remove_const_t<Get></a>...>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t<std::remove_const_t<Exclude></a>...>>>::value();</div>
|
|
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno"> 735</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno"> 736</span></div>
|
|
<div class="foldopen" id="foldopen00738" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a181467a35167330707fbe2ad94a60e57"> 738</a></span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a181467a35167330707fbe2ad94a60e57">basic_group</a>() noexcept</div>
|
|
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno"> 739</span> : descriptor{} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno"> 740</span></div>
|
|
<div class="foldopen" id="foldopen00745" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a891037fd8c4d3d4eb6dca94ebbd0ab74"> 745</a></span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a891037fd8c4d3d4eb6dca94ebbd0ab74">basic_group</a>(<a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a5ebb7fc96e20ebb95ce3af127983f296">handler</a> &<a class="code hl_enumvalue" href="namespaceentt.html#add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15">ref</a>) noexcept</div>
|
|
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno"> 746</span> : descriptor{&<a class="code hl_enumvalue" href="namespaceentt.html#add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15">ref</a>} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno"> 747</span></div>
|
|
<div class="foldopen" id="foldopen00752" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00752" name="l00752"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1"> 752</a></span> [[nodiscard]] <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a51f55ba9c65468ef4f615fae26b881d7">common_type</a> &<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00753" name="l00753"></a><span class="lineno"> 753</span> <span class="keywordflow">return</span> *<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage<0></a>();</div>
|
|
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno"> 754</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno"> 755</span></div>
|
|
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno"> 761</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="foldopen" id="foldopen00762" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f"> 762</a></span> [[nodiscard]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno"> 763</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage<index_of<Type></a>>();</div>
|
|
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno"> 764</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00765" name="l00765"></a><span class="lineno"> 765</span></div>
|
|
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno"> 771</span> <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> Index></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__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f"> 772</a></span> [[nodiscard]] <span class="keyword">auto</span> *<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno"> 773</span> <span class="keyword">using </span>type = <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a><Index, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a><Owned..., Get..., Exclude...>>;</div>
|
|
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno"> 774</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <span class="keyword">static_cast<</span>type *<span class="keyword">></span>(descriptor->template <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">storage<Index></a>()) : <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00775" name="l00775"></a><span class="lineno"> 775</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00776" name="l00776"></a><span class="lineno"> 776</span></div>
|
|
<div class="foldopen" id="foldopen00781" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00781" name="l00781"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30cf23333313f4b6c636d64b8798bfd"> 781</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60">size_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30cf23333313f4b6c636d64b8798bfd">size</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00782" name="l00782"></a><span class="lineno"> 782</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? descriptor->length() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60">size_type</a>{};</div>
|
|
<div class="line"><a id="l00783" name="l00783"></a><span class="lineno"> 783</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00784" name="l00784"></a><span class="lineno"> 784</span></div>
|
|
<div class="foldopen" id="foldopen00789" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00789" name="l00789"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4ac68edd780bdec355ef654fd9bd1fd"> 789</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4ac68edd780bdec355ef654fd9bd1fd">empty</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00790" name="l00790"></a><span class="lineno"> 790</span> <span class="keywordflow">return</span> !*<span class="keyword">this</span> || !descriptor->length();</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="foldopen00800" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00800" name="l00800"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769"> 800</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">begin</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00801" name="l00801"></a><span class="lineno"> 801</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? (<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().end() - <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144">difference_type</a><span class="keyword">></span>(descriptor->length())) : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a>{};</div>
|
|
<div class="line"><a id="l00802" name="l00802"></a><span class="lineno"> 802</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno"> 803</span></div>
|
|
<div class="foldopen" id="foldopen00809" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a99c4a0d307973232a293a83e85d578f5"> 809</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a99c4a0d307973232a293a83e85d578f5">end</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno"> 810</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().end() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a>{};</div>
|
|
<div class="line"><a id="l00811" name="l00811"></a><span class="lineno"> 811</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00812" name="l00812"></a><span class="lineno"> 812</span></div>
|
|
<div class="foldopen" id="foldopen00820" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00820" name="l00820"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#adbfcd5c0d456b00a2265ad54bf7855aa"> 820</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">reverse_iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#adbfcd5c0d456b00a2265ad54bf7855aa">rbegin</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno"> 821</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().rbegin() : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno"> 822</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno"> 823</span></div>
|
|
<div class="foldopen" id="foldopen00830" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa7d0eecd17174df1ae26f59939023c7e"> 830</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">reverse_iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa7d0eecd17174df1ae26f59939023c7e">rend</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno"> 831</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> ? (<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().rbegin() + <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144">difference_type</a><span class="keyword">></span>(descriptor->length())) : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">reverse_iterator</a>{};</div>
|
|
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno"> 832</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno"> 833</span></div>
|
|
<div class="foldopen" id="foldopen00839" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00839" name="l00839"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a824f21536b1352d744fdfcee94d79c8c"> 839</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a824f21536b1352d744fdfcee94d79c8c">front</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00840" name="l00840"></a><span class="lineno"> 840</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">begin</a>();</div>
|
|
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno"> 841</span> <span class="keywordflow">return</span> it != <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a99c4a0d307973232a293a83e85d578f5">end</a>() ? *it : <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00842" name="l00842"></a><span class="lineno"> 842</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno"> 843</span></div>
|
|
<div class="foldopen" id="foldopen00849" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3a32cd6d22bd3a4a5e1b99a13da02ad1"> 849</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3a32cd6d22bd3a4a5e1b99a13da02ad1">back</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00850" name="l00850"></a><span class="lineno"> 850</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#adbfcd5c0d456b00a2265ad54bf7855aa">rbegin</a>();</div>
|
|
<div class="line"><a id="l00851" name="l00851"></a><span class="lineno"> 851</span> <span class="keywordflow">return</span> it != <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa7d0eecd17174df1ae26f59939023c7e">rend</a>() ? *it : <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</div>
|
|
<div class="line"><a id="l00852" name="l00852"></a><span class="lineno"> 852</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00853" name="l00853"></a><span class="lineno"> 853</span></div>
|
|
<div class="foldopen" id="foldopen00860" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00860" name="l00860"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a656bae2e26463cc4600b1767b54bb369"> 860</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a656bae2e26463cc4600b1767b54bb369">find</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">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="l00861" name="l00861"></a><span class="lineno"> 861</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = *<span class="keyword">this</span> ? <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().find(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a>{};</div>
|
|
<div class="line"><a id="l00862" name="l00862"></a><span class="lineno"> 862</span> <span class="keywordflow">return</span> it >= <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">begin</a>() ? it : <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">iterator</a>{};</div>
|
|
<div class="line"><a id="l00863" name="l00863"></a><span class="lineno"> 863</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno"> 864</span></div>
|
|
<div class="foldopen" id="foldopen00870" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9c8624960249235714926777c1b4423e"> 870</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9c8624960249235714926777c1b4423e">operator[]</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60">size_type</a> pos)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno"> 871</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">begin</a>()[<span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144">difference_type</a><span class="keyword">></span>(pos)];</div>
|
|
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno"> 872</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno"> 873</span></div>
|
|
<div class="foldopen" id="foldopen00878" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00878" name="l00878"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ac4a67ec8ec5c496f331e10a01acf7ef8"> 878</a></span> [[nodiscard]] <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() const noexcept {</div>
|
|
<div class="line"><a id="l00879" name="l00879"></a><span class="lineno"> 879</span> <span class="keywordflow">return</span> descriptor != <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00880" name="l00880"></a><span class="lineno"> 880</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00881" name="l00881"></a><span class="lineno"> 881</span></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__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a7c8602aabac11b094162e687a7a07668"> 887</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a7c8602aabac11b094162e687a7a07668">contains</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">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="l00888" name="l00888"></a><span class="lineno"> 888</span> <span class="keywordflow">return</span> *<span class="keyword">this</span> && <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().contains(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) && (<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">handle</a>().index(<a class="code hl_namespace" href="namespaceentt.html">entt</a>) < (descriptor->length()));</div>
|
|
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno"> 889</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno"> 890</span></div>
|
|
<div class="line"><a id="l00898" name="l00898"></a><span class="lineno"> 898</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Other></div>
|
|
<div class="foldopen" id="foldopen00899" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00899" name="l00899"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a0cc40a8d9473eace55d248be609671a7"> 899</a></span> [[nodiscard]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a0cc40a8d9473eace55d248be609671a7">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00900" name="l00900"></a><span class="lineno"> 900</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a0cc40a8d9473eace55d248be609671a7">get<index_of<Type></a>, index_of<Other>...>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a id="l00901" name="l00901"></a><span class="lineno"> 901</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00902" name="l00902"></a><span class="lineno"> 902</span></div>
|
|
<div class="line"><a id="l00909" name="l00909"></a><span class="lineno"> 909</span> <span class="keyword">template</span><std::size_t... Index></div>
|
|
<div class="foldopen" id="foldopen00910" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00910" name="l00910"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ad3fe15acceec2e1d20c222919ec30441"> 910</a></span> [[nodiscard]] <span class="keyword">decltype</span>(<span class="keyword">auto</span>) <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ad3fe15acceec2e1d20c222919ec30441">get</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entity_type</a> <a class="code hl_namespace" href="namespaceentt.html">entt</a>) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l00911" name="l00911"></a><span class="lineno"> 911</span> <span class="keyword">const</span> <span class="keyword">auto</span> cpools = pools_for(std::index_sequence_for<Owned...>{}, std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l00912" name="l00912"></a><span class="lineno"> 912</span> </div>
|
|
<div class="line"><a id="l00913" name="l00913"></a><span class="lineno"> 913</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l00914" name="l00914"></a><span class="lineno"> 914</span> <span class="keywordflow">return</span> std::apply([<a class="code hl_namespace" href="namespaceentt.html">entt</a>](<span class="keyword">auto</span> *...curr) { <span class="keywordflow">return</span> std::tuple_cat(curr->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...); }, cpools);</div>
|
|
<div class="line"><a id="l00915" name="l00915"></a><span class="lineno"> 915</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="l00916" name="l00916"></a><span class="lineno"> 916</span> <span class="keywordflow">return</span> (std::get<Index>(cpools)-><a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a0cc40a8d9473eace55d248be609671a7">get</a>(<a class="code hl_namespace" href="namespaceentt.html">entt</a>), ...);</div>
|
|
<div class="line"><a id="l00917" name="l00917"></a><span class="lineno"> 917</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00918" name="l00918"></a><span class="lineno"> 918</span> <span class="keywordflow">return</span> std::tuple_cat(std::get<Index>(cpools)->get_as_tuple(<a class="code hl_namespace" href="namespaceentt.html">entt</a>)...);</div>
|
|
<div class="line"><a id="l00919" name="l00919"></a><span class="lineno"> 919</span> }</div>
|
|
<div class="line"><a id="l00920" name="l00920"></a><span class="lineno"> 920</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno"> 921</span></div>
|
|
<div class="line"><a id="l00944" name="l00944"></a><span class="lineno"> 944</span> <span class="keyword">template</span><<span class="keyword">typename</span> Func></div>
|
|
<div class="foldopen" id="foldopen00945" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00945" name="l00945"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02d082ed4b5d573c6b79644383f5f838"> 945</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02d082ed4b5d573c6b79644383f5f838">each</a>(Func func)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00946" name="l00946"></a><span class="lineno"> 946</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> args: <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02d082ed4b5d573c6b79644383f5f838">each</a>()) {</div>
|
|
<div class="line"><a id="l00947" name="l00947"></a><span class="lineno"> 947</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_group>().get({})))>) {</div>
|
|
<div class="line"><a id="l00948" name="l00948"></a><span class="lineno"> 948</span> std::apply(func, args);</div>
|
|
<div class="line"><a id="l00949" name="l00949"></a><span class="lineno"> 949</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00950" name="l00950"></a><span class="lineno"> 950</span> std::apply([&func](<span class="keyword">auto</span>, <span class="keyword">auto</span> &&...less) { func(std::forward<<span class="keyword">decltype</span>(less)>(less)...); }, args);</div>
|
|
<div class="line"><a id="l00951" name="l00951"></a><span class="lineno"> 951</span> }</div>
|
|
<div class="line"><a id="l00952" name="l00952"></a><span class="lineno"> 952</span> }</div>
|
|
<div class="line"><a id="l00953" name="l00953"></a><span class="lineno"> 953</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00954" name="l00954"></a><span class="lineno"> 954</span></div>
|
|
<div class="foldopen" id="foldopen00968" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00968" name="l00968"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30df55e12ed00f3e90ec23bd25595e2"> 968</a></span> [[nodiscard]] <a class="code hl_typedef" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4e52d1b38e4284b76bc51a72cb0b8c3">iterable</a> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30df55e12ed00f3e90ec23bd25595e2">each</a>() const noexcept {</div>
|
|
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno"> 969</span> <span class="keyword">const</span> <span class="keyword">auto</span> cpools = pools_for(std::index_sequence_for<Owned...>{}, std::index_sequence_for<Get...>{});</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="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4e52d1b38e4284b76bc51a72cb0b8c3">iterable</a>{{<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">begin</a>(), cpools}, {<a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a99c4a0d307973232a293a83e85d578f5">end</a>(), cpools}};</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="line"><a id="l01007" name="l01007"></a><span class="lineno"> 1007</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Other, <span class="keyword">typename</span> Compare, <span class="keyword">typename</span> Sort = <a class="code hl_struct" href="structentt_1_1std__sort.html">std_sort</a>, <span class="keyword">typename</span>... Args></div>
|
|
<div class="foldopen" id="foldopen01008" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01008" name="l01008"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ab1b8ab19edaaf721ba3f5db9b6dcab55"> 1008</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ab1b8ab19edaaf721ba3f5db9b6dcab55">sort</a>(Compare compare, Sort algo = Sort{}, Args &&...args) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l01009" name="l01009"></a><span class="lineno"> 1009</span> sort<index_of<Type>, index_of<Other>...>(std::move(compare), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l01010" name="l01010"></a><span class="lineno"> 1010</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01011" name="l01011"></a><span class="lineno"> 1011</span></div>
|
|
<div class="line"><a id="l01025" name="l01025"></a><span class="lineno"> 1025</span> <span class="keyword">template</span><std::size_t... Index, <span class="keyword">typename</span> Compare, <span class="keyword">typename</span> Sort = std_sort, <span class="keyword">typename</span>... Args></div>
|
|
<div class="foldopen" id="foldopen01026" data-start="{" data-end="}">
|
|
<div class="line"><a id="l01026" name="l01026"></a><span class="lineno"><a class="line" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#afb19e07ca3440d9e7850aa888119cb63"> 1026</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#afb19e07ca3440d9e7850aa888119cb63">sort</a>(Compare compare, Sort algo = Sort{}, Args &&...args) <span class="keyword">const</span> {</div>
|
|
<div class="line"><a id="l01027" name="l01027"></a><span class="lineno"> 1027</span> <span class="keyword">const</span> <span class="keyword">auto</span> cpools = pools_for(std::index_sequence_for<Owned...>{}, std::index_sequence_for<Get...>{});</div>
|
|
<div class="line"><a id="l01028" name="l01028"></a><span class="lineno"> 1028</span> </div>
|
|
<div class="line"><a id="l01029" name="l01029"></a><span class="lineno"> 1029</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 0) {</div>
|
|
<div class="line"><a id="l01030" name="l01030"></a><span class="lineno"> 1030</span> <span class="keyword">static_assert</span>(std::is_invocable_v<Compare, const entity_type, const entity_type>, <span class="stringliteral">"Invalid comparison function"</span>);</div>
|
|
<div class="line"><a id="l01031" name="l01031"></a><span class="lineno"> 1031</span> storage<0>()->sort_n(descriptor->length(), std::move(compare), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l01032" name="l01032"></a><span class="lineno"> 1032</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01033" name="l01033"></a><span class="lineno"> 1033</span> <span class="keyword">auto</span> comp = [&compare, &cpools](<span class="keyword">const</span> entity_type lhs, <span class="keyword">const</span> entity_type rhs) {</div>
|
|
<div class="line"><a id="l01034" name="l01034"></a><span class="lineno"> 1034</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<span class="keyword">sizeof</span>...(Index) == 1) {</div>
|
|
<div class="line"><a id="l01035" name="l01035"></a><span class="lineno"> 1035</span> <span class="keywordflow">return</span> compare((std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(lhs), ...), (std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(rhs), ...));</div>
|
|
<div class="line"><a id="l01036" name="l01036"></a><span class="lineno"> 1036</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l01037" name="l01037"></a><span class="lineno"> 1037</span> <span class="keywordflow">return</span> compare(std::forward_as_tuple(std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(lhs)...), std::forward_as_tuple(std::get<Index>(cpools)-><a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>(rhs)...));</div>
|
|
<div class="line"><a id="l01038" name="l01038"></a><span class="lineno"> 1038</span> }</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> storage<0>()->sort_n(descriptor->length(), std::move(comp), std::move(algo), std::forward<Args>(args)...);</div>
|
|
<div class="line"><a id="l01042" name="l01042"></a><span class="lineno"> 1042</span> }</div>
|
|
<div class="line"><a id="l01043" name="l01043"></a><span class="lineno"> 1043</span> </div>
|
|
<div class="line"><a id="l01044" name="l01044"></a><span class="lineno"> 1044</span> <span class="keyword">auto</span> cb = [<span class="keyword">this</span>](<span class="keyword">auto</span> *head, <span class="keyword">auto</span> *...other) {</div>
|
|
<div class="line"><a id="l01045" name="l01045"></a><span class="lineno"> 1045</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> next = descriptor->length(); next; --next) {</div>
|
|
<div class="line"><a id="l01046" name="l01046"></a><span class="lineno"> 1046</span> <span class="keyword">const</span> <span class="keyword">auto</span> pos = next - 1;</div>
|
|
<div class="line"><a id="l01047" name="l01047"></a><span class="lineno"> 1047</span> [[maybe_unused]] <span class="keyword">const</span> <span class="keyword">auto</span> entt = head->data()[pos];</div>
|
|
<div class="line"><a id="l01048" name="l01048"></a><span class="lineno"> 1048</span> (other->swap_elements(other->data()[pos], entt), ...);</div>
|
|
<div class="line"><a id="l01049" name="l01049"></a><span class="lineno"> 1049</span> }</div>
|
|
<div class="line"><a id="l01050" name="l01050"></a><span class="lineno"> 1050</span> };</div>
|
|
<div class="line"><a id="l01051" name="l01051"></a><span class="lineno"> 1051</span> </div>
|
|
<div class="line"><a id="l01052" name="l01052"></a><span class="lineno"> 1052</span> std::apply(cb, cpools);</div>
|
|
<div class="line"><a id="l01053" name="l01053"></a><span class="lineno"> 1053</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l01054" name="l01054"></a><span class="lineno"> 1054</span> </div>
|
|
<div class="line"><a id="l01055" name="l01055"></a><span class="lineno"> 1055</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l01056" name="l01056"></a><span class="lineno"> 1056</span> handler *descriptor;</div>
|
|
<div class="line"><a id="l01057" name="l01057"></a><span class="lineno"> 1057</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l01058" name="l01058"></a><span class="lineno"> 1058</span> </div>
|
|
<div class="line"><a id="l01059" name="l01059"></a><span class="lineno"> 1059</span>} <span class="comment">// namespace entt</span></div>
|
|
<div class="line"><a id="l01060" name="l01060"></a><span class="lineno"> 1060</span> </div>
|
|
<div class="line"><a id="l01061" name="l01061"></a><span class="lineno"> 1061</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a02195bbadcbe2f41854c7dc0a0a178e1"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02195bbadcbe2f41854c7dc0a0a178e1">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::handle</a></div><div class="ttdeci">const common_type & handle() const noexcept</div><div class="ttdoc">Returns the leading storage of a group.</div><div class="ttdef"><b>Definition</b> <a href="#l00752">group.hpp:752</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a02d082ed4b5d573c6b79644383f5f838"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a02d082ed4b5d573c6b79644383f5f838">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00945">group.hpp:945</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a0cc40a8d9473eace55d248be609671a7"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a0cc40a8d9473eace55d248be609671a7">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00899">group.hpp:899</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a181467a35167330707fbe2ad94a60e57"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a181467a35167330707fbe2ad94a60e57">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::basic_group</a></div><div class="ttdeci">basic_group() noexcept</div><div class="ttdoc">Default constructor to use to create empty, invalid groups.</div><div class="ttdef"><b>Definition</b> <a href="#l00738">group.hpp:738</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a3a32cd6d22bd3a4a5e1b99a13da02ad1"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3a32cd6d22bd3a4a5e1b99a13da02ad1">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::back</a></div><div class="ttdeci">entity_type back() const noexcept</div><div class="ttdoc">Returns the last entity of the group, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00849">group.hpp:849</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a3fd2db6528ee4a5e14f96dd6b0f38769"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a3fd2db6528ee4a5e14f96dd6b0f38769">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::begin</a></div><div class="ttdeci">iterator begin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the group.</div><div class="ttdef"><b>Definition</b> <a href="#l00800">group.hpp:800</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a4e34173909e85aa6ce57d1e21359ca60"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a4e34173909e85aa6ce57d1e21359ca60">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00715">group.hpp:715</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a51f55ba9c65468ef4f615fae26b881d7"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a51f55ba9c65468ef4f615fae26b881d7">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::common_type</a></div><div class="ttdeci">base_type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00719">group.hpp:719</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a544a600146d8e1a23d7233ef0447198f"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a544a600146d8e1a23d7233ef0447198f">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00762">group.hpp:762</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a5ebb7fc96e20ebb95ce3af127983f296"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a5ebb7fc96e20ebb95ce3af127983f296">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::handler</a></div><div class="ttdeci">internal::group_handler< common_type, sizeof...(Owned), sizeof...(Get), sizeof...(Exclude)> handler</div><div class="ttdoc">Group handler type.</div><div class="ttdef"><b>Definition</b> <a href="#l00727">group.hpp:727</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a611925e5ae41497d06519a40aaabdc64"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a611925e5ae41497d06519a40aaabdc64">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::iterator</a></div><div class="ttdeci">typename common_type::iterator iterator</div><div class="ttdoc">Random access iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00721">group.hpp:721</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a656bae2e26463cc4600b1767b54bb369"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a656bae2e26463cc4600b1767b54bb369">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00860">group.hpp:860</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a7c8602aabac11b094162e687a7a07668"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a7c8602aabac11b094162e687a7a07668">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::contains</a></div><div class="ttdeci">bool contains(const entity_type entt) const noexcept</div><div class="ttdoc">Checks if a group contains an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00887">group.hpp:887</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a824f21536b1352d744fdfcee94d79c8c"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a824f21536b1352d744fdfcee94d79c8c">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::front</a></div><div class="ttdeci">entity_type front() const noexcept</div><div class="ttdoc">Returns the first entity of the group, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00839">group.hpp:839</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a891037fd8c4d3d4eb6dca94ebbd0ab74"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a891037fd8c4d3d4eb6dca94ebbd0ab74">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::basic_group</a></div><div class="ttdeci">basic_group(handler &ref) noexcept</div><div class="ttdoc">Constructs a group from a set of storage classes.</div><div class="ttdef"><b>Definition</b> <a href="#l00745">group.hpp:745</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a99c4a0d307973232a293a83e85d578f5"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a99c4a0d307973232a293a83e85d578f5">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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 group.</div><div class="ttdef"><b>Definition</b> <a href="#l00809">group.hpp:809</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a9bc92cfc49d8a5f02420f9d5ed3f086e"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9bc92cfc49d8a5f02420f9d5ed3f086e">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::reverse_iterator</a></div><div class="ttdeci">typename common_type::reverse_iterator reverse_iterator</div><div class="ttdoc">Reverse iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00723">group.hpp:723</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_a9c8624960249235714926777c1b4423e"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#a9c8624960249235714926777c1b4423e">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::operator[]</a></div><div class="ttdeci">entity_type operator[](const size_type pos) const</div><div class="ttdoc">Returns the identifier that occupies the given position.</div><div class="ttdef"><b>Definition</b> <a href="#l00870">group.hpp:870</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_aa30cf23333313f4b6c636d64b8798bfd"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30cf23333313f4b6c636d64b8798bfd">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdoc">Returns the number of entities that that are part of the group.</div><div class="ttdef"><b>Definition</b> <a href="#l00781">group.hpp:781</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_aa30df55e12ed00f3e90ec23bd25595e2"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa30df55e12ed00f3e90ec23bd25595e2">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::each</a></div><div class="ttdeci">iterable each() const noexcept</div><div class="ttdoc">Returns an iterable object to use to visit a group.</div><div class="ttdef"><b>Definition</b> <a href="#l00968">group.hpp:968</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_aa7d0eecd17174df1ae26f59939023c7e"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#aa7d0eecd17174df1ae26f59939023c7e">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::rend</a></div><div class="ttdeci">reverse_iterator rend() const noexcept</div><div class="ttdoc">Returns an iterator that is past the last entity of the reversed group.</div><div class="ttdef"><b>Definition</b> <a href="#l00830">group.hpp:830</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ab1b8ab19edaaf721ba3f5db9b6dcab55"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ab1b8ab19edaaf721ba3f5db9b6dcab55">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::sort</a></div><div class="ttdeci">void sort(Compare compare, Sort algo=Sort{}, Args &&...args) const</div><div class="ttdoc">Sort a group according to the given comparison function.</div><div class="ttdef"><b>Definition</b> <a href="#l01008">group.hpp:1008</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_abb8a3829dcd9e0699bb39e52ba42c9c1"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#abb8a3829dcd9e0699bb39e52ba42c9c1">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::entity_type</a></div><div class="ttdeci">underlying_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00713">group.hpp:713</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ace5500fb779bdb6d757061b1abb8c144"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ace5500fb779bdb6d757061b1abb8c144">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdoc">Signed integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00717">group.hpp:717</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ad3fe15acceec2e1d20c222919ec30441"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ad3fe15acceec2e1d20c222919ec30441">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::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="#l00910">group.hpp:910</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_adbfcd5c0d456b00a2265ad54bf7855aa"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#adbfcd5c0d456b00a2265ad54bf7855aa">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::rbegin</a></div><div class="ttdeci">reverse_iterator rbegin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the reversed group.</div><div class="ttdef"><b>Definition</b> <a href="#l00820">group.hpp:820</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ae1cc1b088c5625d4fc991a35d959995d"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae1cc1b088c5625d4fc991a35d959995d">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::group_id</a></div><div class="ttdeci">static id_type group_id() noexcept</div><div class="ttdoc">Group opaque identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00733">group.hpp:733</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ae4ac68edd780bdec355ef654fd9bd1fd"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4ac68edd780bdec355ef654fd9bd1fd">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::empty</a></div><div class="ttdeci">bool empty() const noexcept</div><div class="ttdoc">Checks whether a group is empty.</div><div class="ttdef"><b>Definition</b> <a href="#l00789">group.hpp:789</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_ae4e52d1b38e4284b76bc51a72cb0b8c3"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#ae4e52d1b38e4284b76bc51a72cb0b8c3">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::iterable</a></div><div class="ttdeci">iterable_adaptor< internal::extended_group_iterator< iterator, owned_t< Owned... >, get_t< Get... > > > iterable</div><div class="ttdoc">Iterable group type.</div><div class="ttdef"><b>Definition</b> <a href="#l00725">group.hpp:725</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72_html_afb19e07ca3440d9e7850aa888119cb63"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_01Owned_8_8_8_01_4_00_01get__t_3_01Get_8_8_8_01_4_00_011bc3c06bb47de7bb72ca45b6e209ac72.html#afb19e07ca3440d9e7850aa888119cb63">entt::basic_group< owned_t< Owned... >, get_t< Get... >, exclude_t< Exclude... > >::sort</a></div><div class="ttdeci">void sort(Compare compare, Sort algo=Sort{}, Args &&...args) const</div><div class="ttdoc">Sort a group according to the given comparison function.</div><div class="ttdef"><b>Definition</b> <a href="#l01026">group.hpp:1026</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a02df8d2cc8e492f0faa1b8218591f258"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a02df8d2cc8e492f0faa1b8218591f258">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::begin</a></div><div class="ttdeci">iterator begin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the group.</div><div class="ttdef"><b>Definition</b> <a href="#l00400">group.hpp:400</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a044bf4aef3d8b417e50e128dce5f78f2"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a044bf4aef3d8b417e50e128dce5f78f2">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::sort_as</a></div><div class="ttdeci">void sort_as(It first, It last) const</div><div class="ttdoc">Sort entities according to their order in a range.</div><div class="ttdef"><b>Definition</b> <a href="#l00654">group.hpp:654</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a1087af5249eb3f2049610ae8d0b07bd7"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1087af5249eb3f2049610ae8d0b07bd7">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::group_id</a></div><div class="ttdeci">static id_type group_id() noexcept</div><div class="ttdoc">Group opaque identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00317">group.hpp:317</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a18edc7d92e7c5a336405c686fd102d9b"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a18edc7d92e7c5a336405c686fd102d9b">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00346">group.hpp:346</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a1f1ebbcf7774e04d4ecc91b6b5a14469"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a1f1ebbcf7774e04d4ecc91b6b5a14469">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::reverse_iterator</a></div><div class="ttdeci">typename common_type::reverse_iterator reverse_iterator</div><div class="ttdoc">Reverse iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00307">group.hpp:307</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a2048d3e38b1ef64777a701d4a9e1a92d"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a2048d3e38b1ef64777a701d4a9e1a92d">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::basic_group</a></div><div class="ttdeci">basic_group(handler &ref) noexcept</div><div class="ttdoc">Constructs a group from a set of storage classes.</div><div class="ttdef"><b>Definition</b> <a href="#l00329">group.hpp:329</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a38ee47145fc3fcb63ab0a80250f43a55"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38ee47145fc3fcb63ab0a80250f43a55">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::operator[]</a></div><div class="ttdeci">entity_type operator[](const size_type pos) const</div><div class="ttdoc">Returns the identifier that occupies the given position.</div><div class="ttdef"><b>Definition</b> <a href="#l00469">group.hpp:469</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a38f5f9228661385295bc7a576fb187fe"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a38f5f9228661385295bc7a576fb187fe">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::contains</a></div><div class="ttdeci">bool contains(const entity_type entt) const noexcept</div><div class="ttdoc">Checks if a group contains an entity.</div><div class="ttdef"><b>Definition</b> <a href="#l00486">group.hpp:486</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a3be8735e76b3d7389c783a60ad80d624"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3be8735e76b3d7389c783a60ad80d624">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::sort</a></div><div class="ttdeci">void sort(Compare compare, Sort algo=Sort{}, Args &&...args)</div><div class="ttdoc">Sort a group according to the given comparison function.</div><div class="ttdef"><b>Definition</b> <a href="#l00624">group.hpp:624</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a3c52657f3305d9076c8859df5e2792f2"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a3c52657f3305d9076c8859df5e2792f2">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::rbegin</a></div><div class="ttdeci">reverse_iterator rbegin() const noexcept</div><div class="ttdoc">Returns an iterator to the first entity of the reversed group.</div><div class="ttdef"><b>Definition</b> <a href="#l00420">group.hpp:420</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a41dc2207369df205d0776db3e78be604"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a41dc2207369df205d0776db3e78be604">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::iterable</a></div><div class="ttdeci">iterable_adaptor< internal::extended_group_iterator< iterator, owned_t<>, get_t< Get... > > > iterable</div><div class="ttdoc">Iterable group type.</div><div class="ttdef"><b>Definition</b> <a href="#l00309">group.hpp:309</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a4d5bfe2db9bebc127208c2d19e4731f6"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4d5bfe2db9bebc127208c2d19e4731f6">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::handle</a></div><div class="ttdeci">const common_type & handle() const noexcept</div><div class="ttdoc">Returns the leading storage of a group.</div><div class="ttdef"><b>Definition</b> <a href="#l00336">group.hpp:336</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a4f242692abecbf361c09117c14c73fe4"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a4f242692abecbf361c09117c14c73fe4">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::sort</a></div><div class="ttdeci">void sort(Compare compare, Sort algo=Sort{}, Args &&...args)</div><div class="ttdoc">Sort a group according to the given comparison function.</div><div class="ttdef"><b>Definition</b> <a href="#l00606">group.hpp:606</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a507bcb4508ac957e96be3b4691633aa9"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a507bcb4508ac957e96be3b4691633aa9">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00498">group.hpp:498</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a64e489bb00e091fd7203d91b5d1aaf5a"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a64e489bb00e091fd7203d91b5d1aaf5a">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::empty</a></div><div class="ttdeci">bool empty() const noexcept</div><div class="ttdoc">Checks whether a group is empty.</div><div class="ttdef"><b>Definition</b> <a href="#l00389">group.hpp:389</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a66cfc4cf7cc6ded38267f92436256904"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a66cfc4cf7cc6ded38267f92436256904">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdoc">Signed integer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00301">group.hpp:301</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a7a9e949db960db1c091f7042b6829026"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a7a9e949db960db1c091f7042b6829026">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00544">group.hpp:544</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a8a9d3d57c43e454d991d1c7c85752cd9"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a8a9d3d57c43e454d991d1c7c85752cd9">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00509">group.hpp:509</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_a9097b3db0054d341d6dbb31a8531b6f4"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#a9097b3db0054d341d6dbb31a8531b6f4">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00299">group.hpp:299</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_aaec4bf1c339ee706c1e382f81e995116"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#aaec4bf1c339ee706c1e382f81e995116">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::capacity</a></div><div class="ttdeci">size_type capacity() const noexcept</div><div class="ttdoc">Returns the number of elements that a group has currently allocated space for.</div><div class="ttdef"><b>Definition</b> <a href="#l00374">group.hpp:374</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ab0dee7a4e6589ce4a1bdec06a38f3e59"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab0dee7a4e6589ce4a1bdec06a38f3e59">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::shrink_to_fit</a></div><div class="ttdeci">void shrink_to_fit()</div><div class="ttdoc">Requests the removal of unused capacity.</div><div class="ttdef"><b>Definition</b> <a href="#l00379">group.hpp:379</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ab5ba983fbaee1dce61af5edeb3872ecd"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ab5ba983fbaee1dce61af5edeb3872ecd">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::front</a></div><div class="ttdeci">entity_type front() const noexcept</div><div class="ttdoc">Returns the first entity of the group, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00439">group.hpp:439</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_abfbf1ce09751a74c56743688c7769f99"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#abfbf1ce09751a74c56743688c7769f99">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::rend</a></div><div class="ttdeci">reverse_iterator rend() const noexcept</div><div class="ttdoc">Returns an iterator that is past the last entity of the reversed group.</div><div class="ttdef"><b>Definition</b> <a href="#l00430">group.hpp:430</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ac308d47ad733d64e47937a9e9a3be3e2"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac308d47ad733d64e47937a9e9a3be3e2">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::handler</a></div><div class="ttdeci">internal::group_handler< common_type, 0u, sizeof...(Get), sizeof...(Exclude)> handler</div><div class="ttdoc">Group handler type.</div><div class="ttdef"><b>Definition</b> <a href="#l00311">group.hpp:311</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ac52f9ee1f7aab92da230399fba664480"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac52f9ee1f7aab92da230399fba664480">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::entity_type</a></div><div class="ttdeci">underlying_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition</b> <a href="#l00297">group.hpp:297</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ac63cc46269cc44038dee7f51a3663342"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac63cc46269cc44038dee7f51a3663342">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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="#l00460">group.hpp:460</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ac94857c70d27826612b584af4c70f200"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ac94857c70d27826612b584af4c70f200">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::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 group.</div><div class="ttdef"><b>Definition</b> <a href="#l00409">group.hpp:409</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_acd96ed39873cbcb38100928945e5781f"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#acd96ed39873cbcb38100928945e5781f">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::iterator</a></div><div class="ttdeci">typename common_type::iterator iterator</div><div class="ttdoc">Random access iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00305">group.hpp:305</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ad23be7c83702338af05db3fd851a4a1b"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ad23be7c83702338af05db3fd851a4a1b">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::back</a></div><div class="ttdeci">entity_type back() const noexcept</div><div class="ttdoc">Returns the last entity of the group, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00449">group.hpp:449</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_adc11363d541605654bf66ed62f5359eb"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#adc11363d541605654bf66ed62f5359eb">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::each</a></div><div class="ttdeci">iterable each() const noexcept</div><div class="ttdoc">Returns an iterable object to use to visit a group.</div><div class="ttdef"><b>Definition</b> <a href="#l00567">group.hpp:567</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_ae404710a7c3d6d5ca6b2066d0bffea07"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#ae404710a7c3d6d5ca6b2066d0bffea07">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::common_type</a></div><div class="ttdeci">base_type common_type</div><div class="ttdoc">Common type among all storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00303">group.hpp:303</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_af0007b6e275808ca8037551a4133a0b8"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#af0007b6e275808ca8037551a4133a0b8">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::basic_group</a></div><div class="ttdeci">basic_group() noexcept</div><div class="ttdoc">Default constructor to use to create empty, invalid groups.</div><div class="ttdef"><b>Definition</b> <a href="#l00322">group.hpp:322</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4_html_afd8a5c5072abffebe052dd8f1eeb7411"><div class="ttname"><a href="classentt_1_1basic__group_3_01owned__t_3_4_00_01get__t_3_01Get_8_8_8_01_4_00_01exclude__t_3_01Exclude_8_8_8_01_4_01_4.html#afd8a5c5072abffebe052dd8f1eeb7411">entt::basic_group< owned_t<>, get_t< Get... >, exclude_t< Exclude... > >::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdoc">Returns the number of entities that are part of the group.</div><div class="ttdef"><b>Definition</b> <a href="#l00365">group.hpp:365</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_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_a3a9e46d106b526d281a35901da1edea6"><div class="ttname"><a href="namespaceentt.html#a3a9e46d106b526d281a35901da1edea6">entt::type_list_index_v</a></div><div class="ttdeci">constexpr std::size_t type_list_index_v</div><div class="ttdoc">Helper variable template.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00201">type_traits.hpp:201</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a4709e4ff444e7d9b73f97d9e471bf8af"><div class="ttname"><a href="namespaceentt.html#a4709e4ff444e7d9b73f97d9e471bf8af">entt::handle</a></div><div class="ttdeci">basic_handle< registry > handle</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#l00101">fwd.hpp:101</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#l00627">type_traits.hpp:627</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a620d583c0e6d64acf3d394524bb72303"><div class="ttname"><a href="namespaceentt.html#a620d583c0e6d64acf3d394524bb72303">entt::id_type</a></div><div class="ttdeci">std::uint32_t id_type</div><div class="ttdoc">Alias declaration for type identifiers.</div><div class="ttdef"><b>Definition</b> <a href="core_2fwd_8hpp_source.html#l00029">fwd.hpp:29</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#l00167">fwd.hpp:167</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#l00149">type_traits.hpp:149</a></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 class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00021">fwd.hpp:21</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_ac91ddbe2446a912714a5fe7251e25768"><div class="ttname"><a href="namespaceentt.html#ac91ddbe2446a912714a5fe7251e25768">entt::owned</a></div><div class="ttdeci">constexpr owned_t< Type... > owned</div><div class="ttdoc">Variable template for lists of owned elements.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00184">fwd.hpp:184</a></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_add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15"><div class="ttname"><a href="namespaceentt.html#add777bc22ff30abfbf52abd37d4e1549a18389a4a9ad5795744699cff0ba66c15">entt::any_policy::ref</a></div><div class="ttdeci">@ ref</div><div class="ttdoc">Aliasing mode, the object points to a non-const element.</div><div class="ttdef"><b>Definition</b> <a href="core_2fwd_8hpp_source.html#l00019">fwd.hpp:19</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#l00078">fwd.hpp:78</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#l00140">fwd.hpp:140</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#l00157">fwd.hpp:157</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_1owned__t_html"><div class="ttname"><a href="structentt_1_1owned__t.html">entt::owned_t</a></div><div class="ttdoc">Alias for lists of owned elements.</div><div class="ttdef"><b>Definition</b> <a href="entity_2fwd_8hpp_source.html#l00174">fwd.hpp:174</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1std__sort_html"><div class="ttname"><a href="structentt_1_1std__sort.html">entt::std_sort</a></div><div class="ttdoc">Function object to wrap std::sort in a class type.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8hpp_source.html#l00021">algorithm.hpp:21</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1type__hash_html"><div class="ttname"><a href="structentt_1_1type__hash.html">entt::type_hash</a></div><div class="ttdoc">Type hash.</div><div class="ttdef"><b>Definition</b> <a href="type__info_8hpp_source.html#l00092">type_info.hpp:92</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#l00111">type_traits.hpp:111</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.13.2
|
|
</small></address>
|
|
</div><!-- doc-content -->
|
|
</body>
|
|
</html>
|