-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_range_8h_source.html
161 lines (161 loc) · 127 KB
/
_range_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): Range.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Gamedev Framework (gf)
 <span id="projectnumber">0.15.0</span>
</div>
<div id="projectbrief">A C++14 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6d069d519ae9d12fa11dd8e685586b60.html">gf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Range.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Gamedev Framework (gf)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2016-2019 Julien Bernard</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef GF_RANGE_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define GF_RANGE_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <cstddef></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <iterator></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "Math.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "Vector.h"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html"> 43</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_range.html">Range</a> {</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b"> 44</a></span>  <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> <a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>; </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f"> 45</a></span>  <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> <a class="code" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">hi</a>; </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html"> 51</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> {</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a6b79e696d800d2e4179873492297f7ec"> 52</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a6b79e696d800d2e4179873492297f7ec">difference_type</a> = std::ptrdiff_t;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#aaba7cdb589e3d9cc1c5641bb317aab8b"> 53</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#aaba7cdb589e3d9cc1c5641bb317aab8b">value_type</a> = <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a0b5e7c11151634f4fb2cac8c2b3df675"> 54</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a0b5e7c11151634f4fb2cac8c2b3df675">pointer</a> = <a class="code" href="structgf_1_1_range_1_1_iterator.html#aaba7cdb589e3d9cc1c5641bb317aab8b">value_type</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a75a253dacf3b3e231ef64226dfde306d"> 55</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a75a253dacf3b3e231ef64226dfde306d">reference</a> = <a class="code" href="structgf_1_1_range_1_1_iterator.html#aaba7cdb589e3d9cc1c5641bb317aab8b">value_type</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a14600b6d9a952f505d84701ba3bf9c74"> 56</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a14600b6d9a952f505d84701ba3bf9c74">iterator_category</a> = std::bidirectional_iterator_tag;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#ae98e48c0875896a57fa70ccbecb745d5"> 58</a></span>  <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> <a class="code" href="structgf_1_1_range_1_1_iterator.html#ae98e48c0875896a57fa70ccbecb745d5">index</a>; </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#ad824744be4b7092f99835b014e21d386"> 65</a></span>  constexpr <a class="code" href="structgf_1_1_range_1_1_iterator.html#ad824744be4b7092f99835b014e21d386">Iterator</a>(<a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> iteratorIndex) noexcept</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  : index(iteratorIndex)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a1eb68e349882574ef6b8664fb3f1667b"> 73</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a1eb68e349882574ef6b8664fb3f1667b">swap</a>(<a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>& other) noexcept {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">using</span> std::swap;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  swap(index, other.index);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#aa002d51563b6d70d2b48eca7e90a0114"> 83</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html#a75a253dacf3b3e231ef64226dfde306d">reference</a> <a class="code" href="structgf_1_1_range_1_1_iterator.html#aa002d51563b6d70d2b48eca7e90a0114">operator*</a>() noexcept {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> index;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a326dee79399fd04a6c7d3ad1adb3e320"> 92</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html#a0b5e7c11151634f4fb2cac8c2b3df675">pointer</a> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a326dee79399fd04a6c7d3ad1adb3e320">operator-></a>() noexcept {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> index;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a4459872c42b659b657424c78f8a8060a"> 101</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>& <a class="code" href="structgf_1_1_range_1_1_iterator.html#a4459872c42b659b657424c78f8a8060a">operator++</a>() noexcept {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  ++index;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a2dbe9e513e93fd66434a97e30e8597ad"> 111</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a2dbe9e513e93fd66434a97e30e8597ad">operator++</a>(<span class="keywordtype">int</span>) noexcept {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  ++index;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a8372e0116459a40b0f595b15741e37ac"> 122</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>& <a class="code" href="structgf_1_1_range_1_1_iterator.html#a8372e0116459a40b0f595b15741e37ac">operator--</a>() noexcept {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  --index;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a0d6ef8f146bae9ff8c6407cc9982ecf8"> 132</a></span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a0d6ef8f146bae9ff8c6407cc9982ecf8">operator--</a>(<span class="keywordtype">int</span>) noexcept {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  --index;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a1345f319c72a92fdad696b4f18b06c8f"> 144</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a1345f319c72a92fdad696b4f18b06c8f">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> index != other.index;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a03da95dcf864fa945c30a494933dc1e1"> 154</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a03da95dcf864fa945c30a494933dc1e1">operator==</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">return</span> index == other.index;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#a4fd86736bca7b0e08d9c2a903728eddf"> 165</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_range.html#a4fd86736bca7b0e08d9c2a903728eddf">contains</a>(<a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> value) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> lo <= value && value < hi;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#aad0071043af7d74ec32722ba09e736f5"> 175</a></span>  constexpr <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_range.html#aad0071043af7d74ec32722ba09e736f5">begin</a>() const noexcept {</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>(lo);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#a7449f0a2cb37e507d9ba3dd3158b6c91"> 185</a></span>  constexpr <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_range.html#a7449f0a2cb37e507d9ba3dd3158b6c91">end</a>() const noexcept {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Iterator</a>(hi);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#ad878f909f1ccd2ea561a36c7836da50a"> 194</a></span>  constexpr <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> <a class="code" href="structgf_1_1_range.html#ad878f909f1ccd2ea561a36c7836da50a">length</a>() const noexcept {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> hi - lo;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#a9a9844ea321bec5dc8dd7aab7de4ad62"> 204</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_range.html#a9a9844ea321bec5dc8dd7aab7de4ad62">isEmpty</a>() const noexcept {</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">return</span> lo >= hi;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  }</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="structgf_1_1_range.html#ad7a1d88f30b7d09c3232eef71deff937"> 214</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_range.html#ad7a1d88f30b7d09c3232eef71deff937">isValid</a>() const noexcept {</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> lo <= hi;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  };</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keyword">inline</span></div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="structgf_1_1_range_1_1_iterator.html#a652bad5f79ea9805dc542b77f61efb8c"> 225</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html#a652bad5f79ea9805dc542b77f61efb8c">swap</a>(<span class="keyword">typename</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Range<T>::Iterator</a>& lhs, <span class="keyword">typename</span> <a class="code" href="structgf_1_1_range_1_1_iterator.html">Range<T>::Iterator</a>& rhs) noexcept {</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  lhs.swap(rhs);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  }</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="group__core.html#ga875aab9d7de883344d72355cc09597e6"> 235</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range.html">RangeF</a> = <a class="code" href="structgf_1_1_range.html">Range<float></a>;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="group__core.html#ga1f20513549e674effeb96f859ac37af5"> 243</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range.html">RangeI</a> = <a class="code" href="structgf_1_1_range.html">Range<int></a>;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="group__core.html#gad3135fe5249a7908bfe5aa6efa78ecb2"> 251</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range.html">RangeU</a> = <a class="code" href="structgf_1_1_range.html">Range<unsigned></a>;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div><div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="group__core.html#gadd2465942ddf9cb7ae83b00797c00672"> 259</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_range.html">RangeZ</a> = <a class="code" href="structgf_1_1_range.html">Range<std::size_t></a>;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment">// MSVC does not like extern template</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor">#ifndef _MSC_VER</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">extern</span> <span class="keyword">template</span> <span class="keyword">struct </span><a class="code" href="structgf_1_1_range.html">Range<float></a>;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">extern</span> <span class="keyword">template</span> <span class="keyword">struct </span><a class="code" href="structgf_1_1_range.html">Range<int></a>;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keyword">extern</span> <span class="keyword">template</span> <span class="keyword">struct </span><a class="code" href="structgf_1_1_range.html">Range<unsigned></a>;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range.html"> 277</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_position_range.html">PositionRange</a> {</div><div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range.html#a8f1a33cd2ff09c2903711d31b5e57d0f"> 278</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_position_range.html#a8f1a33cd2ff09c2903711d31b5e57d0f">first</a>; </div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range.html#ada05b8225f84d52a2c466c86596c4299"> 279</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_position_range.html#ada05b8225f84d52a2c466c86596c4299">second</a>; </div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html"> 284</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a> {</div><div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a14e789cfe3297750cd428f6d684eda0b"> 285</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a14e789cfe3297750cd428f6d684eda0b">difference_type</a> = std::ptrdiff_t;</div><div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a4a588a045422c7e76d74fca8226c0376"> 286</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a>;</div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#aaf4a7eda63d2812ee7a916a4709911d8"> 287</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a4542e61b07cfe50eb867fc550a1ccdb6"> 288</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a4484d8dd54e33b98e0ddbfaff8fd246e"> 289</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a4484d8dd54e33b98e0ddbfaff8fd246e">iterator_category</a> = std::forward_iterator_tag;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a02428499f514482652b721c30624ab6e"> 291</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a02428499f514482652b721c30624ab6e">range</a>;</div><div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#ade8f4b3a5943c697415e34dc1d62128a"> 292</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#ade8f4b3a5943c697415e34dc1d62128a">position</a>;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#abfd61c0c1573b99ea1d2c3ae162e24d6"> 300</a></span>  constexpr <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#abfd61c0c1573b99ea1d2c3ae162e24d6">Iterator</a>(<a class="code" href="structgf_1_1_range.html">Range<T></a> iteratorRange, <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> iteratorPosition) noexcept</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  : range(iteratorRange)</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  , position(iteratorPosition)</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  {</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#aa9121050e6b78ead3cffad242dd271ef"> 309</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#aa9121050e6b78ead3cffad242dd271ef">swap</a>(<a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>& other) noexcept {</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">using</span> std::swap;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  swap(range, other.range);</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  swap(position, other.position);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  }</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#aa1f74e99a7d1e451a5796dccab21dfae"> 320</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#aa1f74e99a7d1e451a5796dccab21dfae">operator*</a>() noexcept {</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  }</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a9aa82aeabdd7bded817efcd56c073426"> 329</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a9aa82aeabdd7bded817efcd56c073426">operator-></a>() noexcept {</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  }</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a10882f60980538379603f06fc75d4d98"> 338</a></span>  <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>& <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a10882f60980538379603f06fc75d4d98">operator++</a>() noexcept {</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  step();</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#a7e8a2afe39b8c52ee994e0806ea1896e"> 348</a></span>  <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#a7e8a2afe39b8c52ee994e0806ea1896e">operator++</a>(<span class="keywordtype">int</span>) noexcept {</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  step();</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  }</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#af87ec29095b8a2e61b3d1966854e2db7"> 360</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#af87ec29095b8a2e61b3d1966854e2db7">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> != other.position.x || position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> != other.position.y;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  }</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#ae4e9edd2f9310915363dcc3827d38e2d"> 370</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#ae4e9edd2f9310915363dcc3827d38e2d">operator==</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> == other.position.x && position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> == other.position.y;</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  }</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordtype">void</span> step() noexcept {</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a>;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keywordflow">if</span> (position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> >= range.<a class="code" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">hi</a>) {</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> = range.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>;</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a>;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  }</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  }</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  };</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range.html#a9a91dbb22e19e9ac52bece42cb2cfad9"> 391</a></span>  constexpr <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_position_range.html#a9a91dbb22e19e9ac52bece42cb2cfad9">begin</a>() const noexcept {</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>(first, { first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a> });</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  }</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div><div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range.html#a5b8fbf11f3590586f4be9d5961e30c8b"> 401</a></span>  constexpr <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_position_range.html#a5b8fbf11f3590586f4be9d5961e30c8b">end</a>() const noexcept {</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">Iterator</a>(first, { first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">hi</a> });</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  }</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  };</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keyword">inline</span></div><div class="line"><a name="l00412"></a><span class="lineno"><a class="line" href="structgf_1_1_position_range_1_1_iterator.html#aa35f0d96fbaa9ed6b74f1051abe7a6ae"> 412</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html#aa35f0d96fbaa9ed6b74f1051abe7a6ae">swap</a>(<span class="keyword">typename</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">PositionRange<T>::Iterator</a>& lhs, <span class="keyword">typename</span> <a class="code" href="structgf_1_1_position_range_1_1_iterator.html">PositionRange<T>::Iterator</a>& rhs) noexcept {</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  lhs.swap(rhs);</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  }</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span> </div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html"> 424</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_neighbor_square_range.html">NeighborSquareRange</a> {</div><div class="line"><a name="l00425"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html#a1e430b51e2062033652d55c6c202657b"> 425</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_neighbor_square_range.html#a1e430b51e2062033652d55c6c202657b">first</a>; </div><div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html#a0c3676037be548719c4f0784cf3d9a83"> 426</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_neighbor_square_range.html#a0c3676037be548719c4f0784cf3d9a83">second</a>; </div><div class="line"><a name="l00427"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html#a77b19e1327ea06bf4160cf9f82ccbe8c"> 427</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> <a class="code" href="structgf_1_1_neighbor_square_range.html#a77b19e1327ea06bf4160cf9f82ccbe8c">origin</a>;</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> </div><div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html"> 432</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a> {</div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a167ff71128033d3a732fc65c03592f0a"> 433</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a167ff71128033d3a732fc65c03592f0a">difference_type</a> = std::ptrdiff_t;</div><div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a5ba3331dc2436eaaf8491b1aa7c345cf"> 434</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a>;</div><div class="line"><a name="l00435"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#aee4d02f7aaaf18bc33d6fa8b294b14fb"> 435</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a72d9302a4e17a7276142e375d1653cf1"> 436</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00437"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a161fc1b9f37aff1422dfedda070f78c8"> 437</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a161fc1b9f37aff1422dfedda070f78c8">iterator_category</a> = std::forward_iterator_tag;</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a05b0bc2997dffaa94a436c7d37528b2e"> 439</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a05b0bc2997dffaa94a436c7d37528b2e">position</a>;</div><div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a57d3bb15becfbd8612fef5e4042c5c90"> 440</a></span>  <span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_square_range.html">NeighborSquareRange<T></a> *<a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a57d3bb15becfbd8612fef5e4042c5c90">parent</a>;</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div><div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#adc7abdfd03f4252e7d4f9879f887723d"> 448</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#adc7abdfd03f4252e7d4f9879f887723d">Iterator</a>(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> iteratorPosition, <span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_square_range.html">NeighborSquareRange<T></a> *iteratorParent) noexcept</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  : position(iteratorPosition)</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  , parent(iteratorParent)</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  {</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordflow">if</span> (isNotNeighbor(position)) {</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  step();</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  }</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  }</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div><div class="line"><a name="l00462"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a799143906aeac4d3326f175519024652"> 462</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a799143906aeac4d3326f175519024652">Iterator</a>(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> iteratorPosition) noexcept</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  : position(iteratorPosition)</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  , parent(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  {</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  }</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span> </div><div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a32f10baeb6601c8fa28d8a3e5576db46"> 471</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a32f10baeb6601c8fa28d8a3e5576db46">swap</a>(<a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>& other) noexcept {</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keyword">using</span> std::swap;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  swap(position, other.position);</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  swap(parent, other.parent);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  }</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div><div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#accd286d0d5cff5203d12b41cfc6e80be"> 482</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#accd286d0d5cff5203d12b41cfc6e80be">operator*</a>() noexcept {</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  }</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#aff59bcd92a4b4fa5f3a2c879785aae58"> 491</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#aff59bcd92a4b4fa5f3a2c879785aae58">operator-></a>() noexcept {</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  }</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div><div class="line"><a name="l00500"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a51e745a103a99dde260a49d730a94dea"> 500</a></span>  <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>& <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a51e745a103a99dde260a49d730a94dea">operator++</a>() noexcept {</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  step();</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  }</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span> </div><div class="line"><a name="l00510"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#af95e40ca27e9295d0ab7fcb17c6f591a"> 510</a></span>  <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#af95e40ca27e9295d0ab7fcb17c6f591a">operator++</a>(<span class="keywordtype">int</span>) noexcept {</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  step();</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  }</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> </div><div class="line"><a name="l00522"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a6e00c4aaf4e14659410e947c32bcadbb"> 522</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a6e00c4aaf4e14659410e947c32bcadbb">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> != other.position.x || position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> != other.position.y;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  }</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span> </div><div class="line"><a name="l00532"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a67aed057037b18cb0af9822df470bbc9"> 532</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a67aed057037b18cb0af9822df470bbc9">operator==</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> == other.position.x && position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> == other.position.y;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  }</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keywordtype">void</span> step() noexcept {</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordflow">do</span> {</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a>;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span> </div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">if</span> (position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> >= parent-><a class="code" href="structgf_1_1_neighbor_square_range.html#a1e430b51e2062033652d55c6c202657b">first</a>.hi) {</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> = parent-><a class="code" href="structgf_1_1_neighbor_square_range.html#a1e430b51e2062033652d55c6c202657b">first</a>.lo;</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a>;</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  }</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  } <span class="keywordflow">while</span> (isNotNeighbor(position));</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  }</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordtype">bool</span> isNotNeighbor(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keywordflow">return</span> other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> == parent-><a class="code" href="structgf_1_1_neighbor_square_range.html#a77b19e1327ea06bf4160cf9f82ccbe8c">origin</a>.x && other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> == parent-><a class="code" href="structgf_1_1_neighbor_square_range.html#a77b19e1327ea06bf4160cf9f82ccbe8c">origin</a>.y;</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  }</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  };</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> </div><div class="line"><a name="l00559"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html#a8fa50c4eb86183789ffbafce8d50f9b1"> 559</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_square_range.html#a8fa50c4eb86183789ffbafce8d50f9b1">begin</a>() const noexcept {</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>({ first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a> }, <span class="keyword">this</span>);</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  }</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div><div class="line"><a name="l00569"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range.html#ab6f52ce33cf7b84a7bf94512b2aaf5e3"> 569</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_square_range.html#ab6f52ce33cf7b84a7bf94512b2aaf5e3">end</a>() const noexcept {</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">Iterator</a>({ first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">hi</a> });</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  }</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  };</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span> </div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keyword">inline</span></div><div class="line"><a name="l00580"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a07ab4c7826df3fbe754ffa3501b37478"> 580</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a07ab4c7826df3fbe754ffa3501b37478">swap</a>(<span class="keyword">typename</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">NeighborSquareRange<T>::Iterator</a>& lhs, <span class="keyword">typename</span> <a class="code" href="structgf_1_1_neighbor_square_range_1_1_iterator.html">NeighborSquareRange<T>::Iterator</a>& rhs) noexcept {</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  lhs.swap(rhs);</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  }</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span> </div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span> </div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html"> 592</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_neighbor_diamond_range.html">NeighborDiamondRange</a> {</div><div class="line"><a name="l00593"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#a646750c7d27ca07598fd22e1a345590a"> 593</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#a646750c7d27ca07598fd22e1a345590a">first</a>; </div><div class="line"><a name="l00594"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#a28f9f6b0cc636a9129426ccdbd919ae8"> 594</a></span>  <a class="code" href="structgf_1_1_range.html">Range<T></a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#a28f9f6b0cc636a9129426ccdbd919ae8">second</a>; </div><div class="line"><a name="l00595"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722"> 595</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">origin</a>;</div><div class="line"><a name="l00596"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#af060d4f776e5668d4637bbc7fb2f3671"> 596</a></span>  <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#af060d4f776e5668d4637bbc7fb2f3671">radius</a>;</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> </div><div class="line"><a name="l00601"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html"> 601</a></span>  <span class="keyword">struct </span><a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a> {</div><div class="line"><a name="l00602"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a5fb0a02baf0a9663cf4cd5ad2326da20"> 602</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a5fb0a02baf0a9663cf4cd5ad2326da20">difference_type</a> = std::ptrdiff_t;</div><div class="line"><a name="l00603"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ac735be132e79f4ac1cdd79322ddca099"> 603</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a>;</div><div class="line"><a name="l00604"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a0576e2fa9d875831c38044c61de59634"> 604</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00605"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a3637b1013ba69d754e0a7122dba4a44f"> 605</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> = <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">value_type</a>;</div><div class="line"><a name="l00606"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a9ce541ca664474a79bba665a498a410a"> 606</a></span>  <span class="keyword">using</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a9ce541ca664474a79bba665a498a410a">iterator_category</a> = std::forward_iterator_tag;</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span> </div><div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a061cc1e808bd562eca006cda171a4d76"> 608</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a061cc1e808bd562eca006cda171a4d76">position</a>;</div><div class="line"><a name="l00609"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a4893f252db9af131873b10db3cd0a107"> 609</a></span>  <span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_diamond_range.html">NeighborDiamondRange<T></a> *<a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a4893f252db9af131873b10db3cd0a107">parent</a>;</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> </div><div class="line"><a name="l00617"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ad8d0147f1b8e18c1e49bd142dbd20bba"> 617</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ad8d0147f1b8e18c1e49bd142dbd20bba">Iterator</a>(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> iteratorPosition, <span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_diamond_range.html">NeighborDiamondRange<T></a> *iteratorParent) noexcept</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  : position(iteratorPosition)</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  , parent(iteratorParent)</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  {</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="keywordflow">if</span> (isNotNeighbor(position)) {</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  step();</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  }</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  }</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> </div><div class="line"><a name="l00631"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ae6ab9d94dfba1758324846539ad246a0"> 631</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ae6ab9d94dfba1758324846539ad246a0">Iterator</a>(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> iteratorPosition) noexcept</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  : position(iteratorPosition)</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  , parent(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  {</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  }</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span> </div><div class="line"><a name="l00640"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a190cf40d0271385e189b0b5a6088e3ad"> 640</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a190cf40d0271385e189b0b5a6088e3ad">swap</a>(<a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>& other) noexcept {</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="keyword">using</span> std::swap;</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  swap(position, other.position);</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  swap(parent, other.parent);</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  }</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div><div class="line"><a name="l00651"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a7ad49c05fab33a9feee2ecae7aac7aa2"> 651</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">reference</a> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a7ad49c05fab33a9feee2ecae7aac7aa2">operator*</a>() noexcept {</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  }</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div><div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a87f2f070f7df330d86f9be20546fa094"> 660</a></span>  <a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">pointer</a> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a87f2f070f7df330d86f9be20546fa094">operator-></a>() noexcept {</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keywordflow">return</span> position;</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  }</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span> </div><div class="line"><a name="l00669"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abbab31c6dbdb9139a15a031b04b8f914"> 669</a></span>  <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>& <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abbab31c6dbdb9139a15a031b04b8f914">operator++</a>() noexcept {</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  step();</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  }</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span> </div><div class="line"><a name="l00679"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abb6944e61c759214df4e81e677a8acb5"> 679</a></span>  <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abb6944e61c759214df4e81e677a8acb5">operator++</a>(<span class="keywordtype">int</span>) noexcept {</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a> copy = *<span class="keyword">this</span>;</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  step();</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  }</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span> </div><div class="line"><a name="l00691"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a0214e3d7fd418f0527a6faa1b5099e26"> 691</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a0214e3d7fd418f0527a6faa1b5099e26">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> != other.position.x || position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> != other.position.y;</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  }</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> </div><div class="line"><a name="l00701"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a1d32317e7e039cf5da34cbc5d8082fb7"> 701</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a1d32317e7e039cf5da34cbc5d8082fb7">operator==</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>& other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keywordflow">return</span> position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> == other.position.x && position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> == other.position.y;</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  }</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span> </div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  <span class="keywordtype">void</span> step() noexcept {</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  <span class="keywordflow">do</span> {</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a>;</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span> </div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  <span class="keywordflow">if</span> (position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> >= parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#a646750c7d27ca07598fd22e1a345590a">first</a>.hi) {</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> = parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#a646750c7d27ca07598fd22e1a345590a">first</a>.lo;</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  ++position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a>;</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span> </div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  <span class="keywordflow">if</span> (position.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> >= parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#a28f9f6b0cc636a9129426ccdbd919ae8">second</a>.hi) {</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  }</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  }</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  } <span class="keywordflow">while</span> (isNotNeighbor(position));</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  }</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span> </div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <span class="keywordtype">bool</span> isNotNeighbor(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keywordflow">return</span> isOrigin(other) || isOutOfDiamond(position);</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  }</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span> </div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  <span class="keywordtype">bool</span> isOrigin(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <span class="keywordflow">return</span> other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a> == parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">origin</a>.x && other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a> == parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">origin</a>.y;</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  }</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span> </div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  <span class="keywordtype">bool</span> isOutOfDiamond(<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html">Vector<T, 2></a> other) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  <span class="keywordflow">return</span> <a class="code" href="group__core.html#ga162af6026bb8a59762e87c918f634006">gf::absdiff</a>(other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">x</a>, parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">origin</a>.x) + <a class="code" href="group__core.html#ga162af6026bb8a59762e87c918f634006">gf::absdiff</a>(other.<a class="code" href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">y</a>, parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">origin</a>.y) > parent-><a class="code" href="structgf_1_1_neighbor_diamond_range.html#af060d4f776e5668d4637bbc7fb2f3671">radius</a>;</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  }</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  };</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span> </div><div class="line"><a name="l00740"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#af44c0fff2e5bde5064758ac75e0bc55c"> 740</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#af44c0fff2e5bde5064758ac75e0bc55c">begin</a>() const noexcept {</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>({ first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a> }, <span class="keyword">this</span>);</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  }</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span> </div><div class="line"><a name="l00750"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range.html#a6801ed7e83ed056184106071a8ae8fe6"> 750</a></span>  constexpr <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a> <a class="code" href="structgf_1_1_neighbor_diamond_range.html#a6801ed7e83ed056184106071a8ae8fe6">end</a>() const noexcept {</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <span class="keywordflow">return</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">Iterator</a>({ first.<a class="code" href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">lo</a>, second.<a class="code" href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">hi</a> });</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  }</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  };</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span> </div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <span class="keyword">inline</span></div><div class="line"><a name="l00761"></a><span class="lineno"><a class="line" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a947438e045523d760c464e0b70c0971d"> 761</a></span>  <span class="keywordtype">void</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a947438e045523d760c464e0b70c0971d">swap</a>(<span class="keyword">typename</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">NeighborDiamondRange<T>::Iterator</a>& lhs, <span class="keyword">typename</span> <a class="code" href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">NeighborDiamondRange<T>::Iterator</a>& rhs) noexcept {</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  lhs.swap(rhs);</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  }</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span> </div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span> </div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span> }</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span> }</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span> </div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span> <span class="preprocessor">#endif // GF_RANGE_H</span></div><div class="ttc" id="structgf_1_1_neighbor_square_range_html_a0c3676037be548719c4f0784cf3d9a83"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html#a0c3676037be548719c4f0784cf3d9a83">gf::NeighborSquareRange::second</a></div><div class="ttdeci">Range< T > second</div><div class="ttdoc">The range in the second dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:426</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a061cc1e808bd562eca006cda171a4d76"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a061cc1e808bd562eca006cda171a4d76">gf::NeighborDiamondRange::Iterator::position</a></div><div class="ttdeci">Vector< T, 2 > position</div><div class="ttdef"><b>Definition:</b> Range.h:608</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_a646750c7d27ca07598fd22e1a345590a"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#a646750c7d27ca07598fd22e1a345590a">gf::NeighborDiamondRange::first</a></div><div class="ttdeci">Range< T > first</div><div class="ttdoc">The range in the first dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:593</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html">gf::NeighborDiamondRange::Iterator</a></div><div class="ttdoc">An iterator for a 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:601</div></div>
<div class="ttc" id="structgf_1_1_vector_3_01_t_00_012_01_4_html_af7d887e66080275b723e2b4bf0c13471"><div class="ttname"><a href="structgf_1_1_vector_3_01_t_00_012_01_4.html#af7d887e66080275b723e2b4bf0c13471">gf::Vector< T, 2 >::x</a></div><div class="ttdeci">T x</div><div class="ttdoc">First coordinate in the (x,y) representation. </div><div class="ttdef"><b>Definition:</b> Vector.h:507</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html">gf::Range::Iterator</a></div><div class="ttdoc">A range iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:51</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a9ce541ca664474a79bba665a498a410a"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a9ce541ca664474a79bba665a498a410a">gf::NeighborDiamondRange::Iterator::iterator_category</a></div><div class="ttdeci">std::forward_iterator_tag iterator_category</div><div class="ttdef"><b>Definition:</b> Range.h:606</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_ae4e9edd2f9310915363dcc3827d38e2d"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#ae4e9edd2f9310915363dcc3827d38e2d">gf::PositionRange::Iterator::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Iterator &other) const noexcept</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:370</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a87f2f070f7df330d86f9be20546fa094"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a87f2f070f7df330d86f9be20546fa094">gf::NeighborDiamondRange::Iterator::operator-></a></div><div class="ttdeci">pointer operator->() noexcept</div><div class="ttdoc">Pointer operator. </div><div class="ttdef"><b>Definition:</b> Range.h:660</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a161fc1b9f37aff1422dfedda070f78c8"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a161fc1b9f37aff1422dfedda070f78c8">gf::NeighborSquareRange::Iterator::iterator_category</a></div><div class="ttdeci">std::forward_iterator_tag iterator_category</div><div class="ttdef"><b>Definition:</b> Range.h:437</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a14e789cfe3297750cd428f6d684eda0b"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a14e789cfe3297750cd428f6d684eda0b">gf::PositionRange::Iterator::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdef"><b>Definition:</b> Range.h:285</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a1eb68e349882574ef6b8664fb3f1667b"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a1eb68e349882574ef6b8664fb3f1667b">gf::Range::Iterator::swap</a></div><div class="ttdeci">void swap(Iterator &other) noexcept</div><div class="ttdoc">Swap the iterator with another iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:73</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_ad824744be4b7092f99835b014e21d386"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#ad824744be4b7092f99835b014e21d386">gf::Range::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(T iteratorIndex) noexcept</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Range.h:65</div></div>
<div class="ttc" id="structgf_1_1_range_html"><div class="ttname"><a href="structgf_1_1_range.html">gf::Range</a></div><div class="ttdoc">A half-open range of values. </div><div class="ttdef"><b>Definition:</b> Range.h:43</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a6e00c4aaf4e14659410e947c32bcadbb"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a6e00c4aaf4e14659410e947c32bcadbb">gf::NeighborSquareRange::Iterator::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Iterator &other) const noexcept</div><div class="ttdoc">Inequality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:522</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_abbab31c6dbdb9139a15a031b04b8f914"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abbab31c6dbdb9139a15a031b04b8f914">gf::NeighborDiamondRange::Iterator::operator++</a></div><div class="ttdeci">Iterator & operator++() noexcept</div><div class="ttdoc">Increment operator (prefix) </div><div class="ttdef"><b>Definition:</b> Range.h:669</div></div>
<div class="ttc" id="group__window_html_gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3"><div class="ttname"><a href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">gf::Scancode::T</a></div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_a28f9f6b0cc636a9129426ccdbd919ae8"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#a28f9f6b0cc636a9129426ccdbd919ae8">gf::NeighborDiamondRange::second</a></div><div class="ttdeci">Range< T > second</div><div class="ttdoc">The range in the second dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:594</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a1345f319c72a92fdad696b4f18b06c8f"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a1345f319c72a92fdad696b4f18b06c8f">gf::Range::Iterator::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Iterator &other) const noexcept</div><div class="ttdoc">Inequality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:144</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a9aa82aeabdd7bded817efcd56c073426"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a9aa82aeabdd7bded817efcd56c073426">gf::PositionRange::Iterator::operator-></a></div><div class="ttdeci">pointer operator->() noexcept</div><div class="ttdoc">Pointer operator. </div><div class="ttdef"><b>Definition:</b> Range.h:329</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_ab85bd44b9285116b52ac4e48ea2df722"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#ab85bd44b9285116b52ac4e48ea2df722">gf::NeighborDiamondRange::origin</a></div><div class="ttdeci">Vector< T, 2 > origin</div><div class="ttdef"><b>Definition:</b> Range.h:595</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a05b0bc2997dffaa94a436c7d37528b2e"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a05b0bc2997dffaa94a436c7d37528b2e">gf::NeighborSquareRange::Iterator::position</a></div><div class="ttdeci">Vector< T, 2 > position</div><div class="ttdef"><b>Definition:</b> Range.h:439</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a4893f252db9af131873b10db3cd0a107"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a4893f252db9af131873b10db3cd0a107">gf::NeighborDiamondRange::Iterator::parent</a></div><div class="ttdeci">const NeighborDiamondRange< T > * parent</div><div class="ttdef"><b>Definition:</b> Range.h:609</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_ae6ab9d94dfba1758324846539ad246a0"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ae6ab9d94dfba1758324846539ad246a0">gf::NeighborDiamondRange::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(Vector< T, 2 > iteratorPosition) noexcept</div><div class="ttdoc">Constructor of a end sentinel. </div><div class="ttdef"><b>Definition:</b> Range.h:631</div></div>
<div class="ttc" id="structgf_1_1_position_range_html_a8f1a33cd2ff09c2903711d31b5e57d0f"><div class="ttname"><a href="structgf_1_1_position_range.html#a8f1a33cd2ff09c2903711d31b5e57d0f">gf::PositionRange::first</a></div><div class="ttdeci">Range< T > first</div><div class="ttdoc">The range in the first dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:278</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a10882f60980538379603f06fc75d4d98"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a10882f60980538379603f06fc75d4d98">gf::PositionRange::Iterator::operator++</a></div><div class="ttdeci">Iterator & operator++() noexcept</div><div class="ttdoc">Increment operator (prefix) </div><div class="ttdef"><b>Definition:</b> Range.h:338</div></div>
<div class="ttc" id="structgf_1_1_range_html_a9a9844ea321bec5dc8dd7aab7de4ad62"><div class="ttname"><a href="structgf_1_1_range.html#a9a9844ea321bec5dc8dd7aab7de4ad62">gf::Range::isEmpty</a></div><div class="ttdeci">constexpr bool isEmpty() const noexcept</div><div class="ttdoc">Check if the range is empty. </div><div class="ttdef"><b>Definition:</b> Range.h:204</div></div>
<div class="ttc" id="structgf_1_1_range_html_afcf0587de6aa377e6d87876c6a93eb7b"><div class="ttname"><a href="structgf_1_1_range.html#afcf0587de6aa377e6d87876c6a93eb7b">gf::Range::lo</a></div><div class="ttdeci">T lo</div><div class="ttdoc">The lower endpoint (included) </div><div class="ttdef"><b>Definition:</b> Range.h:44</div></div>
<div class="ttc" id="structgf_1_1_position_range_html_a5b8fbf11f3590586f4be9d5961e30c8b"><div class="ttname"><a href="structgf_1_1_position_range.html#a5b8fbf11f3590586f4be9d5961e30c8b">gf::PositionRange::end</a></div><div class="ttdeci">constexpr Iterator end() const noexcept</div><div class="ttdoc">Get a end iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:401</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_af44c0fff2e5bde5064758ac75e0bc55c"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#af44c0fff2e5bde5064758ac75e0bc55c">gf::NeighborDiamondRange::begin</a></div><div class="ttdeci">constexpr Iterator begin() const noexcept</div><div class="ttdoc">Get a begin iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:740</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a2dbe9e513e93fd66434a97e30e8597ad"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a2dbe9e513e93fd66434a97e30e8597ad">gf::Range::Iterator::operator++</a></div><div class="ttdeci">Iterator operator++(int) noexcept</div><div class="ttdoc">Increment operator (postfix) </div><div class="ttdef"><b>Definition:</b> Range.h:111</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_html"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html">gf::NeighborSquareRange</a></div><div class="ttdoc">A 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:424</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a03da95dcf864fa945c30a494933dc1e1"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a03da95dcf864fa945c30a494933dc1e1">gf::Range::Iterator::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Iterator &other) const noexcept</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:154</div></div>
<div class="ttc" id="structgf_1_1_range_html_a7449f0a2cb37e507d9ba3dd3158b6c91"><div class="ttname"><a href="structgf_1_1_range.html#a7449f0a2cb37e507d9ba3dd3158b6c91">gf::Range::end</a></div><div class="ttdeci">constexpr Iterator end() const noexcept</div><div class="ttdoc">Get a end iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:185</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_af87ec29095b8a2e61b3d1966854e2db7"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#af87ec29095b8a2e61b3d1966854e2db7">gf::PositionRange::Iterator::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Iterator &other) const noexcept</div><div class="ttdoc">Inequality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:360</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_aa9121050e6b78ead3cffad242dd271ef"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#aa9121050e6b78ead3cffad242dd271ef">gf::PositionRange::Iterator::swap</a></div><div class="ttdeci">void swap(Iterator &other) noexcept</div><div class="ttdoc">Swap the iterator with another iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:309</div></div>
<div class="ttc" id="group__core_html_ga162af6026bb8a59762e87c918f634006"><div class="ttname"><a href="group__core.html#ga162af6026bb8a59762e87c918f634006">gf::absdiff</a></div><div class="ttdeci">constexpr T absdiff(T lhs, T rhs)</div><div class="ttdoc">Absolute difference of two values. </div><div class="ttdef"><b>Definition:</b> Math.h:342</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a7e8a2afe39b8c52ee994e0806ea1896e"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a7e8a2afe39b8c52ee994e0806ea1896e">gf::PositionRange::Iterator::operator++</a></div><div class="ttdeci">Iterator operator++(int) noexcept</div><div class="ttdoc">Increment operator (postfix) </div><div class="ttdef"><b>Definition:</b> Range.h:348</div></div>
<div class="ttc" id="structgf_1_1_vector_3_01_t_00_012_01_4_html_acaa8c29e9f98b2a3b460c548cd7491cb"><div class="ttname"><a href="structgf_1_1_vector_3_01_t_00_012_01_4.html#acaa8c29e9f98b2a3b460c548cd7491cb">gf::Vector< T, 2 >::y</a></div><div class="ttdeci">T y</div><div class="ttdoc">Second coordinate in the (x,y) representation. </div><div class="ttdef"><b>Definition:</b> Vector.h:518</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_aa002d51563b6d70d2b48eca7e90a0114"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#aa002d51563b6d70d2b48eca7e90a0114">gf::Range::Iterator::operator*</a></div><div class="ttdeci">reference operator*() noexcept</div><div class="ttdoc">Dereference operator. </div><div class="ttdef"><b>Definition:</b> Range.h:83</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a799143906aeac4d3326f175519024652"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a799143906aeac4d3326f175519024652">gf::NeighborSquareRange::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(Vector< T, 2 > iteratorPosition) noexcept</div><div class="ttdoc">Constructor of a end sentinel. </div><div class="ttdef"><b>Definition:</b> Range.h:462</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_adc7abdfd03f4252e7d4f9879f887723d"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#adc7abdfd03f4252e7d4f9879f887723d">gf::NeighborSquareRange::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(Vector< T, 2 > iteratorPosition, const NeighborSquareRange< T > *iteratorParent) noexcept</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Range.h:448</div></div>
<div class="ttc" id="structgf_1_1_position_range_html_ada05b8225f84d52a2c466c86596c4299"><div class="ttname"><a href="structgf_1_1_position_range.html#ada05b8225f84d52a2c466c86596c4299">gf::PositionRange::second</a></div><div class="ttdeci">Range< T > second</div><div class="ttdoc">The range in the second dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:279</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a8372e0116459a40b0f595b15741e37ac"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a8372e0116459a40b0f595b15741e37ac">gf::Range::Iterator::operator--</a></div><div class="ttdeci">Iterator & operator--() noexcept</div><div class="ttdoc">Decrement operator (prefix) </div><div class="ttdef"><b>Definition:</b> Range.h:122</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_html_a8fa50c4eb86183789ffbafce8d50f9b1"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html#a8fa50c4eb86183789ffbafce8d50f9b1">gf::NeighborSquareRange::begin</a></div><div class="ttdeci">constexpr Iterator begin() const noexcept</div><div class="ttdoc">Get a begin iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:559</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_aa1f74e99a7d1e451a5796dccab21dfae"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#aa1f74e99a7d1e451a5796dccab21dfae">gf::PositionRange::Iterator::operator*</a></div><div class="ttdeci">reference operator*() noexcept</div><div class="ttdoc">Dereference operator. </div><div class="ttdef"><b>Definition:</b> Range.h:320</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a75a253dacf3b3e231ef64226dfde306d"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a75a253dacf3b3e231ef64226dfde306d">gf::Range::Iterator::reference</a></div><div class="ttdeci">value_type reference</div><div class="ttdef"><b>Definition:</b> Range.h:55</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a5fb0a02baf0a9663cf4cd5ad2326da20"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a5fb0a02baf0a9663cf4cd5ad2326da20">gf::NeighborDiamondRange::Iterator::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdef"><b>Definition:</b> Range.h:602</div></div>
<div class="ttc" id="structgf_1_1_range_html_acf814c011a89d0e8f6bc6dbd7debbd4f"><div class="ttname"><a href="structgf_1_1_range.html#acf814c011a89d0e8f6bc6dbd7debbd4f">gf::Range::hi</a></div><div class="ttdeci">T hi</div><div class="ttdoc">The higher endpoint (excluded) </div><div class="ttdef"><b>Definition:</b> Range.h:45</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html">gf::PositionRange::Iterator</a></div><div class="ttdoc">An iterator for a 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:284</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_html_a77b19e1327ea06bf4160cf9f82ccbe8c"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html#a77b19e1327ea06bf4160cf9f82ccbe8c">gf::NeighborSquareRange::origin</a></div><div class="ttdeci">Vector< T, 2 > origin</div><div class="ttdef"><b>Definition:</b> Range.h:427</div></div>
<div class="ttc" id="structgf_1_1_range_html_a4fd86736bca7b0e08d9c2a903728eddf"><div class="ttname"><a href="structgf_1_1_range.html#a4fd86736bca7b0e08d9c2a903728eddf">gf::Range::contains</a></div><div class="ttdeci">constexpr bool contains(T value) const noexcept</div><div class="ttdoc">Check if a value is in a range. </div><div class="ttdef"><b>Definition:</b> Range.h:165</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a326dee79399fd04a6c7d3ad1adb3e320"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a326dee79399fd04a6c7d3ad1adb3e320">gf::Range::Iterator::operator-></a></div><div class="ttdeci">pointer operator->() noexcept</div><div class="ttdoc">Pointer operator. </div><div class="ttdef"><b>Definition:</b> Range.h:92</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a32f10baeb6601c8fa28d8a3e5576db46"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a32f10baeb6601c8fa28d8a3e5576db46">gf::NeighborSquareRange::Iterator::swap</a></div><div class="ttdeci">void swap(Iterator &other) noexcept</div><div class="ttdoc">Swap the iterator with another iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:471</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a652bad5f79ea9805dc542b77f61efb8c"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a652bad5f79ea9805dc542b77f61efb8c">gf::Range::Iterator::swap</a></div><div class="ttdeci">void swap(typename Range< T >::Iterator &lhs, typename Range< T >::Iterator &rhs) noexcept</div><div class="ttdoc">Swap two range iterators. </div><div class="ttdef"><b>Definition:</b> Range.h:225</div></div>
<div class="ttc" id="structgf_1_1_range_html_aad0071043af7d74ec32722ba09e736f5"><div class="ttname"><a href="structgf_1_1_range.html#aad0071043af7d74ec32722ba09e736f5">gf::Range::begin</a></div><div class="ttdeci">constexpr Iterator begin() const noexcept</div><div class="ttdoc">Get a begin iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:175</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a7ad49c05fab33a9feee2ecae7aac7aa2"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a7ad49c05fab33a9feee2ecae7aac7aa2">gf::NeighborDiamondRange::Iterator::operator*</a></div><div class="ttdeci">reference operator*() noexcept</div><div class="ttdoc">Dereference operator. </div><div class="ttdef"><b>Definition:</b> Range.h:651</div></div>
<div class="ttc" id="namespacegf_html"><div class="ttname"><a href="namespacegf.html">gf</a></div><div class="ttdoc">The namespace for gf classes. </div><div class="ttdef"><b>Definition:</b> Action.h:35</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_aaba7cdb589e3d9cc1c5641bb317aab8b"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#aaba7cdb589e3d9cc1c5641bb317aab8b">gf::Range::Iterator::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> Range.h:53</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_aff59bcd92a4b4fa5f3a2c879785aae58"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#aff59bcd92a4b4fa5f3a2c879785aae58">gf::NeighborSquareRange::Iterator::operator-></a></div><div class="ttdeci">pointer operator->() noexcept</div><div class="ttdoc">Pointer operator. </div><div class="ttdef"><b>Definition:</b> Range.h:491</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a4484d8dd54e33b98e0ddbfaff8fd246e"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a4484d8dd54e33b98e0ddbfaff8fd246e">gf::PositionRange::Iterator::iterator_category</a></div><div class="ttdeci">std::forward_iterator_tag iterator_category</div><div class="ttdef"><b>Definition:</b> Range.h:289</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a67aed057037b18cb0af9822df470bbc9"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a67aed057037b18cb0af9822df470bbc9">gf::NeighborSquareRange::Iterator::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Iterator &other) const noexcept</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:532</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a190cf40d0271385e189b0b5a6088e3ad"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a190cf40d0271385e189b0b5a6088e3ad">gf::NeighborDiamondRange::Iterator::swap</a></div><div class="ttdeci">void swap(Iterator &other) noexcept</div><div class="ttdoc">Swap the iterator with another iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:640</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_html_a1e430b51e2062033652d55c6c202657b"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html#a1e430b51e2062033652d55c6c202657b">gf::NeighborSquareRange::first</a></div><div class="ttdeci">Range< T > first</div><div class="ttdoc">The range in the first dimension. </div><div class="ttdef"><b>Definition:</b> Range.h:425</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html">gf::NeighborSquareRange::Iterator</a></div><div class="ttdoc">An iterator for a 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:432</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_a02428499f514482652b721c30624ab6e"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#a02428499f514482652b721c30624ab6e">gf::PositionRange::Iterator::range</a></div><div class="ttdeci">Range< T > range</div><div class="ttdef"><b>Definition:</b> Range.h:291</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a14600b6d9a952f505d84701ba3bf9c74"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a14600b6d9a952f505d84701ba3bf9c74">gf::Range::Iterator::iterator_category</a></div><div class="ttdeci">std::bidirectional_iterator_tag iterator_category</div><div class="ttdef"><b>Definition:</b> Range.h:56</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a07ab4c7826df3fbe754ffa3501b37478"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a07ab4c7826df3fbe754ffa3501b37478">gf::NeighborSquareRange::Iterator::swap</a></div><div class="ttdeci">void swap(typename NeighborSquareRange< T >::Iterator &lhs, typename NeighborSquareRange< T >::Iterator &rhs) noexcept</div><div class="ttdoc">Swap two range iterators. </div><div class="ttdef"><b>Definition:</b> Range.h:580</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html">gf::NeighborDiamondRange</a></div><div class="ttdoc">A 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:592</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_aa35f0d96fbaa9ed6b74f1051abe7a6ae"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#aa35f0d96fbaa9ed6b74f1051abe7a6ae">gf::PositionRange::Iterator::swap</a></div><div class="ttdeci">void swap(typename PositionRange< T >::Iterator &lhs, typename PositionRange< T >::Iterator &rhs) noexcept</div><div class="ttdoc">Swap two range iterators. </div><div class="ttdef"><b>Definition:</b> Range.h:412</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_a6801ed7e83ed056184106071a8ae8fe6"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#a6801ed7e83ed056184106071a8ae8fe6">gf::NeighborDiamondRange::end</a></div><div class="ttdeci">constexpr Iterator end() const noexcept</div><div class="ttdoc">Get a end iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:750</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a0d6ef8f146bae9ff8c6407cc9982ecf8"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a0d6ef8f146bae9ff8c6407cc9982ecf8">gf::Range::Iterator::operator--</a></div><div class="ttdeci">Iterator operator--(int) noexcept</div><div class="ttdoc">Decrement operator (postfix) </div><div class="ttdef"><b>Definition:</b> Range.h:132</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_html_af060d4f776e5668d4637bbc7fb2f3671"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range.html#af060d4f776e5668d4637bbc7fb2f3671">gf::NeighborDiamondRange::radius</a></div><div class="ttdeci">T radius</div><div class="ttdef"><b>Definition:</b> Range.h:596</div></div>
<div class="ttc" id="structgf_1_1_vector_3_01_t_00_012_01_4_html"><div class="ttname"><a href="structgf_1_1_vector_3_01_t_00_012_01_4.html">gf::Vector< T, 2 ></a></div><div class="ttdoc">A 2D vector. </div><div class="ttdef"><b>Definition:</b> Vector.h:316</div></div>
<div class="ttc" id="structgf_1_1_position_range_html_a9a91dbb22e19e9ac52bece42cb2cfad9"><div class="ttname"><a href="structgf_1_1_position_range.html#a9a91dbb22e19e9ac52bece42cb2cfad9">gf::PositionRange::begin</a></div><div class="ttdeci">constexpr Iterator begin() const noexcept</div><div class="ttdoc">Get a begin iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:391</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_ad8d0147f1b8e18c1e49bd142dbd20bba"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#ad8d0147f1b8e18c1e49bd142dbd20bba">gf::NeighborDiamondRange::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(Vector< T, 2 > iteratorPosition, const NeighborDiamondRange< T > *iteratorParent) noexcept</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Range.h:617</div></div>
<div class="ttc" id="structgf_1_1_position_range_html"><div class="ttname"><a href="structgf_1_1_position_range.html">gf::PositionRange</a></div><div class="ttdoc">A 2D range. </div><div class="ttdef"><b>Definition:</b> Range.h:277</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_html_ab6f52ce33cf7b84a7bf94512b2aaf5e3"><div class="ttname"><a href="structgf_1_1_neighbor_square_range.html#ab6f52ce33cf7b84a7bf94512b2aaf5e3">gf::NeighborSquareRange::end</a></div><div class="ttdeci">constexpr Iterator end() const noexcept</div><div class="ttdoc">Get a end iterator. </div><div class="ttdef"><b>Definition:</b> Range.h:569</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a0214e3d7fd418f0527a6faa1b5099e26"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a0214e3d7fd418f0527a6faa1b5099e26">gf::NeighborDiamondRange::Iterator::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Iterator &other) const noexcept</div><div class="ttdoc">Inequality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:691</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_accd286d0d5cff5203d12b41cfc6e80be"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#accd286d0d5cff5203d12b41cfc6e80be">gf::NeighborSquareRange::Iterator::operator*</a></div><div class="ttdeci">reference operator*() noexcept</div><div class="ttdoc">Dereference operator. </div><div class="ttdef"><b>Definition:</b> Range.h:482</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_abfd61c0c1573b99ea1d2c3ae162e24d6"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#abfd61c0c1573b99ea1d2c3ae162e24d6">gf::PositionRange::Iterator::Iterator</a></div><div class="ttdeci">constexpr Iterator(Range< T > iteratorRange, Vector< T, 2 > iteratorPosition) noexcept</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Range.h:300</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a51e745a103a99dde260a49d730a94dea"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a51e745a103a99dde260a49d730a94dea">gf::NeighborSquareRange::Iterator::operator++</a></div><div class="ttdeci">Iterator & operator++() noexcept</div><div class="ttdoc">Increment operator (prefix) </div><div class="ttdef"><b>Definition:</b> Range.h:500</div></div>
<div class="ttc" id="structgf_1_1_position_range_1_1_iterator_html_ade8f4b3a5943c697415e34dc1d62128a"><div class="ttname"><a href="structgf_1_1_position_range_1_1_iterator.html#ade8f4b3a5943c697415e34dc1d62128a">gf::PositionRange::Iterator::position</a></div><div class="ttdeci">Vector< T, 2 > position</div><div class="ttdef"><b>Definition:</b> Range.h:292</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_ae98e48c0875896a57fa70ccbecb745d5"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#ae98e48c0875896a57fa70ccbecb745d5">gf::Range::Iterator::index</a></div><div class="ttdeci">T index</div><div class="ttdoc">The index in the range. </div><div class="ttdef"><b>Definition:</b> Range.h:58</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_abb6944e61c759214df4e81e677a8acb5"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#abb6944e61c759214df4e81e677a8acb5">gf::NeighborDiamondRange::Iterator::operator++</a></div><div class="ttdeci">Iterator operator++(int) noexcept</div><div class="ttdoc">Increment operator (postfix) </div><div class="ttdef"><b>Definition:</b> Range.h:679</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a1d32317e7e039cf5da34cbc5d8082fb7"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a1d32317e7e039cf5da34cbc5d8082fb7">gf::NeighborDiamondRange::Iterator::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Iterator &other) const noexcept</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> Range.h:701</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_af95e40ca27e9295d0ab7fcb17c6f591a"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#af95e40ca27e9295d0ab7fcb17c6f591a">gf::NeighborSquareRange::Iterator::operator++</a></div><div class="ttdeci">Iterator operator++(int) noexcept</div><div class="ttdoc">Increment operator (postfix) </div><div class="ttdef"><b>Definition:</b> Range.h:510</div></div>
<div class="ttc" id="structgf_1_1_range_html_ad878f909f1ccd2ea561a36c7836da50a"><div class="ttname"><a href="structgf_1_1_range.html#ad878f909f1ccd2ea561a36c7836da50a">gf::Range::length</a></div><div class="ttdeci">constexpr T length() const noexcept</div><div class="ttdoc">Get the length of the range. </div><div class="ttdef"><b>Definition:</b> Range.h:194</div></div>
<div class="ttc" id="structgf_1_1_neighbor_diamond_range_1_1_iterator_html_a947438e045523d760c464e0b70c0971d"><div class="ttname"><a href="structgf_1_1_neighbor_diamond_range_1_1_iterator.html#a947438e045523d760c464e0b70c0971d">gf::NeighborDiamondRange::Iterator::swap</a></div><div class="ttdeci">void swap(typename NeighborDiamondRange< T >::Iterator &lhs, typename NeighborDiamondRange< T >::Iterator &rhs) noexcept</div><div class="ttdoc">Swap two range iterators. </div><div class="ttdef"><b>Definition:</b> Range.h:761</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a167ff71128033d3a732fc65c03592f0a"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a167ff71128033d3a732fc65c03592f0a">gf::NeighborSquareRange::Iterator::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdef"><b>Definition:</b> Range.h:433</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a0b5e7c11151634f4fb2cac8c2b3df675"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a0b5e7c11151634f4fb2cac8c2b3df675">gf::Range::Iterator::pointer</a></div><div class="ttdeci">value_type pointer</div><div class="ttdef"><b>Definition:</b> Range.h:54</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a6b79e696d800d2e4179873492297f7ec"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a6b79e696d800d2e4179873492297f7ec">gf::Range::Iterator::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdef"><b>Definition:</b> Range.h:52</div></div>
<div class="ttc" id="structgf_1_1_range_1_1_iterator_html_a4459872c42b659b657424c78f8a8060a"><div class="ttname"><a href="structgf_1_1_range_1_1_iterator.html#a4459872c42b659b657424c78f8a8060a">gf::Range::Iterator::operator++</a></div><div class="ttdeci">Iterator & operator++() noexcept</div><div class="ttdoc">Increment operator (prefix) </div><div class="ttdef"><b>Definition:</b> Range.h:101</div></div>
<div class="ttc" id="structgf_1_1_neighbor_square_range_1_1_iterator_html_a57d3bb15becfbd8612fef5e4042c5c90"><div class="ttname"><a href="structgf_1_1_neighbor_square_range_1_1_iterator.html#a57d3bb15becfbd8612fef5e4042c5c90">gf::NeighborSquareRange::Iterator::parent</a></div><div class="ttdeci">const NeighborSquareRange< T > * parent</div><div class="ttdef"><b>Definition:</b> Range.h:440</div></div>
<div class="ttc" id="structgf_1_1_range_html_ad7a1d88f30b7d09c3232eef71deff937"><div class="ttname"><a href="structgf_1_1_range.html#ad7a1d88f30b7d09c3232eef71deff937">gf::Range::isValid</a></div><div class="ttdeci">constexpr bool isValid() const noexcept</div><div class="ttdoc">Check is the range is valid. </div><div class="ttdef"><b>Definition:</b> Range.h:214</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>