Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

185 lines
16 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/in_dev.h File Reference</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('in__dev_8h.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="summary">
  88. <a href="#nested-classes">Classes</a> &#124;
  89. <a href="#namespaces">Namespaces</a> &#124;
  90. <a href="#typedef-members">Typedefs</a> </div>
  91. <div class="headertitle">
  92. <div class="title">in_dev.h File Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p>Abstract base class interface for input devices of utl.
  96. <a href="#details">More...</a></p>
  97. <div class="textblock"><code>#include &lt;<a class="el" href="impl_8h_source.html">utl/core/impl.h</a>&gt;</code><br />
  98. <code>#include &lt;<a class="el" href="crtp_8h_source.html">utl/core/crtp.h</a>&gt;</code><br />
  99. <code>#include &lt;<a class="el" href="dev__iterators_8h_source.html">utl/dev/dev_iterators.h</a>&gt;</code><br />
  100. <code>#include &lt;<a class="el" href="meta_8h_source.html">utl/meta/meta.h</a>&gt;</code><br />
  101. </div>
  102. <p><a href="in__dev_8h_source.html">Go to the source code of this file.</a></p>
  103. <table class="memberdecls">
  104. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  105. Classes</h2></td></tr>
  106. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1in__dev.html">utl::in_dev&lt; impl_t, data_t, streamsize &gt;</a></td></tr>
  107. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract base class for input devices. <a href="classutl_1_1in__dev.html#details">More...</a><br /></td></tr>
  108. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1in__dev_3_01virtual__tag_00_01data__t_00_01streamsize_01_4.html">utl::in_dev&lt; virtual_tag, data_t, streamsize &gt;</a></td></tr>
  110. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A virtual base class specialization. <a href="classutl_1_1in__dev_3_01virtual__tag_00_01data__t_00_01streamsize_01_4.html#details">More...</a><br /></td></tr>
  111. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1in__dev__details_1_1is__in__dev__.html">utl::in_dev_details::is_in_dev_&lt; _Tp, typename &gt;</a></td></tr>
  113. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Primary template to catch any non input device types. <a href="structutl_1_1in__dev__details_1_1is__in__dev__.html#details">More...</a><br /></td></tr>
  114. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1in__dev__details_1_1is__in__dev___3_01___tp_00_01void__t_3_01typename_01___tp_1_1dad922a62deb7c32e2cff18d66b8c887d2.html">utl::in_dev_details::is_in_dev_&lt; _Tp, void_t&lt; typename _Tp::data_type, typename _Tp::pointer_type, typename _Tp::iterator, typename _Tp::const_iterator, use_if_same_t&lt; try_get1_t&lt; _Tp &gt;, size_t &gt;, use_if_same_t&lt; try_get2_t&lt; _Tp &gt;, size_t &gt;, use_if_same_t&lt; try_begin_t&lt; _Tp &gt;, typename _Tp::iterator &gt;, use_if_same_t&lt; tryc_begin_t&lt; _Tp &gt;, typename _Tp::const_iterator &gt;, use_if_same_t&lt; try_cbegin_t&lt; _Tp &gt;, typename _Tp::const_iterator &gt;, use_if_same_t&lt; try_end_t&lt; _Tp &gt;, typename _Tp::iterator &gt;, use_if_same_t&lt; tryc_end_t&lt; _Tp &gt;, typename _Tp::const_iterator &gt;, use_if_same_t&lt; try_cend_t&lt; _Tp &gt;, typename _Tp::const_iterator &gt; &gt; &gt;</a></td></tr>
  116. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">template to catch a proper input device type <a href="structutl_1_1in__dev__details_1_1is__in__dev___3_01___tp_00_01void__t_3_01typename_01___tp_1_1dad922a62deb7c32e2cff18d66b8c887d2.html#details">More...</a><br /></td></tr>
  117. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. </table><table class="memberdecls">
  119. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
  120. Namespaces</h2></td></tr>
  121. <tr class="memitem:namespaceutl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl.html">utl</a></td></tr>
  122. <tr class="memdesc:namespaceutl"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
  123. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:namespaceutl_1_1in__dev__details"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html">utl::in_dev_details</a></td></tr>
  125. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. </table><table class="memberdecls">
  127. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  128. Typedefs</h2></td></tr>
  129. <tr class="memitem:a560eec1b326b0f6b91fa96f64f15ef61"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  130. <tr class="memitem:a560eec1b326b0f6b91fa96f64f15ef61"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#a560eec1b326b0f6b91fa96f64f15ef61">utl::in_dev_details::try_get1_t</a> = decltype(declval&lt; _Tp &gt;().get(declval&lt; typename _Tp::data_type &amp; &gt;()))</td></tr>
  131. <tr class="separator:a560eec1b326b0f6b91fa96f64f15ef61"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ae11bccc2282ed8f2aaac67687d756167"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  133. <tr class="memitem:ae11bccc2282ed8f2aaac67687d756167"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#ae11bccc2282ed8f2aaac67687d756167">utl::in_dev_details::try_get2_t</a> = decltype(declval&lt; _Tp &gt;().get(declval&lt; typename _Tp::data_type * &gt;(), declval&lt; size_t &gt;()))</td></tr>
  134. <tr class="separator:ae11bccc2282ed8f2aaac67687d756167"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:af790d5cec9db9f80cc8d67e9755e823e"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  136. <tr class="memitem:af790d5cec9db9f80cc8d67e9755e823e"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#af790d5cec9db9f80cc8d67e9755e823e">utl::in_dev_details::try_begin_t</a> = decltype(declval&lt; _Tp &gt;().begin())</td></tr>
  137. <tr class="separator:af790d5cec9db9f80cc8d67e9755e823e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:af7cb4a98688e65b04793cef145a90202"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  139. <tr class="memitem:af7cb4a98688e65b04793cef145a90202"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#af7cb4a98688e65b04793cef145a90202">utl::in_dev_details::tryc_begin_t</a> = decltype(declval&lt; const _Tp &gt;().begin())</td></tr>
  140. <tr class="separator:af7cb4a98688e65b04793cef145a90202"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a857d70a4119a4ff5615141d68e59ba7b"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  142. <tr class="memitem:a857d70a4119a4ff5615141d68e59ba7b"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#a857d70a4119a4ff5615141d68e59ba7b">utl::in_dev_details::try_cbegin_t</a> = decltype(declval&lt; const _Tp &gt;().cbegin())</td></tr>
  143. <tr class="separator:a857d70a4119a4ff5615141d68e59ba7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:acc72ca7012e26a9a0de8b08047dc9de8"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  145. <tr class="memitem:acc72ca7012e26a9a0de8b08047dc9de8"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#acc72ca7012e26a9a0de8b08047dc9de8">utl::in_dev_details::try_end_t</a> = decltype(declval&lt; _Tp &gt;().begin())</td></tr>
  146. <tr class="separator:acc72ca7012e26a9a0de8b08047dc9de8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:ad2dad6ed501b94ba1fa9cffade343762"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  148. <tr class="memitem:ad2dad6ed501b94ba1fa9cffade343762"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#ad2dad6ed501b94ba1fa9cffade343762">utl::in_dev_details::tryc_end_t</a> = decltype(declval&lt; const _Tp &gt;().begin())</td></tr>
  149. <tr class="separator:ad2dad6ed501b94ba1fa9cffade343762"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:ab268028c81d5385f19bbeb0c978ec9b2"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  151. <tr class="memitem:ab268028c81d5385f19bbeb0c978ec9b2"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1in__dev__details.html#ab268028c81d5385f19bbeb0c978ec9b2">utl::in_dev_details::try_cend_t</a> = decltype(declval&lt; const _Tp &gt;().cend())</td></tr>
  152. <tr class="separator:ab268028c81d5385f19bbeb0c978ec9b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. </table><table class="memberdecls">
  154. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  155. Variables</h2></td></tr>
  156. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  157. <tr class="memitem:a1470ab9407ee21ea374b2c7a81e3511b"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
  158. <tr class="memitem:a1470ab9407ee21ea374b2c7a81e3511b"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl.html#a1470ab9407ee21ea374b2c7a81e3511b">utl::In_dev</a> = in_dev_details::is_in_dev_ &lt;_Tp&gt;::value</td></tr>
  159. <tr class="separator:a1470ab9407ee21ea374b2c7a81e3511b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. </table>
  161. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  162. <div class="textblock"><p>Abstract base class interface for input devices of utl. </p>
  163. <p>Copyright (C) 2018 Christos Choutouridis</p>
  164. <p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
  165. <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
  166. <p>You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
  167. <p class="definition">Definition in file <a class="el" href="in__dev_8h_source.html">in_dev.h</a>.</p>
  168. </div></div><!-- contents -->
  169. </div><!-- doc-content -->
  170. <!-- start footer part -->
  171. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  172. <ul>
  173. <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="in__dev_8h.html">in_dev.h</a></li>
  174. <li class="footer">Generated by
  175. <a href="http://www.doxygen.org/index.html">
  176. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  177. </ul>
  178. </div>
  179. </body>
  180. </html>