-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_array_ref_8h_source.html
84 lines (84 loc) · 26.9 KB
/
_array_ref_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
<!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): ArrayRef.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="http://cdn.mathjax.org/mathjax/latest/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.14.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">ArrayRef.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_ARRAY_REF_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define GF_ARRAY_REF_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 <array></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <vector></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="keyword">namespace </span><a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html"> 42</a></span>  <span class="keyword">class </span><a class="code" href="classgf_1_1_array_ref.html">ArrayRef</a> {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a0a21d43b73fdac599a8501522fe3e042"> 49</a></span>  constexpr <a class="code" href="classgf_1_1_array_ref.html#a0a21d43b73fdac599a8501522fe3e042">ArrayRef</a>()</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  : m_data(nullptr)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  , m_size(0)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a5f8263c937039f99208e0f64b8a127c0"> 60</a></span>  constexpr <a class="code" href="classgf_1_1_array_ref.html#a5f8263c937039f99208e0f64b8a127c0">ArrayRef</a>(std::nullptr_t)</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  : m_data(nullptr)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  , m_size(0)</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a745f656cdcfe70b63d6337c5277c39a8"> 72</a></span>  constexpr <a class="code" href="classgf_1_1_array_ref.html#a745f656cdcfe70b63d6337c5277c39a8">ArrayRef</a>(<span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *data, std::size_t size)</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  : m_data(data)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  , m_size(size)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</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="classgf_1_1_array_ref.html#af14348a6ad9b334c34495f91d9fcb33c"> 83</a></span>  <a class="code" href="classgf_1_1_array_ref.html#af14348a6ad9b334c34495f91d9fcb33c">ArrayRef</a>(<span class="keyword">const</span> std::vector<T>& values)</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  : m_data(values.data())</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  , m_size(values.size())</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> N></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#ab35039983cff613e7437269df312a7b1"> 95</a></span>  <a class="code" href="classgf_1_1_array_ref.html#ab35039983cff613e7437269df312a7b1">ArrayRef</a>(<span class="keyword">const</span> std::array<T,N>& values)</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  : m_data(values.data())</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  , m_size(values.size())</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  }</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> N></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#aca9f26846a0ea87efecd73250cf74ccb"> 109</a></span>  constexpr <a class="code" href="classgf_1_1_array_ref.html#aca9f26846a0ea87efecd73250cf74ccb">ArrayRef</a>(<span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> (&data)[<a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626a8d9c307cb7f3c4a32822a51922d1ceaa">N</a>])</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  : m_data(data)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  , m_size(N)</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a38d5f85b7670197d669a775f3b512f4a"> 120</a></span>  <a class="code" href="classgf_1_1_array_ref.html#a38d5f85b7670197d669a775f3b512f4a">ArrayRef</a>(std::initializer_list<T> values)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  : m_data(values.size() == 0 ? nullptr : values.begin())</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  , m_size(values.size())</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a4ba54d963db4e76efac1b1b6dfb6bfa1"> 131</a></span>  constexpr <span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *<a class="code" href="classgf_1_1_array_ref.html#a4ba54d963db4e76efac1b1b6dfb6bfa1">getData</a>() const noexcept {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> m_data;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a05bce7885fcccdd2b95d21a050083ac4"> 140</a></span>  constexpr std::size_t <a class="code" href="classgf_1_1_array_ref.html#a05bce7885fcccdd2b95d21a050083ac4">getSize</a>() const noexcept {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">return</span> m_size;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  }</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#ab92457eded61257f7a48046946010556"> 149</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="classgf_1_1_array_ref.html#ab92457eded61257f7a48046946010556">isEmpty</a>() const noexcept {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> m_size == 0;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a536d4421004bed111b17be0c496f73d5"> 160</a></span>  constexpr <span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *<a class="code" href="classgf_1_1_array_ref.html#a536d4421004bed111b17be0c496f73d5">begin</a>() const noexcept {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> m_data;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a288a5dc4ba628ccb853f17c25850339b"> 171</a></span>  constexpr <span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *<a class="code" href="classgf_1_1_array_ref.html#a288a5dc4ba628ccb853f17c25850339b">end</a>() const noexcept {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span> m_data + m_size;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classgf_1_1_array_ref.html#a83ba809c3f473955de8612c11f08c452"> 183</a></span>  constexpr <span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a>& <a class="code" href="classgf_1_1_array_ref.html#a83ba809c3f473955de8612c11f08c452">operator[]</a>(std::size_t index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> m_data[index];</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  }</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *m_data;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  std::size_t m_size;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  };</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  constexpr</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="group__core.html#gaeff488964a3b6ec01b110f42438da086"> 203</a></span>  <a class="code" href="classgf_1_1_array_ref.html">ArrayRef<T></a> <a class="code" href="group__core.html#gaeff488964a3b6ec01b110f42438da086">array</a>(<span class="keyword">const</span> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *data, std::size_t size) {</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">return</span> <a class="code" href="classgf_1_1_array_ref.html">ArrayRef<T></a>(data, size);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</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="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> }</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor">#endif // GF_ARRAY_REF_H</span></div><div class="ttc" id="classgf_1_1_array_ref_html_a4ba54d963db4e76efac1b1b6dfb6bfa1"><div class="ttname"><a href="classgf_1_1_array_ref.html#a4ba54d963db4e76efac1b1b6dfb6bfa1">gf::ArrayRef::getData</a></div><div class="ttdeci">constexpr const T * getData() const noexcept</div><div class="ttdoc">Get a pointer to the elements. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:131</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a5f8263c937039f99208e0f64b8a127c0"><div class="ttname"><a href="classgf_1_1_array_ref.html#a5f8263c937039f99208e0f64b8a127c0">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">constexpr ArrayRef(std::nullptr_t)</div><div class="ttdoc">Null constructor. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:60</div></div>
<div class="ttc" id="group__window_html_gga795d7d5e2f2a4f38b16b95e0e78cb626a8d9c307cb7f3c4a32822a51922d1ceaa"><div class="ttname"><a href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626a8d9c307cb7f3c4a32822a51922d1ceaa">gf::Scancode::N</a></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="classgf_1_1_array_ref_html_ab35039983cff613e7437269df312a7b1"><div class="ttname"><a href="classgf_1_1_array_ref.html#ab35039983cff613e7437269df312a7b1">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">ArrayRef(const std::array< T, N > &values)</div><div class="ttdoc">Constructor from a std::array </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:95</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a0a21d43b73fdac599a8501522fe3e042"><div class="ttname"><a href="classgf_1_1_array_ref.html#a0a21d43b73fdac599a8501522fe3e042">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">constexpr ArrayRef()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:49</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a83ba809c3f473955de8612c11f08c452"><div class="ttname"><a href="classgf_1_1_array_ref.html#a83ba809c3f473955de8612c11f08c452">gf::ArrayRef::operator[]</a></div><div class="ttdeci">constexpr const T & operator[](std::size_t index) const</div><div class="ttdoc">Get an element at a given index. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:183</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a38d5f85b7670197d669a775f3b512f4a"><div class="ttname"><a href="classgf_1_1_array_ref.html#a38d5f85b7670197d669a775f3b512f4a">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">ArrayRef(std::initializer_list< T > values)</div><div class="ttdoc">Constructor from an initializer list. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:120</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a288a5dc4ba628ccb853f17c25850339b"><div class="ttname"><a href="classgf_1_1_array_ref.html#a288a5dc4ba628ccb853f17c25850339b">gf::ArrayRef::end</a></div><div class="ttdeci">constexpr const T * end() const noexcept</div><div class="ttdoc">Get an iterator past the last element. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:171</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="classgf_1_1_array_ref_html_a05bce7885fcccdd2b95d21a050083ac4"><div class="ttname"><a href="classgf_1_1_array_ref.html#a05bce7885fcccdd2b95d21a050083ac4">gf::ArrayRef::getSize</a></div><div class="ttdeci">constexpr std::size_t getSize() const noexcept</div><div class="ttdoc">Get the number of elements. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:140</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html"><div class="ttname"><a href="classgf_1_1_array_ref.html">gf::ArrayRef</a></div><div class="ttdoc">A constant reference to an array and its size. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:42</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_af14348a6ad9b334c34495f91d9fcb33c"><div class="ttname"><a href="classgf_1_1_array_ref.html#af14348a6ad9b334c34495f91d9fcb33c">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">ArrayRef(const std::vector< T > &values)</div><div class="ttdoc">Constructor from a std::vector </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:83</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a536d4421004bed111b17be0c496f73d5"><div class="ttname"><a href="classgf_1_1_array_ref.html#a536d4421004bed111b17be0c496f73d5">gf::ArrayRef::begin</a></div><div class="ttdeci">constexpr const T * begin() const noexcept</div><div class="ttdoc">Get an iterator to the first element. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:160</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_ab92457eded61257f7a48046946010556"><div class="ttname"><a href="classgf_1_1_array_ref.html#ab92457eded61257f7a48046946010556">gf::ArrayRef::isEmpty</a></div><div class="ttdeci">constexpr bool isEmpty() const noexcept</div><div class="ttdoc">Check if the array is empty. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:149</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_aca9f26846a0ea87efecd73250cf74ccb"><div class="ttname"><a href="classgf_1_1_array_ref.html#aca9f26846a0ea87efecd73250cf74ccb">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">constexpr ArrayRef(const T(&data)[N])</div><div class="ttdoc">Constructor from a static array. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:109</div></div>
<div class="ttc" id="group__core_html_gaeff488964a3b6ec01b110f42438da086"><div class="ttname"><a href="group__core.html#gaeff488964a3b6ec01b110f42438da086">gf::array</a></div><div class="ttdeci">constexpr ArrayRef< T > array(const T *data, std::size_t size)</div><div class="ttdoc">Create a constant reference to an array. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:203</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html_a745f656cdcfe70b63d6337c5277c39a8"><div class="ttname"><a href="classgf_1_1_array_ref.html#a745f656cdcfe70b63d6337c5277c39a8">gf::ArrayRef::ArrayRef</a></div><div class="ttdeci">constexpr ArrayRef(const T *data, std::size_t size)</div><div class="ttdoc">Constructor from a pointer and a size. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:72</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>