Micro template library A library for building device drivers
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

173 řádky
98 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: include/utl/dev/idx_dev.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('idx__dev_8h_source.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="headertitle">
  88. <div class="title">idx_dev.h</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <a href="idx__dev_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#ifndef __utl_dev_idx_dev_h__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#define __utl_dev_idx_dev_h__</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_8h.html">utl/core/impl.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="crtp_8h.html">utl/core/crtp.h</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="dev__iterators_8h.html">utl/dev/dev_iterators.h</a>&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="meta_8h.html">utl/meta/meta.h</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceutl.html">utl</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> impl_t, <span class="keyword">typename</span> data_t, <span class="keyword">typename</span> <span class="keywordtype">id</span>x_t, <span class="keywordtype">size_t</span> N&gt;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html"> 56</a></span>&#160; <span class="keyword">class </span><a class="code" href="classutl_1_1idx__dev.html">idx_dev</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a814222014cab41a11fa8b2040e50310d">_CRTP_IMPL</a>(impl_t);</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6"> 58</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a> = <a class="code" href="classutl_1_1idx__dev.html">idx_dev &lt;impl_t, data_t, idx_t, N&gt;</a>; </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#ace7a74e439972658d6006f83371ee0ca"> 62</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html#ace7a74e439972658d6006f83371ee0ca">data_type</a> = data_t;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#acf054246b0c7c8be0a676fc1cf2b090c"> 63</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html#acf054246b0c7c8be0a676fc1cf2b090c">pointer_type</a>= data_t*;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aa8055ff3787876f243710ff194c7b8d0"> 64</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html#aa8055ff3787876f243710ff194c7b8d0">idx_type</a> = idx_t;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a6cdcb1da82a0047d990ee6bce8b6c32b"> 66</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html">type</a> = <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>; </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#ac7fc9b499b2c4b73769b68d10181b08b">~idx_dev</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a90c6f576acb2a1ced3e973864d5d61b1">idx_dev</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a90c6f576acb2a1ced3e973864d5d61b1">idx_dev</a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#ac817369b5efb068d648328320a9cf6a4">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4"> 82</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data_t&amp; data, idx_t idx) { <span class="keywordflow">return</span> impl().get_(data, idx); }</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a268d9f5940e7621affca5bffde8830b9"> 83</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#a268d9f5940e7621affca5bffde8830b9">get_</a> (data_t* data, <span class="keywordtype">size_t</span> n, idx_t idx) { <span class="keywordflow">return</span> impl().get_(data, n, idx); }</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d"> 84</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (<span class="keyword">const</span> data_t&amp; data, idx_t idx) { <span class="keywordflow">return</span> impl().put_(data, idx); }</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aef5b7b2d58b2502ea7e60cfc9835e9b6"> 85</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#aef5b7b2d58b2502ea7e60cfc9835e9b6">put_</a> (<span class="keyword">const</span> data_t* data, <span class="keywordtype">size_t</span> n, idx_t idx) { <span class="keywordflow">return</span> impl().put_ (data, n, idx); }</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5"> 86</a></span>&#160; idx_t <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> impl().cursor_(); }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aa72ce1d299e2e994b811f127e7ce133f"> 87</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classutl_1_1idx__dev.html#aa72ce1d299e2e994b811f127e7ce133f">cursor_</a> (idx_t idx) { impl().cursor_(idx); }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a04f9404d7741c3c6ac421c530dfe867c"> 104</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">get</span> (data_t&amp; data, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aeef118cb863218cb2b5a1e8bb2dba600"> 116</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">get</span> (data_t* data, <span class="keywordtype">size_t</span> n, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data, n, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#af588d605d6968164cca3e348b5363613"> 129</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#af588d605d6968164cca3e348b5363613">put</a> (<span class="keyword">const</span> data_t&amp; data, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (data, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; }</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a4d91ec798d3bf0da54467b4a394da839"> 141</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#a4d91ec798d3bf0da54467b4a394da839">put</a> (<span class="keyword">const</span> data_t* data, <span class="keywordtype">size_t</span> n, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (data, n, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5"> 149</a></span>&#160; idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>(); }</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#ab49339f7ff0608ab460f0883224acb3c"> 156</a></span>&#160; idx_t <a class="code" href="classutl_1_1idx__dev.html#ab49339f7ff0608ab460f0883224acb3c">cursor</a> (idx_t idx) { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>(idx); }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Dst_t&gt;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a"> 170</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(_Dst_t&amp; dst) {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; static_assert ((<span class="keyword">sizeof</span> (_Dst_t)%<span class="keyword">sizeof</span>(data_t) == 0),</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="stringliteral">&quot;Target size must be a integer multiple of device&#39;s data size&quot;</span>);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (reinterpret_cast&lt;data_t*&gt;(&amp;dst), <span class="keyword">sizeof</span>(_Dst_t)/<span class="keyword">sizeof</span>(data_t), <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; }</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Dst_t&gt;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(_Dst_t* dst) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a3480680f94fcb06f9ee8b2e5dcdb4dcd"> 181</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(data_t&amp; dst) {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (dst, <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; }</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Src_t&gt;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907"> 198</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(_Src_t&amp; src) {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; static_assert ((<span class="keyword">sizeof</span> (_Src_t)%<span class="keyword">sizeof</span>(data_t) == 0),</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="stringliteral">&quot;Source size must be a integer multiple of device&#39;s data size&quot;</span>);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (reinterpret_cast&lt;data_t*&gt;(&amp;src), <span class="keyword">sizeof</span> (_Src_t)/<span class="keyword">sizeof</span>(data_t), <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; }</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Src_t&gt;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(_Src_t* src) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#ad1c24182de1432f4d43eaa69db7aaec7"> 209</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(<span class="keyword">const</span> data_t&amp; src) {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (src, <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; data_t&amp; <a class="code" href="classutl_1_1idx__dev.html#a5e0d647ad1cc5533e4f70292d8793a9f">operator[] </a>(<span class="keyword">const</span> idx_t idx) {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a> it(<span class="keyword">this</span>, idx);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">return</span> *it;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; }</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a"> 230</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a> = idxdev_it &lt;idx_dev_t, data_t*, N&gt;; </div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510"> 231</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a> = idxdev_it &lt;idx_dev_t, const data_t*, N&gt;; </div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a83b186ed15e9bbe1e5d53e3941d517a7"> 234</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a> <a class="code" href="classutl_1_1idx__dev.html#a83b186ed15e9bbe1e5d53e3941d517a7">begin</a> () noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#ad456ced43be8ab4fb9a66840afa030f7"> 235</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a> <a class="code" href="classutl_1_1idx__dev.html#ad456ced43be8ab4fb9a66840afa030f7">begin</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a7550b4dbfea20c02f4600821bf36dc0c"> 236</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a> <a class="code" href="classutl_1_1idx__dev.html#a7550b4dbfea20c02f4600821bf36dc0c">cbegin</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#aae291a2bb6788f85aa543861ccdb51c5"> 239</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a> <a class="code" href="classutl_1_1idx__dev.html#aae291a2bb6788f85aa543861ccdb51c5">end</a> () noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#ae1cf97364a8264b390b361fc6b54b389"> 240</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a> <a class="code" href="classutl_1_1idx__dev.html#ae1cf97364a8264b390b361fc6b54b389">end</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev.html#a6ee37538b456c4b53b0bd4b3757b5edf"> 241</a></span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a> <a class="code" href="classutl_1_1idx__dev.html#a6ee37538b456c4b53b0bd4b3757b5edf">cend</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; };</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> data_t, <span class="keyword">typename</span> <span class="keywordtype">id</span>x_t, <span class="keywordtype">size_t</span> N&gt;</div><div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html"> 256</a></span>&#160; <span class="keyword">class </span><a class="code" href="classutl_1_1idx__dev.html">idx_dev</a> &lt;<a class="code" href="structutl_1_1virtual__tag.html">virtual_tag</a>, data_t, idx_t, N&gt; {</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a14c20218e1843e6dc981a23aeb2fccb8"> 257</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a> = <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev &lt;virtual_tag, data_t, idx_t, N&gt;</a>; </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#aa26f4d0326232c436f3a312edf89b7e1"> 261</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#aa26f4d0326232c436f3a312edf89b7e1">data_type</a> = data_t;</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a21fdf221d18bb3a118950d51af0b2df6"> 262</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a21fdf221d18bb3a118950d51af0b2df6">pointer_type</a>= data_t*;</div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a838a5bd9c2abb86ccde6249dc549e11b"> 263</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a838a5bd9c2abb86ccde6249dc549e11b">idx_type</a> = idx_t;</div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#aa35bd23b888a66ebceffd7ea37f7a230"> 265</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">type</a> = <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>; </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classutl_1_1idx__dev.html#ac7fc9b499b2c4b73769b68d10181b08b">~idx_dev</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a90c6f576acb2a1ced3e973864d5d61b1">idx_dev</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a90c6f576acb2a1ced3e973864d5d61b1">idx_dev</a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#ac817369b5efb068d648328320a9cf6a4">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data_t&amp;, idx_t) =0;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data_t*, <span class="keywordtype">size_t</span> n, idx_t) =0;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (<span class="keyword">const</span> data_t&amp;, idx_t) =0;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (<span class="keyword">const</span> data_t*, <span class="keywordtype">size_t</span> n, idx_t) =0;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; <span class="keyword">virtual</span> idx_t <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a> () <span class="keyword">const</span> =0;</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a> (idx_t) =0;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a6d5acffcb7f0ae7d34b47021b55aff6c"> 303</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">get</span> (data_t&amp; data, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; }</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a58ce6002f3a5daabcc443aebee42e10b"> 315</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">get</span> (data_t* data, <span class="keywordtype">size_t</span> n, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (data, n, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; }</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a183e46d89452a51a029387f621fb4e9f"> 328</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a183e46d89452a51a029387f621fb4e9f">put</a> (<span class="keyword">const</span> data_t&amp; data, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (data, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; }</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a58ee979bbc14205548db85cbfbed7aba"> 340</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a58ee979bbc14205548db85cbfbed7aba">put</a> (<span class="keyword">const</span> data_t* data, <span class="keywordtype">size_t</span> n, idx_t <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>) {</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (data, n, <a class="code" href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">cursor</a>);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; }</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div><div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a2524b96ad86605bdadf47f54265154a7"> 348</a></span>&#160; idx_t <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a2524b96ad86605bdadf47f54265154a7">cursor</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>(); }</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4a0f9f2e977055dab73e2ecd0e49d97e"> 355</a></span>&#160; idx_t <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4a0f9f2e977055dab73e2ecd0e49d97e">cursor</a> (idx_t idx) { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>(idx); }</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Dst_t&gt;</div><div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a6e758bd01a5d893a8b13476ed55213cc"> 369</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(_Dst_t&amp; dst) {</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; static_assert ((<span class="keyword">sizeof</span> (_Dst_t)%<span class="keyword">sizeof</span>(data_t) == 0),</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="stringliteral">&quot;Target size must be an integer multiple of device&#39;s data size&quot;</span>);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (reinterpret_cast&lt;data_t*&gt;(&amp;dst), <span class="keyword">sizeof</span>(_Dst_t)/<span class="keyword">sizeof</span>(data_t), <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; }</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Dst_t&gt;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(_Dst_t* dst) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160;</div><div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a379c115c72386cd4407443d9f3c6ac53"> 380</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">operator&gt;&gt; </a>(data_t&amp; dst) {</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">get_</a> (dst, <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; }</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160;</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Src_t&gt;</div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#accbb8a8c64fc4cac385081c9b6b7356b"> 397</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(_Src_t&amp; src) {</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; static_assert ((<span class="keyword">sizeof</span> (_Src_t)%<span class="keyword">sizeof</span>(data_t) == 0),</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; <span class="stringliteral">&quot;Source size must be an integer multiple of device&#39;s data size&quot;</span>);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (reinterpret_cast&lt;data_t*&gt;(&amp;src), <span class="keyword">sizeof</span> (_Src_t)/<span class="keyword">sizeof</span>(data_t), <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; }</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Src_t&gt;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(_Src_t* src) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a52d8bf37aa7e4549db3ac11677cf9ec1"> 408</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">idx_dev_t</a>&amp; <a class="code" href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">operator&lt;&lt; </a>(<span class="keyword">const</span> data_t&amp; src) {</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">put_</a> (src, <a class="code" href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">cursor_</a>());</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; }</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160;</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; data_t&amp; <a class="code" href="classutl_1_1idx__dev.html#a5e0d647ad1cc5533e4f70292d8793a9f">operator[] </a>(<span class="keyword">const</span> idx_t idx) {</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a> it(<span class="keyword">this</span>, idx);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="keywordflow">return</span> *it;</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; }</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160;</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a0965be515cca243b76f571aa425cfd96"> 429</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a0965be515cca243b76f571aa425cfd96">iterator</a> = idxdev_it &lt;idx_dev_t, data_t*, N&gt;; </div><div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92"> 430</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">const_iterator</a> = idxdev_it &lt;idx_dev_t, const data_t*, N&gt;; </div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160;</div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a3923ae24a74fef19919f818636e063e4"> 433</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a0965be515cca243b76f571aa425cfd96">iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a3923ae24a74fef19919f818636e063e4">begin</a> () noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a07967f7a2c5d324361b7ffc829f31600"> 434</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">const_iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a07967f7a2c5d324361b7ffc829f31600">begin</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00435"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a99e214886247aaff0567799ba7b5c6a9"> 435</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">const_iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a99e214886247aaff0567799ba7b5c6a9">cbegin</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::beg); }</div><div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#ad9166f4899994039eb64b6f63bcee621"> 438</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a0965be515cca243b76f571aa425cfd96">iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#ad9166f4899994039eb64b6f63bcee621">end</a> () noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4da6ff073a9f8452ebbd5371e017e4b9"> 439</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">const_iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4da6ff073a9f8452ebbd5371e017e4b9">end</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a413c6a4e5bc1c13ac0d78f5c3c228408"> 440</a></span>&#160; <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">const_iterator</a> <a class="code" href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a413c6a4e5bc1c13ac0d78f5c3c228408">cend</a> () const noexcept { <span class="keywordflow">return</span> <a class="code" href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">const_iterator</a>(<span class="keyword">this</span>, iterator::eos); }</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; };</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160;<span class="preprocessor"> #if defined _utl_have_concepts</span></div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp&gt;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; concept <span class="keywordtype">bool</span> <a class="code" href="namespaceutl.html#a80a0424d220ac1f7be50086617a05dbd">Idx_dev</a> = requires (_Tp t, <span class="keyword">const</span> _Tp ct, <span class="keyword">typename</span> _Tp::data_type v) {</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; <span class="comment">// Object type</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; <span class="comment">// requires std::is_default_constructible&lt;_Tp&gt;::value;</span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; requires !std::is_copy_constructible&lt;_Tp&gt;::value;</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; requires !std::is_copy_assignable&lt;_Tp&gt;::value;</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; <span class="comment">// Methods</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; {t.get(v, 0)} -&gt; <a class="code" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>;</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; {t.get(&amp;v, 1, 0)} -&gt; <a class="code" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; {t.put(v, 0)} -&gt; <a class="code" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; {t.put(&amp;v, 1, 0)} -&gt; <a class="code" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160; <span class="comment">// Operators</span></div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; t &gt;&gt; v;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160; t &lt;&lt; v;</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; {t[<span class="keyword">typename</span> _Tp::idx_type{}]} -&gt; <span class="keyword">typename</span> _Tp::data_type&amp;;</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; <span class="comment">// Iterators</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; requires idxdev_iterator_c&lt;typename _Tp::iterator&gt;;</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="keyword">typename</span> _Tp::const_iterator; <span class="comment">//XXX: change to concept: is_idxdev_iterator&lt;_Tp&gt;</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; <span class="comment">//requires idxdev_iterator_c&lt;typename _Tp::const_iterator&gt;;</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; { t.begin()} -&gt; <span class="keyword">typename</span> _Tp::iterator;</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="comment">// {ct.begin()} -&gt; typename _Tp::const_iterator;</span></div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160; <span class="comment">// { t.cbegin()} -&gt; typename _Tp::const_iterator;</span></div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; { t.end()} -&gt; <span class="keyword">typename</span> _Tp::iterator;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; <span class="comment">// {ct.end()} -&gt; typename _Tp::const_iterator;</span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; <span class="comment">// { t.cend()} -&gt; typename _Tp::const_iterator;</span></div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; };</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160;<span class="preprocessor"> #else</span></div><div class="line"><a name="l00477"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html"> 477</a></span>&#160; <span class="keyword">namespace </span>idx_dev_details {</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; <span class="keyword">using</span> std::declval;</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; <span class="comment">// main api members</span></div><div class="line"><a name="l00481"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#ac3a877d2f57d7c50b77456e0571112f0"> 481</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#ac3a877d2f57d7c50b77456e0571112f0">try_get1_t</a> = decltype (declval&lt;_Tp&gt;().<span class="keyword">get</span> (declval&lt;typename _Tp::data_type&amp;&gt;()));</div><div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#a4cf6896009d70acdccfb55ba333fe7ef"> 482</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#a4cf6896009d70acdccfb55ba333fe7ef">try_get2_t</a> = decltype (declval&lt;_Tp&gt;().<span class="keyword">get</span> (declval&lt;typename _Tp::data_type*&gt;(), declval&lt;size_t&gt;()));</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; <span class="comment">// operators</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; <span class="comment">//template &lt;class _Tp&gt; using try_extract_t= decltype (declval&lt;_Tp&gt;() &gt;&gt; declval&lt;typename _Tp::data_type&amp;&gt;());</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; <span class="comment">// iterator members</span></div><div class="line"><a name="l00486"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#a69a8af95a0fd62c3e022c34ddc3a956b"> 486</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#a69a8af95a0fd62c3e022c34ddc3a956b">try_begin_t</a> = decltype (declval&lt;_Tp&gt;().begin());</div><div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#afe8e2fc19d7b37a1b379a5f8302ef421"> 487</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#afe8e2fc19d7b37a1b379a5f8302ef421">tryc_begin_t</a> = decltype (declval&lt;const _Tp&gt;().begin());</div><div class="line"><a name="l00488"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#a655c6de0d6d8f4ac3778f2fff8e9c7de"> 488</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#a655c6de0d6d8f4ac3778f2fff8e9c7de">try_cbegin_t</a> = decltype (declval&lt;const _Tp&gt;().cbegin());</div><div class="line"><a name="l00489"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#ab85fa5de8595b6e56a6718ffb7d4edfe"> 489</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#ab85fa5de8595b6e56a6718ffb7d4edfe">try_end_t</a> = decltype (declval&lt;_Tp&gt;().begin());</div><div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#aad6edb02a37f897cf4157f6345909ef1"> 490</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#aad6edb02a37f897cf4157f6345909ef1">tryc_end_t</a> = decltype (declval&lt;const _Tp&gt;().begin());</div><div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="namespaceutl_1_1idx__dev__details.html#adb8cac5f5772e513749038257a1f92df"> 491</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1idx__dev__details.html#adb8cac5f5772e513749038257a1f92df">try_cend_t</a> = decltype (declval&lt;const _Tp&gt;().cend());</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160;</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp, <span class="keyword">typename</span> =<span class="keywordtype">void</span>&gt;</div><div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="structutl_1_1idx__dev__details_1_1is__idx__dev__.html"> 495</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structutl_1_1idx__dev__details_1_1is__idx__dev__.html">is_idx_dev_</a> : <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">false_</a> {};</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp&gt;</div><div class="line"><a name="l00499"></a><span class="lineno"><a class="line" href="structutl_1_1idx__dev__details_1_1is__idx__dev___3_01___tp_00_01void__t_3_01typename_01___tp_1_1ae8b6b24c31c81bdd901da6e6387d84b.html"> 499</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structutl_1_1idx__dev__details_1_1is__idx__dev__.html">is_idx_dev_</a> &lt;_Tp,</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; <a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t</a> &lt;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160; typename _Tp::data_type,</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160; typename _Tp::pointer_type,</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>&#160; typename _Tp::iterator,</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; typename _Tp::const_iterator,</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_get1_t &lt;_Tp&gt;, size_t&gt;,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_get2_t &lt;_Tp&gt;, size_t&gt;,</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160; <span class="comment">//if_same_t &lt;try_extract_t&lt;_Tp&gt;,typename _Tp&amp;&gt;,</span></div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_begin_t&lt;_Tp&gt;, typename _Tp::iterator&gt;,</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;tryc_begin_t&lt;_Tp&gt;, typename _Tp::const_iterator&gt;,</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_cbegin_t&lt;_Tp&gt;, typename _Tp::const_iterator&gt;,</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_end_t&lt;_Tp&gt;, typename _Tp::iterator&gt;,</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;tryc_end_t&lt;_Tp&gt;, typename _Tp::const_iterator&gt;,</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; <a class="code" href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">use_if_same_t</a> &lt;try_cend_t&lt;_Tp&gt;, typename _Tp::const_iterator&gt;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160; &gt;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; &gt; : <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">true_</a> {};</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160; }</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp&gt;</div><div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="namespaceutl.html#a80a0424d220ac1f7be50086617a05dbd"> 523</a></span>&#160; constexpr <span class="keywordtype">bool</span> <a class="code" href="namespaceutl.html#a80a0424d220ac1f7be50086617a05dbd">Idx_dev</a> = <a class="code" href="structutl_1_1idx__dev__details_1_1is__idx__dev__.html">idx_dev_details::is_idx_dev_ &lt;_Tp&gt;::value</a>;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160;<span class="preprocessor"> #endif</span></div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>&#160;}</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160;</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* #ifndef __utl_dev_idx_dev_h__ */</span><span class="preprocessor"></span></div><div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a838a5bd9c2abb86ccde6249dc549e11b"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a838a5bd9c2abb86ccde6249dc549e11b">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::idx_type</a></div><div class="ttdeci">idx_t idx_type</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00263">idx_dev.h:263</a></div></div>
  92. <div class="ttc" id="meta_8h_html"><div class="ttname"><a href="meta_8h.html">meta.h</a></div><div class="ttdoc">Include all meta library. </div></div>
  93. <div class="ttc" id="structutl_1_1idx__dev__details_1_1is__idx__dev___html"><div class="ttname"><a href="structutl_1_1idx__dev__details_1_1is__idx__dev__.html">utl::idx_dev_details::is_idx_dev_</a></div><div class="ttdoc">Primary template to catch any non input device types. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00495">idx_dev.h:495</a></div></div>
  94. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a4a0f9f2e977055dab73e2ecd0e49d97e"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4a0f9f2e977055dab73e2ecd0e49d97e">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::cursor</a></div><div class="ttdeci">idx_t cursor(idx_t idx)</div><div class="ttdoc">Set the cursor position. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00355">idx_dev.h:355</a></div></div>
  95. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a183e46d89452a51a029387f621fb4e9f"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a183e46d89452a51a029387f621fb4e9f">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::put</a></div><div class="ttdeci">size_t put(const data_t &amp;data, idx_t cursor)</div><div class="ttdoc">Put interface. This function should send a single data_t object to device. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00328">idx_dev.h:328</a></div></div>
  96. <div class="ttc" id="classutl_1_1idx__dev_html_a268d9f5940e7621affca5bffde8830b9"><div class="ttname"><a href="classutl_1_1idx__dev.html#a268d9f5940e7621affca5bffde8830b9">utl::idx_dev::get_</a></div><div class="ttdeci">size_t get_(data_t *data, size_t n, idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00083">idx_dev.h:83</a></div></div>
  97. <div class="ttc" id="group__detection_html_gae7373c997420d16cf37e542eb3cfa3ad"><div class="ttname"><a href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">utl::meta::void_t</a></div><div class="ttdeci">void void_t</div><div class="ttdoc">void_t type alias </div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00055">detection.h:55</a></div></div>
  98. <div class="ttc" id="classutl_1_1idx__dev_html_a4d91ec798d3bf0da54467b4a394da839"><div class="ttname"><a href="classutl_1_1idx__dev.html#a4d91ec798d3bf0da54467b4a394da839">utl::idx_dev::put</a></div><div class="ttdeci">size_t put(const data_t *data, size_t n, idx_t cursor)</div><div class="ttdoc">Put interface. This function should send a stream of data_t objects to device. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00141">idx_dev.h:141</a></div></div>
  99. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;</a></div><div class="ttdoc">A virtual base class specialization. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00256">idx_dev.h:256</a></div></div>
  100. <div class="ttc" id="classutl_1_1idx__dev_html_a5ec37ed1b09a484563e4ad21107ac5a5"><div class="ttname"><a href="classutl_1_1idx__dev.html#a5ec37ed1b09a484563e4ad21107ac5a5">utl::idx_dev::cursor</a></div><div class="ttdeci">idx_t cursor() const</div><div class="ttdoc">Return the current cursor position. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00149">idx_dev.h:149</a></div></div>
  101. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a07967f7a2c5d324361b7ffc829f31600"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a07967f7a2c5d324361b7ffc829f31600">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::begin</a></div><div class="ttdeci">const_iterator begin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00434">idx_dev.h:434</a></div></div>
  102. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_a69a8af95a0fd62c3e022c34ddc3a956b"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#a69a8af95a0fd62c3e022c34ddc3a956b">utl::idx_dev_details::try_begin_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().begin()) try_begin_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00486">idx_dev.h:486</a></div></div>
  103. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a3923ae24a74fef19919f818636e063e4"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a3923ae24a74fef19919f818636e063e4">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::begin</a></div><div class="ttdeci">iterator begin() noexcept</div><div class="ttdoc">.begin implementation </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00433">idx_dev.h:433</a></div></div>
  104. <div class="ttc" id="classutl_1_1idx__dev_html_a90c6f576acb2a1ced3e973864d5d61b1"><div class="ttname"><a href="classutl_1_1idx__dev.html#a90c6f576acb2a1ced3e973864d5d61b1">utl::idx_dev::idx_dev</a></div><div class="ttdeci">idx_dev()=default</div><div class="ttdoc">A default constructor from derived only. </div></div>
  105. <div class="ttc" id="classutl_1_1idx__dev_html_a7aa9e9ecfa5035dba4c2f9ef9ec60c2a"><div class="ttname"><a href="classutl_1_1idx__dev.html#a7aa9e9ecfa5035dba4c2f9ef9ec60c2a">utl::idx_dev::iterator</a></div><div class="ttdeci">idxdev_it&lt; idx_dev_t, data_t *, N &gt; iterator</div><div class="ttdoc">Iterator. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00230">idx_dev.h:230</a></div></div>
  106. <div class="ttc" id="classutl_1_1idx__dev_html_a5e0d647ad1cc5533e4f70292d8793a9f"><div class="ttname"><a href="classutl_1_1idx__dev.html#a5e0d647ad1cc5533e4f70292d8793a9f">utl::idx_dev::operator[]</a></div><div class="ttdeci">data_t &amp; operator[](const idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00219">idx_dev.h:219</a></div></div>
  107. <div class="ttc" id="namespaceutl_1_1meta_html_ae9a5a8fbe8202785f059935af219fb97"><div class="ttname"><a href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">utl::meta::true_</a></div><div class="ttdeci">bool_&lt; true &gt; true_</div><div class="ttdoc">The type used as a compile-time boolean with true value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00068">integral.h:68</a></div></div>
  108. <div class="ttc" id="crtp_8h_html"><div class="ttname"><a href="crtp_8h.html">crtp.h</a></div></div>
  109. <div class="ttc" id="classutl_1_1idx__dev_html_ac817369b5efb068d648328320a9cf6a4"><div class="ttname"><a href="classutl_1_1idx__dev.html#ac817369b5efb068d648328320a9cf6a4">utl::idx_dev::operator=</a></div><div class="ttdeci">idx_dev_t &amp; operator=(const idx_dev_t &amp;)=delete</div></div>
  110. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a2524b96ad86605bdadf47f54265154a7"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a2524b96ad86605bdadf47f54265154a7">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::cursor</a></div><div class="ttdeci">idx_t cursor() const</div><div class="ttdoc">Return the current cursor position. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00348">idx_dev.h:348</a></div></div>
  111. <div class="ttc" id="classutl_1_1idx__dev_html_a7b986ccd5cc6a2ece87dacdb0b8f0a0d"><div class="ttname"><a href="classutl_1_1idx__dev.html#a7b986ccd5cc6a2ece87dacdb0b8f0a0d">utl::idx_dev::put_</a></div><div class="ttdeci">size_t put_(const data_t &amp;data, idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00084">idx_dev.h:84</a></div></div>
  112. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a99e214886247aaff0567799ba7b5c6a9"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a99e214886247aaff0567799ba7b5c6a9">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00435">idx_dev.h:435</a></div></div>
  113. <div class="ttc" id="classutl_1_1idx__dev_html_af588d605d6968164cca3e348b5363613"><div class="ttname"><a href="classutl_1_1idx__dev.html#af588d605d6968164cca3e348b5363613">utl::idx_dev::put</a></div><div class="ttdeci">size_t put(const data_t &amp;data, idx_t cursor)</div><div class="ttdoc">Put interface. This function should send a single data_t object to device. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00129">idx_dev.h:129</a></div></div>
  114. <div class="ttc" id="classutl_1_1idx__dev_html_acc5ca7cdc56121ef7044ef89253b89b4"><div class="ttname"><a href="classutl_1_1idx__dev.html#acc5ca7cdc56121ef7044ef89253b89b4">utl::idx_dev::get_</a></div><div class="ttdeci">size_t get_(data_t &amp;data, idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00082">idx_dev.h:82</a></div></div>
  115. <div class="ttc" id="namespaceutl_html_ac5e425d39e8ee62e68664c6166d02d0c"><div class="ttname"><a href="namespaceutl.html#ac5e425d39e8ee62e68664c6166d02d0c">utl::use_if_same_t</a></div><div class="ttdeci">meta::eval&lt; meta::enable_if&lt; meta::same_&lt; _T1, _T2 &gt;::value, _Ret &gt; &gt; use_if_same_t</div><div class="ttdef"><b>Definition:</b> <a href="stl_8h_source.html#l00055">stl.h:55</a></div></div>
  116. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_afe8e2fc19d7b37a1b379a5f8302ef421"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#afe8e2fc19d7b37a1b379a5f8302ef421">utl::idx_dev_details::tryc_begin_t</a></div><div class="ttdeci">decltype(declval&lt; const _Tp &gt;().begin()) tryc_begin_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00487">idx_dev.h:487</a></div></div>
  117. <div class="ttc" id="classutl_1_1idx__dev_html_a814222014cab41a11fa8b2040e50310d"><div class="ttname"><a href="classutl_1_1idx__dev.html#a814222014cab41a11fa8b2040e50310d">utl::idx_dev::_CRTP_IMPL</a></div><div class="ttdeci">_CRTP_IMPL(impl_t)</div></div>
  118. <div class="ttc" id="classutl_1_1idx__dev_html_a83b186ed15e9bbe1e5d53e3941d517a7"><div class="ttname"><a href="classutl_1_1idx__dev.html#a83b186ed15e9bbe1e5d53e3941d517a7">utl::idx_dev::begin</a></div><div class="ttdeci">iterator begin() noexcept</div><div class="ttdoc">.begin implementation </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00234">idx_dev.h:234</a></div></div>
  119. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a4da6ff073a9f8452ebbd5371e017e4b9"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a4da6ff073a9f8452ebbd5371e017e4b9">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00439">idx_dev.h:439</a></div></div>
  120. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a21fdf221d18bb3a118950d51af0b2df6"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a21fdf221d18bb3a118950d51af0b2df6">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::pointer_type</a></div><div class="ttdeci">data_t * pointer_type</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00262">idx_dev.h:262</a></div></div>
  121. <div class="ttc" id="classutl_1_1idx__dev_html"><div class="ttname"><a href="classutl_1_1idx__dev.html">utl::idx_dev</a></div><div class="ttdoc">Abstract base class for indexed devices. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00056">idx_dev.h:56</a></div></div>
  122. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_adb8cac5f5772e513749038257a1f92df"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#adb8cac5f5772e513749038257a1f92df">utl::idx_dev_details::try_cend_t</a></div><div class="ttdeci">decltype(declval&lt; const _Tp &gt;().cend()) try_cend_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00491">idx_dev.h:491</a></div></div>
  123. <div class="ttc" id="namespaceutl_1_1meta_html_a55511dbaa0adb605ce22dcec11f8d22d"><div class="ttname"><a href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">utl::meta::false_</a></div><div class="ttdeci">bool_&lt; false &gt; false_</div><div class="ttdoc">The type used as a compile-time boolean with false value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00069">integral.h:69</a></div></div>
  124. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_a4cf6896009d70acdccfb55ba333fe7ef"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#a4cf6896009d70acdccfb55ba333fe7ef">utl::idx_dev_details::try_get2_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().get(declval&lt; typename _Tp::data_type * &gt;(), declval&lt; size_t &gt;())) try_get2_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00482">idx_dev.h:482</a></div></div>
  125. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_ad9166f4899994039eb64b6f63bcee621"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#ad9166f4899994039eb64b6f63bcee621">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::end</a></div><div class="ttdeci">iterator end() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00438">idx_dev.h:438</a></div></div>
  126. <div class="ttc" id="namespaceutl_html_a22cbecb50ee5c1032de66133e96cbac6"><div class="ttname"><a href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">utl::size_t</a></div><div class="ttdeci">std::size_t size_t</div><div class="ttdef"><b>Definition:</b> <a href="types_8h_source.html#l00037">types.h:37</a></div></div>
  127. <div class="ttc" id="namespaceutl_html"><div class="ttname"><a href="namespaceutl.html">utl</a></div><div class="ttdoc">STL&amp;#39;s core language concepts. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00030">_1wire.h:30</a></div></div>
  128. <div class="ttc" id="classutl_1_1idx__dev_html_aae291a2bb6788f85aa543861ccdb51c5"><div class="ttname"><a href="classutl_1_1idx__dev.html#aae291a2bb6788f85aa543861ccdb51c5">utl::idx_dev::end</a></div><div class="ttdeci">iterator end() noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00239">idx_dev.h:239</a></div></div>
  129. <div class="ttc" id="classutl_1_1idx__dev_html_aa8055ff3787876f243710ff194c7b8d0"><div class="ttname"><a href="classutl_1_1idx__dev.html#aa8055ff3787876f243710ff194c7b8d0">utl::idx_dev::idx_type</a></div><div class="ttdeci">idx_t idx_type</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00064">idx_dev.h:64</a></div></div>
  130. <div class="ttc" id="classutl_1_1idx__dev_html_afe9d6e2398154ac585db7c5972a671e6"><div class="ttname"><a href="classutl_1_1idx__dev.html#afe9d6e2398154ac585db7c5972a671e6">utl::idx_dev::idx_dev_t</a></div><div class="ttdeci">idx_dev&lt; impl_t, data_t, idx_t, N &gt; idx_dev_t</div><div class="ttdoc">class type syntactic sugar </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00058">idx_dev.h:58</a></div></div>
  131. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_aad6edb02a37f897cf4157f6345909ef1"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#aad6edb02a37f897cf4157f6345909ef1">utl::idx_dev_details::tryc_end_t</a></div><div class="ttdeci">decltype(declval&lt; const _Tp &gt;().begin()) tryc_end_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00490">idx_dev.h:490</a></div></div>
  132. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_ab85fa5de8595b6e56a6718ffb7d4edfe"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#ab85fa5de8595b6e56a6718ffb7d4edfe">utl::idx_dev_details::try_end_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().begin()) try_end_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00489">idx_dev.h:489</a></div></div>
  133. <div class="ttc" id="classutl_1_1idx__dev_html_a6ee37538b456c4b53b0bd4b3757b5edf"><div class="ttname"><a href="classutl_1_1idx__dev.html#a6ee37538b456c4b53b0bd4b3757b5edf">utl::idx_dev::cend</a></div><div class="ttdeci">const_iterator cend() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00241">idx_dev.h:241</a></div></div>
  134. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_a655c6de0d6d8f4ac3778f2fff8e9c7de"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#a655c6de0d6d8f4ac3778f2fff8e9c7de">utl::idx_dev_details::try_cbegin_t</a></div><div class="ttdeci">decltype(declval&lt; const _Tp &gt;().cbegin()) try_cbegin_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00488">idx_dev.h:488</a></div></div>
  135. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a58ee979bbc14205548db85cbfbed7aba"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a58ee979bbc14205548db85cbfbed7aba">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::put</a></div><div class="ttdeci">size_t put(const data_t *data, size_t n, idx_t cursor)</div><div class="ttdoc">Put interface. This function should send a stream of data_t objects to device. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00340">idx_dev.h:340</a></div></div>
  136. <div class="ttc" id="classutl_1_1idx__dev_html_a296be5211871773b2b8aa5409772ce6a"><div class="ttname"><a href="classutl_1_1idx__dev.html#a296be5211871773b2b8aa5409772ce6a">utl::idx_dev::operator&gt;&gt;</a></div><div class="ttdeci">idx_dev_t &amp; operator&gt;&gt;(_Dst_t &amp;dst)</div><div class="ttdoc">Template operator&gt;&gt; implementation for for all by value/ref parameters. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00170">idx_dev.h:170</a></div></div>
  137. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a413c6a4e5bc1c13ac0d78f5c3c228408"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a413c6a4e5bc1c13ac0d78f5c3c228408">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::cend</a></div><div class="ttdeci">const_iterator cend() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00440">idx_dev.h:440</a></div></div>
  138. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a0965be515cca243b76f571aa425cfd96"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a0965be515cca243b76f571aa425cfd96">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::iterator</a></div><div class="ttdeci">idxdev_it&lt; idx_dev_t, data_t *, N &gt; iterator</div><div class="ttdoc">Iterator. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00429">idx_dev.h:429</a></div></div>
  139. <div class="ttc" id="classutl_1_1idx__dev_html_aa72ce1d299e2e994b811f127e7ce133f"><div class="ttname"><a href="classutl_1_1idx__dev.html#aa72ce1d299e2e994b811f127e7ce133f">utl::idx_dev::cursor_</a></div><div class="ttdeci">void cursor_(idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00087">idx_dev.h:87</a></div></div>
  140. <div class="ttc" id="dev__iterators_8h_html"><div class="ttname"><a href="dev__iterators_8h.html">dev_iterators.h</a></div><div class="ttdoc">Iterator collection for devices. </div></div>
  141. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_a66a2229a8f511c9eb147072211bbda92"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#a66a2229a8f511c9eb147072211bbda92">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::const_iterator</a></div><div class="ttdeci">idxdev_it&lt; idx_dev_t, const data_t *, N &gt; const_iterator</div><div class="ttdoc">Const iterator. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00430">idx_dev.h:430</a></div></div>
  142. <div class="ttc" id="namespaceutl_1_1idx__dev__details_html_ac3a877d2f57d7c50b77456e0571112f0"><div class="ttname"><a href="namespaceutl_1_1idx__dev__details.html#ac3a877d2f57d7c50b77456e0571112f0">utl::idx_dev_details::try_get1_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().get(declval&lt; typename _Tp::data_type &amp; &gt;())) try_get1_t</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00481">idx_dev.h:481</a></div></div>
  143. <div class="ttc" id="classutl_1_1idx__dev_html_aef5b7b2d58b2502ea7e60cfc9835e9b6"><div class="ttname"><a href="classutl_1_1idx__dev.html#aef5b7b2d58b2502ea7e60cfc9835e9b6">utl::idx_dev::put_</a></div><div class="ttdeci">size_t put_(const data_t *data, size_t n, idx_t idx)</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00085">idx_dev.h:85</a></div></div>
  144. <div class="ttc" id="classutl_1_1idx__dev_html_ae1cf97364a8264b390b361fc6b54b389"><div class="ttname"><a href="classutl_1_1idx__dev.html#ae1cf97364a8264b390b361fc6b54b389">utl::idx_dev::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00240">idx_dev.h:240</a></div></div>
  145. <div class="ttc" id="classutl_1_1idx__dev_html_ac7fc9b499b2c4b73769b68d10181b08b"><div class="ttname"><a href="classutl_1_1idx__dev.html#ac7fc9b499b2c4b73769b68d10181b08b">utl::idx_dev::~idx_dev</a></div><div class="ttdeci">~idx_dev()=default</div><div class="ttdoc">Allow destructor from derived only. </div></div>
  146. <div class="ttc" id="namespaceutl_html_a80a0424d220ac1f7be50086617a05dbd"><div class="ttname"><a href="namespaceutl.html#a80a0424d220ac1f7be50086617a05dbd">utl::Idx_dev</a></div><div class="ttdeci">constexpr bool Idx_dev</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00523">idx_dev.h:523</a></div></div>
  147. <div class="ttc" id="structutl_1_1virtual__tag_html"><div class="ttname"><a href="structutl_1_1virtual__tag.html">utl::virtual_tag</a></div><div class="ttdoc">virtual support tag type </div><div class="ttdef"><b>Definition:</b> <a href="crtp_8h_source.html#l00040">crtp.h:40</a></div></div>
  148. <div class="ttc" id="classutl_1_1idx__dev_html_a7550b4dbfea20c02f4600821bf36dc0c"><div class="ttname"><a href="classutl_1_1idx__dev.html#a7550b4dbfea20c02f4600821bf36dc0c">utl::idx_dev::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00236">idx_dev.h:236</a></div></div>
  149. <div class="ttc" id="classutl_1_1idx__dev_html_ab49339f7ff0608ab460f0883224acb3c"><div class="ttname"><a href="classutl_1_1idx__dev.html#ab49339f7ff0608ab460f0883224acb3c">utl::idx_dev::cursor</a></div><div class="ttdeci">idx_t cursor(idx_t idx)</div><div class="ttdoc">Set the cursor position. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00156">idx_dev.h:156</a></div></div>
  150. <div class="ttc" id="classutl_1_1idx__dev_html_aa184474f9ccb50bf7e2763a072fe64c5"><div class="ttname"><a href="classutl_1_1idx__dev.html#aa184474f9ccb50bf7e2763a072fe64c5">utl::idx_dev::cursor_</a></div><div class="ttdeci">idx_t cursor_() const</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00086">idx_dev.h:86</a></div></div>
  151. <div class="ttc" id="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4_html_aa26f4d0326232c436f3a312edf89b7e1"><div class="ttname"><a href="classutl_1_1idx__dev_3_01virtual__tag_00_01data__t_00_01idx__t_00_01_n_01_4.html#aa26f4d0326232c436f3a312edf89b7e1">utl::idx_dev&lt; virtual_tag, data_t, idx_t, N &gt;::data_type</a></div><div class="ttdeci">data_t data_type</div><div class="ttdoc">Export types as index device concept demands. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00261">idx_dev.h:261</a></div></div>
  152. <div class="ttc" id="classutl_1_1idx__dev_html_a661ea93cc07a61ef208ab6f021f62907"><div class="ttname"><a href="classutl_1_1idx__dev.html#a661ea93cc07a61ef208ab6f021f62907">utl::idx_dev::operator&lt;&lt;</a></div><div class="ttdeci">idx_dev_t &amp; operator&lt;&lt;(_Src_t &amp;src)</div><div class="ttdoc">Template operator&lt;&lt; implementation for for all by value/ref parameters. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00198">idx_dev.h:198</a></div></div>
  153. <div class="ttc" id="classutl_1_1idx__dev_html_afa0e264f696f45c5a1b663c7c868a510"><div class="ttname"><a href="classutl_1_1idx__dev.html#afa0e264f696f45c5a1b663c7c868a510">utl::idx_dev::const_iterator</a></div><div class="ttdeci">idxdev_it&lt; idx_dev_t, const data_t *, N &gt; const_iterator</div><div class="ttdoc">Const iterator. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00231">idx_dev.h:231</a></div></div>
  154. <div class="ttc" id="classutl_1_1idx__dev_html_ace7a74e439972658d6006f83371ee0ca"><div class="ttname"><a href="classutl_1_1idx__dev.html#ace7a74e439972658d6006f83371ee0ca">utl::idx_dev::data_type</a></div><div class="ttdeci">data_t data_type</div><div class="ttdoc">Export types as index device concept demands. </div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00062">idx_dev.h:62</a></div></div>
  155. <div class="ttc" id="impl_8h_html"><div class="ttname"><a href="impl_8h.html">impl.h</a></div><div class="ttdoc">Implementation detail main forward header. </div></div>
  156. <div class="ttc" id="classutl_1_1idx__dev_html_acf054246b0c7c8be0a676fc1cf2b090c"><div class="ttname"><a href="classutl_1_1idx__dev.html#acf054246b0c7c8be0a676fc1cf2b090c">utl::idx_dev::pointer_type</a></div><div class="ttdeci">data_t * pointer_type</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00063">idx_dev.h:63</a></div></div>
  157. <div class="ttc" id="classutl_1_1idx__dev_html_ad456ced43be8ab4fb9a66840afa030f7"><div class="ttname"><a href="classutl_1_1idx__dev.html#ad456ced43be8ab4fb9a66840afa030f7">utl::idx_dev::begin</a></div><div class="ttdeci">const_iterator begin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="idx__dev_8h_source.html#l00235">idx_dev.h:235</a></div></div>
  158. </div><!-- fragment --></div><!-- contents -->
  159. </div><!-- doc-content -->
  160. <!-- start footer part -->
  161. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  162. <ul>
  163. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_e9da18de27e34a68f4aee9f9a960d991.html">dev</a></li><li class="navelem"><a class="el" href="idx__dev_8h.html">idx_dev.h</a></li>
  164. <li class="footer">Generated by
  165. <a href="http://www.doxygen.org/index.html">
  166. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  167. </ul>
  168. </div>
  169. </body>
  170. </html>