392 lines
76 KiB
HTML
392 lines
76 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.10.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: src/entt/graph/adjacency_matrix.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">EnTT<span id="projectnumber"> 3.14.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.10.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_66e9674e8206a335795995fa32a03c91.html">entt</a></li><li class="navelem"><a class="el" href="dir_cb9807796ea702d95f280c116c66a3f6.html">graph</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">adjacency_matrix.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_GRAPH_ADJACENCY_MATRIX_HPP</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_GRAPH_ADJACENCY_MATRIX_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 <cstddef></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <iterator></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <memory></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <type_traits></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <utility></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include "../config/config.h"</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include "../core/iterator.hpp"</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span>internal {</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">template</span><<span class="keyword">typename</span> It></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">class </span>edge_iterator {</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">using </span>size_type = std::size_t;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">using </span>value_type = std::pair<size_type, size_type>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">using </span>pointer = input_iterator_pointer<value_type>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">using </span>reference = value_type;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">using </span>difference_type = std::ptrdiff_t;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">using </span>iterator_category = std::input_iterator_tag;</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">using </span>iterator_concept = std::forward_iterator_tag;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">constexpr</span> edge_iterator() noexcept = default;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)</span></div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> constexpr edge_iterator(It base, const size_type vertices, const size_type from, const size_type to, const size_type step) noexcept</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> : it{std::move(base)},</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> vert{vertices},</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> pos{from},</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> last{to},</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> offset{step} {</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">for</span>(; pos != last && !it[pos]; pos += offset) {}</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">constexpr</span> edge_iterator &operator++() noexcept {</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">for</span>(pos += offset; pos != last && !it[pos]; pos += offset) {}</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</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> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">constexpr</span> edge_iterator operator++(<span class="keywordtype">int</span>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> edge_iterator orig = *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> ++(*this), orig;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> [[nodiscard]] <span class="keyword">constexpr</span> reference operator*() const noexcept {</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">return</span> *operator->();</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> [[nodiscard]] <span class="keyword">constexpr</span> pointer operator->() const noexcept {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">return</span> std::make_pair<size_type>(pos / vert, pos % vert);</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</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> edge_iterator<Type> &, <span class="keyword">const</span> edge_iterator<Type> &) <span class="keyword">noexcept</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><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> It it{};</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> size_type vert{};</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> size_type pos{};</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> size_type last{};</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> size_type offset{};</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><span class="keyword">template</span><<span class="keyword">typename</span> Container></div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span>[[nodiscard]] <span class="keyword">inline</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> edge_iterator<Container> &lhs, <span class="keyword">const</span> edge_iterator<Container> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> lhs.pos == rhs.pos;</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> </div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="keyword">template</span><<span class="keyword">typename</span> Container></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>[[nodiscard]] <span class="keyword">inline</span> <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> edge_iterator<Container> &lhs, <span class="keyword">const</span> edge_iterator<Container> &rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>}</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>} <span class="comment">// namespace internal</span></div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="keyword">template</span><<span class="keyword">typename</span> Category, <span class="keyword">typename</span> Allocator></div>
|
|
<div class="foldopen" id="foldopen00091" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html"> 91</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> {</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">using </span>alloc_traits = std::allocator_traits<Allocator>;</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">static_assert</span>(std::is_base_of_v<directed_tag, Category>, <span class="stringliteral">"Invalid graph category"</span>);</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">static_assert</span>(std::is_same_v<typename alloc_traits::value_type, std::size_t>, <span class="stringliteral">"Invalid value type"</span>);</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">using </span>container_type = std::vector<std::size_t, typename alloc_traits::template rebind_alloc<std::size_t>>;</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8"> 99</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> = Allocator;</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c"> 101</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> = std::size_t;</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9"> 103</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> = <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a>;</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#aa2ac50f08d437489d4f761b418c48eda"> 105</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#aa2ac50f08d437489d4f761b418c48eda">edge_type</a> = std::pair<vertex_type, vertex_type>;</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a2a5cd6977bd31867ed853b737f3a2ff1"> 107</a></span> <span class="keyword">using </span><a class="code hl_class" href="classentt_1_1iota__iterator.html">vertex_iterator</a> = <a class="code hl_class" href="classentt_1_1iota__iterator.html">iota_iterator<vertex_type></a>;</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8"> 109</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8">edge_iterator</a> = internal::edge_iterator<typename container_type::const_iterator>;</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a88b3a1f0df93f9785b51ece42cb71852"> 111</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a88b3a1f0df93f9785b51ece42cb71852">out_edge_iterator</a> = <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8">edge_iterator</a>;</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ad1eb3bad19846f57d9a6a44bed6f360d"> 113</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad1eb3bad19846f57d9a6a44bed6f360d">in_edge_iterator</a> = <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8">edge_iterator</a>;</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a3beccfd9cecbffa10c80dc702ef95917"> 115</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a3beccfd9cecbffa10c80dc702ef95917">graph_category</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Category</a>;</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
<div class="foldopen" id="foldopen00118" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a3b3d88826c5e9e6d6696c57cfeadc365"> 118</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a3b3d88826c5e9e6d6696c57cfeadc365">adjacency_matrix</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a>(<a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a>{}))</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> : <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a>{0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>} {</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="foldopen" id="foldopen00126" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ae6940bc105cd3cd328a6abc3f19c14dc"> 126</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ae6940bc105cd3cd328a6abc3f19c14dc">adjacency_matrix</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a></div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> : <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a>{0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
|
<div class="foldopen" id="foldopen00135" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a854098472673c06c946df5efec991517"> 135</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a854098472673c06c946df5efec991517">adjacency_matrix</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a> = <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a>{})</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> : matrix{<a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a> * <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>},</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> vert{<a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a1b5b018fd516b2f3fbb5222ea47a2bbf"> 140</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a1b5b018fd516b2f3fbb5222ea47a2bbf">adjacency_matrix</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
|
|
<div class="foldopen" id="foldopen00147" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#adaa9b708b88f549673e7a9db7203b96c"> 147</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#adaa9b708b88f549673e7a9db7203b96c">adjacency_matrix</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>)</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> : matrix{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.matrix, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>},</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> vert{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.vert} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#adcbf612110d41734771cf1c5a6d999e3"> 152</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#adcbf612110d41734771cf1c5a6d999e3">adjacency_matrix</a>(<a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &&) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">default</a>;</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
|
|
<div class="foldopen" id="foldopen00159" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a7195a32e20c1099e6e32ef3e73475801"> 159</a></span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a>(<a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &&<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>)</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> : matrix{std::move(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.matrix), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>},</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> vert{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.vert} {}</div>
|
|
</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#aabdea98cbe302052e65e1a5328b49106"> 164</a></span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aabdea98cbe302052e65e1a5328b49106">~adjacency_matrix</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ab26e50bcbe59bf835f6a34a21a622095"> 170</a></span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &<a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ab26e50bcbe59bf835f6a34a21a622095">operator=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a760b57bbb50f8e98a9f6bf8c6c6a19c5"> 176</a></span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &<a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a760b57bbb50f8e98a9f6bf8c6c6a19c5">operator=</a>(<a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &&) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">default</a>;</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
|
|
<div class="foldopen" id="foldopen00182" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#aea59b70885fd22df3f80f59cf6e9e58b"> 182</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">constexpr</a> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">allocator_type</a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aea59b70885fd22df3f80f59cf6e9e58b">get_allocator</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">return</span> matrix.get_allocator();</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
|
|
<div class="foldopen" id="foldopen00187" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a81931cd90488b3e5269217f7d6064c93"> 187</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a81931cd90488b3e5269217f7d6064c93">clear</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> matrix.clear();</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> vert = {};</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
|
|
<div class="foldopen" id="foldopen00196" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a5ee4c669461f74485c4263ece0c05f2f"> 196</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a5ee4c669461f74485c4263ece0c05f2f">swap</a>(<a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keyword">using </span>std::swap;</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a5ee4c669461f74485c4263ece0c05f2f">swap</a>(matrix, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.matrix);</div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a5ee4c669461f74485c4263ece0c05f2f">swap</a>(vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.vert);</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
|
|
<div class="foldopen" id="foldopen00210" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a4d262116700a6aeda88d3bd0d0f2e3c2"> 210</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a4d262116700a6aeda88d3bd0d0f2e3c2">empty</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">const</span> <span class="keyword">auto</span> iterable = <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ab6638e821360bafa2d7ce2e12ef0825a">edges</a>();</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keywordflow">return</span> (iterable.begin() == iterable.end());</div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
|
|
<div class="foldopen" id="foldopen00219" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a70f8706c96d4c000ceab51d88402ca74"> 219</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a70f8706c96d4c000ceab51d88402ca74">size</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">return</span> vert;</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
|
|
<div class="foldopen" id="foldopen00227" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4"> 227</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor<vertex_iterator></a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span> {0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>, vert};</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
|
|
<div class="foldopen" id="foldopen00235" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ab6638e821360bafa2d7ce2e12ef0825a"> 235</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor<edge_iterator></a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ab6638e821360bafa2d7ce2e12ef0825a">edges</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = matrix.cbegin();</div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">sz</a> = matrix.size();</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keywordflow">return</span> {{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">sz</a>, 1u}, {<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">sz</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">sz</a>, 1u}};</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
|
|
<div class="foldopen" id="foldopen00246" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a4e28de523aa924aea9c8c78b5981a9df"> 246</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor<out_edge_iterator></a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a4e28de523aa924aea9c8c78b5981a9df">out_edges</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> vertex) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = matrix.cbegin();</div>
|
|
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a> = vertex * vert;</div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a> + vert;</div>
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <span class="keywordflow">return</span> {{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, 1u}, {<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, 1u}};</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> </div>
|
|
<div class="foldopen" id="foldopen00258" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a9213407b3d7b543348000a44357ccca1"> 258</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_struct" href="structentt_1_1iterable__adaptor.html">iterable_adaptor<in_edge_iterator></a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a9213407b3d7b543348000a44357ccca1">in_edges</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> vertex) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a> = matrix.cbegin();</div>
|
|
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a> = vertex;</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a> = vert * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a>;</div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keywordflow">return</span> {{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">from</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, vert}, {<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">it</a>, vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">to</a>, vert}};</div>
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
|
|
<div class="foldopen" id="foldopen00269" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#ad45c4c6b938ed028d7c99b1d1a678b9e"> 269</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ad45c4c6b938ed028d7c99b1d1a678b9e">resize</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>) {</div>
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <a class="code hl_class" href="classentt_1_1adjacency__matrix.html">adjacency_matrix</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>{<a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">vertices</a>, <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#aea59b70885fd22df3f80f59cf6e9e58b">get_allocator</a>()};</div>
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> </div>
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> [<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>]: <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#ab6638e821360bafa2d7ce2e12ef0825a">edges</a>()) {</div>
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.insert(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>);</div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> }</div>
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> </div>
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.swap(*<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
|
|
<div class="foldopen" id="foldopen00287" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a16d422fbdac17535196b27001b4bfd63"> 287</a></span> std::pair<edge_iterator, bool> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a16d422fbdac17535196b27001b4bfd63">insert</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) {</div>
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>;</div>
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> </div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_same_v<graph_category, undirected_tag>) {</div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a> * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>;</div>
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> ENTT_ASSERT(matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>] == matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a>], <span class="stringliteral">"Something went really wrong"</span>);</div>
|
|
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a>] = 1u;</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> </div>
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">inserted</a> = !std::exchange(matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>], 1u);</div>
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <span class="keywordflow">return</span> {<a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8">edge_iterator</a>{matrix.cbegin(), vert, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>, matrix.size(), 1u}, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">inserted</a>};</div>
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> </div>
|
|
<div class="foldopen" id="foldopen00306" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#adf91bac04f07bf7ce0478ecd5baeece7"> 306</a></span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#adf91bac04f07bf7ce0478ecd5baeece7">erase</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) {</div>
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>;</div>
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> </div>
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_same_v<graph_category, undirected_tag>) {</div>
|
|
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a> * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>;</div>
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> ENTT_ASSERT(matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>] == matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a>], <span class="stringliteral">"Something went really wrong"</span>);</div>
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rev</a>] = 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>;</div>
|
|
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> }</div>
|
|
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> </div>
|
|
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <span class="keywordflow">return</span> std::exchange(matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>], 0<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">u</a>);</div>
|
|
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> </div>
|
|
<div class="foldopen" id="foldopen00324" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"><a class="line" href="classentt_1_1adjacency__matrix.html#a783833a34672bcbd0afab063ab417a97"> 324</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1adjacency__matrix.html#a783833a34672bcbd0afab063ab417a97">contains</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">vertex_type</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> * vert + <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>;</div>
|
|
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a> < matrix.size() && matrix[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">pos</a>];</div>
|
|
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> </div>
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> container_type matrix;</div>
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <a class="code hl_typedef" href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">size_type</a> vert;</div>
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> </div>
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span>} <span class="comment">// namespace entt</span></div>
|
|
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> </div>
|
|
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html">entt::adjacency_matrix</a></div><div class="ttdoc">Basic implementation of a directed adjacency matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00091">adjacency_matrix.hpp:91</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a16d422fbdac17535196b27001b4bfd63"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a16d422fbdac17535196b27001b4bfd63">entt::adjacency_matrix::insert</a></div><div class="ttdeci">std::pair< edge_iterator, bool > insert(const vertex_type lhs, const vertex_type rhs)</div><div class="ttdoc">Inserts an edge into the adjacency matrix, if it does not exist.</div><div class="ttdef"><b>Definition</b> <a href="#l00287">adjacency_matrix.hpp:287</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a1b5b018fd516b2f3fbb5222ea47a2bbf"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a1b5b018fd516b2f3fbb5222ea47a2bbf">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix(const adjacency_matrix &)=default</div><div class="ttdoc">Default copy constructor.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a3b3d88826c5e9e6d6696c57cfeadc365"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a3b3d88826c5e9e6d6696c57cfeadc365">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix() noexcept(noexcept(allocator_type{}))</div><div class="ttdoc">Default constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00118">adjacency_matrix.hpp:118</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a3beccfd9cecbffa10c80dc702ef95917"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a3beccfd9cecbffa10c80dc702ef95917">entt::adjacency_matrix::graph_category</a></div><div class="ttdeci">Category graph_category</div><div class="ttdoc">Graph category tag.</div><div class="ttdef"><b>Definition</b> <a href="#l00115">adjacency_matrix.hpp:115</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a4d262116700a6aeda88d3bd0d0f2e3c2"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a4d262116700a6aeda88d3bd0d0f2e3c2">entt::adjacency_matrix::empty</a></div><div class="ttdeci">bool empty() const noexcept</div><div class="ttdoc">Returns true if an adjacency matrix is empty, false otherwise.</div><div class="ttdef"><b>Definition</b> <a href="#l00210">adjacency_matrix.hpp:210</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a4e28de523aa924aea9c8c78b5981a9df"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a4e28de523aa924aea9c8c78b5981a9df">entt::adjacency_matrix::out_edges</a></div><div class="ttdeci">iterable_adaptor< out_edge_iterator > out_edges(const vertex_type vertex) const noexcept</div><div class="ttdoc">Returns an iterable object to visit all out-edges of a vertex.</div><div class="ttdef"><b>Definition</b> <a href="#l00246">adjacency_matrix.hpp:246</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a4e2e74717c42df138ed98b1a33b6ffd8"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a4e2e74717c42df138ed98b1a33b6ffd8">entt::adjacency_matrix::edge_iterator</a></div><div class="ttdeci">internal::edge_iterator< typename container_type::const_iterator > edge_iterator</div><div class="ttdoc">Edge iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00109">adjacency_matrix.hpp:109</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a5ee4c669461f74485c4263ece0c05f2f"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a5ee4c669461f74485c4263ece0c05f2f">entt::adjacency_matrix::swap</a></div><div class="ttdeci">void swap(adjacency_matrix &other) noexcept</div><div class="ttdoc">Exchanges the contents with those of a given adjacency matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00196">adjacency_matrix.hpp:196</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a70f8706c96d4c000ceab51d88402ca74"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a70f8706c96d4c000ceab51d88402ca74">entt::adjacency_matrix::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdoc">Returns the number of vertices.</div><div class="ttdef"><b>Definition</b> <a href="#l00219">adjacency_matrix.hpp:219</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a72507bd210570d5712a5c40b0d345b6c"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a72507bd210570d5712a5c40b0d345b6c">entt::adjacency_matrix::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="#l00101">adjacency_matrix.hpp:101</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a740021db9b7bad492ebe3d074769d8b8"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a740021db9b7bad492ebe3d074769d8b8">entt::adjacency_matrix::allocator_type</a></div><div class="ttdeci">Allocator allocator_type</div><div class="ttdoc">Allocator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00099">adjacency_matrix.hpp:99</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a760b57bbb50f8e98a9f6bf8c6c6a19c5"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a760b57bbb50f8e98a9f6bf8c6c6a19c5">entt::adjacency_matrix::operator=</a></div><div class="ttdeci">adjacency_matrix & operator=(adjacency_matrix &&) noexcept=default</div><div class="ttdoc">Default move assignment operator.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a783833a34672bcbd0afab063ab417a97"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a783833a34672bcbd0afab063ab417a97">entt::adjacency_matrix::contains</a></div><div class="ttdeci">bool contains(const vertex_type lhs, const vertex_type rhs) const</div><div class="ttdoc">Checks if an adjacency matrix contains a given edge.</div><div class="ttdef"><b>Definition</b> <a href="#l00324">adjacency_matrix.hpp:324</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a81931cd90488b3e5269217f7d6064c93"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a81931cd90488b3e5269217f7d6064c93">entt::adjacency_matrix::clear</a></div><div class="ttdeci">void clear() noexcept</div><div class="ttdoc">Clears the adjacency matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00187">adjacency_matrix.hpp:187</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a854098472673c06c946df5efec991517"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a854098472673c06c946df5efec991517">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix(const size_type vertices, const allocator_type &allocator=allocator_type{})</div><div class="ttdoc">Constructs an empty container with a given allocator and user supplied number of vertices.</div><div class="ttdef"><b>Definition</b> <a href="#l00135">adjacency_matrix.hpp:135</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a88b3a1f0df93f9785b51ece42cb71852"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a88b3a1f0df93f9785b51ece42cb71852">entt::adjacency_matrix::out_edge_iterator</a></div><div class="ttdeci">edge_iterator out_edge_iterator</div><div class="ttdoc">Out-edge iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00111">adjacency_matrix.hpp:111</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_a9213407b3d7b543348000a44357ccca1"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#a9213407b3d7b543348000a44357ccca1">entt::adjacency_matrix::in_edges</a></div><div class="ttdeci">iterable_adaptor< in_edge_iterator > in_edges(const vertex_type vertex) const noexcept</div><div class="ttdoc">Returns an iterable object to visit all in-edges of a vertex.</div><div class="ttdef"><b>Definition</b> <a href="#l00258">adjacency_matrix.hpp:258</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_aa2ac50f08d437489d4f761b418c48eda"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#aa2ac50f08d437489d4f761b418c48eda">entt::adjacency_matrix::edge_type</a></div><div class="ttdeci">std::pair< vertex_type, vertex_type > edge_type</div><div class="ttdoc">Edge type.</div><div class="ttdef"><b>Definition</b> <a href="#l00105">adjacency_matrix.hpp:105</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_aabdea98cbe302052e65e1a5328b49106"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#aabdea98cbe302052e65e1a5328b49106">entt::adjacency_matrix::~adjacency_matrix</a></div><div class="ttdeci">~adjacency_matrix()=default</div><div class="ttdoc">Default destructor.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_aac3dbc29bb2a31de879b62742124ddd4"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#aac3dbc29bb2a31de879b62742124ddd4">entt::adjacency_matrix::vertices</a></div><div class="ttdeci">iterable_adaptor< vertex_iterator > vertices() const noexcept</div><div class="ttdoc">Returns an iterable object to visit all vertices of a matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00227">adjacency_matrix.hpp:227</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ab26e50bcbe59bf835f6a34a21a622095"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ab26e50bcbe59bf835f6a34a21a622095">entt::adjacency_matrix::operator=</a></div><div class="ttdeci">adjacency_matrix & operator=(const adjacency_matrix &)=default</div><div class="ttdoc">Default copy assignment operator.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ab6638e821360bafa2d7ce2e12ef0825a"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ab6638e821360bafa2d7ce2e12ef0825a">entt::adjacency_matrix::edges</a></div><div class="ttdeci">iterable_adaptor< edge_iterator > edges() const noexcept</div><div class="ttdoc">Returns an iterable object to visit all edges of a matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00235">adjacency_matrix.hpp:235</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ad1eb3bad19846f57d9a6a44bed6f360d"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ad1eb3bad19846f57d9a6a44bed6f360d">entt::adjacency_matrix::in_edge_iterator</a></div><div class="ttdeci">edge_iterator in_edge_iterator</div><div class="ttdoc">In-edge iterator type.</div><div class="ttdef"><b>Definition</b> <a href="#l00113">adjacency_matrix.hpp:113</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ad45c4c6b938ed028d7c99b1d1a678b9e"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ad45c4c6b938ed028d7c99b1d1a678b9e">entt::adjacency_matrix::resize</a></div><div class="ttdeci">void resize(const size_type vertices)</div><div class="ttdoc">Resizes an adjacency matrix.</div><div class="ttdef"><b>Definition</b> <a href="#l00269">adjacency_matrix.hpp:269</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ad59306803ff05b7d2d3244f7e59ef9d9"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ad59306803ff05b7d2d3244f7e59ef9d9">entt::adjacency_matrix::vertex_type</a></div><div class="ttdeci">size_type vertex_type</div><div class="ttdoc">Vertex type.</div><div class="ttdef"><b>Definition</b> <a href="#l00103">adjacency_matrix.hpp:103</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_adaa9b708b88f549673e7a9db7203b96c"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#adaa9b708b88f549673e7a9db7203b96c">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix(const adjacency_matrix &other, const allocator_type &allocator)</div><div class="ttdoc">Allocator-extended copy constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00147">adjacency_matrix.hpp:147</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_adcbf612110d41734771cf1c5a6d999e3"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#adcbf612110d41734771cf1c5a6d999e3">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix(adjacency_matrix &&) noexcept=default</div><div class="ttdoc">Default move constructor.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_adf91bac04f07bf7ce0478ecd5baeece7"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#adf91bac04f07bf7ce0478ecd5baeece7">entt::adjacency_matrix::erase</a></div><div class="ttdeci">size_type erase(const vertex_type lhs, const vertex_type rhs)</div><div class="ttdoc">Removes the edge associated with a pair of given vertices.</div><div class="ttdef"><b>Definition</b> <a href="#l00306">adjacency_matrix.hpp:306</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_ae6940bc105cd3cd328a6abc3f19c14dc"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#ae6940bc105cd3cd328a6abc3f19c14dc">entt::adjacency_matrix::adjacency_matrix</a></div><div class="ttdeci">adjacency_matrix(const allocator_type &allocator) noexcept</div><div class="ttdoc">Constructs an empty container with a given allocator.</div><div class="ttdef"><b>Definition</b> <a href="#l00126">adjacency_matrix.hpp:126</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1adjacency__matrix_html_aea59b70885fd22df3f80f59cf6e9e58b"><div class="ttname"><a href="classentt_1_1adjacency__matrix.html#aea59b70885fd22df3f80f59cf6e9e58b">entt::adjacency_matrix::get_allocator</a></div><div class="ttdeci">constexpr allocator_type get_allocator() const noexcept</div><div class="ttdoc">Returns the associated allocator.</div><div class="ttdef"><b>Definition</b> <a href="#l00182">adjacency_matrix.hpp:182</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1iota__iterator_html"><div class="ttname"><a href="classentt_1_1iota__iterator.html">entt::iota_iterator</a></div><div class="ttdoc">Plain iota iterator (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="iterator_8hpp_source.html#l00056">iterator.hpp:56</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_a12e4d0c58f9c4cc6f5513c39c530b9b7"><div class="ttname"><a href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">entt::make_obj_using_allocator</a></div><div class="ttdeci">constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...args)</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="memory_8hpp_source.html#l00219">memory.hpp:219</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_ad9accc71a383509ada028f7fa2b767bf"><div class="ttname"><a href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00232">hashed_string.hpp:232</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_af7c61951b721a1e3612cf536bd707501"><div class="ttname"><a href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">entt::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00220">hashed_string.hpp:220</a></div></div>
|
|
<div class="ttc" id="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><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
|
|
</small></address>
|
|
</body>
|
|
</html>
|