Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: OptionalReferenceSwitch< IsReference, T > Class Template Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1_optional_reference_switch.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-types">Public Types</a> | |
| 99 | <a href="#pub-methods">Public Member Functions</a> | |
| 100 | <a href="classarmnn_1_1_optional_reference_switch-members.xhtml">List of all members</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">OptionalReferenceSwitch< IsReference, T > Class Template Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p>The default implementation is the non-reference case. |
| 107 | <a href="classarmnn_1_1_optional_reference_switch.xhtml#details">More...</a></p> |
| 108 | |
| 109 | <p><code>#include <<a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>></code></p> |
| 110 | <div class="dynheader"> |
| 111 | Inheritance diagram for OptionalReferenceSwitch< IsReference, T >:</div> |
| 112 | <div class="dyncontent"> |
| 113 | <div class="center"> |
| 114 | <img src="classarmnn_1_1_optional_reference_switch.png" usemap="#OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map" alt=""/> |
| 115 | <map id="OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map" name="OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map"> |
| 116 | <area href="classarmnn_1_1_optional_base.xhtml" title="OptionalBase is the common functionality between reference and non-reference optional types..." alt="OptionalBase" shape="rect" coords="0,0,263,24"/> |
| 117 | </map> |
| 118 | </div></div> |
| 119 | <table class="memberdecls"> |
| 120 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| 121 | Public Types</h2></td></tr> |
| 122 | <tr class="memitem:a13da864f1d4a5e3957ba70473f8fbf8d"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a> = <a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></td></tr> |
| 123 | <tr class="separator:a13da864f1d4a5e3957ba70473f8fbf8d"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | </table><table class="memberdecls"> |
| 125 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 126 | Public Member Functions</h2></td></tr> |
| 127 | <tr class="memitem:ae0e39323497d71182ed4ff2c15f1e565"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#ae0e39323497d71182ed4ff2c15f1e565">OptionalReferenceSwitch</a> () noexcept</td></tr> |
| 128 | <tr class="separator:ae0e39323497d71182ed4ff2c15f1e565"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a13961a32b21df02dad8c66e11995f006"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a13961a32b21df02dad8c66e11995f006">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_empty_optional.xhtml">EmptyOptional</a>) noexcept</td></tr> |
| 130 | <tr class="separator:a13961a32b21df02dad8c66e11995f006"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a6beefcffe9bf038690c90acd176c2263"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a6beefcffe9bf038690c90acd176c2263">OptionalReferenceSwitch</a> (const T &<a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>)</td></tr> |
| 132 | <tr class="separator:a6beefcffe9bf038690c90acd176c2263"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a4f012dc9cb58d868dc77bb3b4ba3a76d"><td class="memTemplParams" colspan="2">template<class... Args> </td></tr> |
| 134 | <tr class="memitem:a4f012dc9cb58d868dc77bb3b4ba3a76d"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a4f012dc9cb58d868dc77bb3b4ba3a76d">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_construct_in_place.xhtml">ConstructInPlace</a>, Args &&... args)</td></tr> |
| 135 | <tr class="separator:a4f012dc9cb58d868dc77bb3b4ba3a76d"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a66ffe2beacf3f0e66c2ccb21fcfba30f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a66ffe2beacf3f0e66c2ccb21fcfba30f">OptionalReferenceSwitch</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> &other)</td></tr> |
| 137 | <tr class="separator:a66ffe2beacf3f0e66c2ccb21fcfba30f"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:abe5947e3f9acc0738b3ef2ee4cf3547d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#abe5947e3f9acc0738b3ef2ee4cf3547d">operator=</a> (const T &<a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>)</td></tr> |
| 139 | <tr class="separator:abe5947e3f9acc0738b3ef2ee4cf3547d"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:afcdbef8eae7fb1de8ea387da20dd369c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#afcdbef8eae7fb1de8ea387da20dd369c">operator=</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> &other)</td></tr> |
| 141 | <tr class="separator:afcdbef8eae7fb1de8ea387da20dd369c"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:affce7d7dd75fd7b406f5112bd54ac7d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#affce7d7dd75fd7b406f5112bd54ac7d8">operator=</a> (<a class="el" href="structarmnn_1_1_empty_optional.xhtml">EmptyOptional</a>)</td></tr> |
| 143 | <tr class="separator:affce7d7dd75fd7b406f5112bd54ac7d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:abf0cbbed2029d141b8a8f1b39c7028f9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#abf0cbbed2029d141b8a8f1b39c7028f9">~OptionalReferenceSwitch</a> ()</td></tr> |
| 145 | <tr class="separator:abf0cbbed2029d141b8a8f1b39c7028f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:ad20897c5c8bd47f5d4005989bead0e55"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">reset</a> ()</td></tr> |
| 147 | <tr class="separator:ad20897c5c8bd47f5d4005989bead0e55"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:a77c7d528ac063d870b8c8426ec81c1c3"><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a> () const</td></tr> |
| 149 | <tr class="separator:a77c7d528ac063d870b8c8426ec81c1c3"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <tr class="memitem:a464298ad7afeafebbb149f566ecabbab"><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a464298ad7afeafebbb149f566ecabbab">value</a> ()</td></tr> |
| 151 | <tr class="separator:a464298ad7afeafebbb149f566ecabbab"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="inherit_header pub_methods_classarmnn_1_1_optional_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_optional_base')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></td></tr> |
| 153 | <tr class="memitem:ac2bde2f7113f72440ad3638eeb4d06f6 inherit pub_methods_classarmnn_1_1_optional_base"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#ac2bde2f7113f72440ad3638eeb4d06f6">OptionalBase</a> () noexcept</td></tr> |
| 154 | <tr class="separator:ac2bde2f7113f72440ad3638eeb4d06f6 inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a86b749ce2c4bc627fa8a1fcfaf0e314f inherit pub_methods_classarmnn_1_1_optional_base"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a> () const noexcept</td></tr> |
| 156 | <tr class="separator:a86b749ce2c4bc627fa8a1fcfaf0e314f inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a420e60e9788bfa3b52aa3aab72ea3a5e inherit pub_methods_classarmnn_1_1_optional_base"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a420e60e9788bfa3b52aa3aab72ea3a5e">operator bool</a> () const noexcept</td></tr> |
| 158 | <tr class="memdesc:a420e60e9788bfa3b52aa3aab72ea3a5e inherit pub_methods_classarmnn_1_1_optional_base"><td class="mdescLeft"> </td><td class="mdescRight">Conversion to bool, so can be used in if-statements and similar contexts expecting a bool. <a href="classarmnn_1_1_optional_base.xhtml#a420e60e9788bfa3b52aa3aab72ea3a5e">More...</a><br /></td></tr> |
| 159 | <tr class="separator:a420e60e9788bfa3b52aa3aab72ea3a5e inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | </table><table class="memberdecls"> |
| 161 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 162 | Additional Inherited Members</h2></td></tr> |
| 163 | <tr class="inherit_header pro_methods_classarmnn_1_1_optional_base"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_optional_base')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></td></tr> |
| 164 | <tr class="memitem:a50b53f38c96fdf12c90890d2dfbb8719 inherit pro_methods_classarmnn_1_1_optional_base"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a50b53f38c96fdf12c90890d2dfbb8719">OptionalBase</a> (bool hasValue) noexcept</td></tr> |
| 165 | <tr class="separator:a50b53f38c96fdf12c90890d2dfbb8719 inherit pro_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="inherit_header pro_attribs_classarmnn_1_1_optional_base"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classarmnn_1_1_optional_base')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></td></tr> |
| 167 | <tr class="memitem:a53e87efb7e1b2df3dc4420dafaf2ee7e inherit pro_attribs_classarmnn_1_1_optional_base"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a></td></tr> |
| 168 | <tr class="separator:a53e87efb7e1b2df3dc4420dafaf2ee7e inherit pro_attribs_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | </table> |
| 170 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 171 | <div class="textblock"><h3>template<bool IsReference, typename T><br /> |
| 172 | class armnn::OptionalReferenceSwitch< IsReference, T ></h3> |
| 173 | |
| 174 | <p>The default implementation is the non-reference case. </p> |
| 175 | <p>This has an unsigned char array for storing the optional value which is in-place constructed there. </p> |
| 176 | |
| 177 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00081">81</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 178 | </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| 179 | <a id="a13da864f1d4a5e3957ba70473f8fbf8d"></a> |
| 180 | <h2 class="memtitle"><span class="permalink"><a href="#a13da864f1d4a5e3957ba70473f8fbf8d">◆ </a></span>Base</h2> |
| 181 | |
| 182 | <div class="memitem"> |
| 183 | <div class="memproto"> |
| 184 | <table class="memname"> |
| 185 | <tr> |
| 186 | <td class="memname">using <a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a> = <a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></td> |
| 187 | </tr> |
| 188 | </table> |
| 189 | </div><div class="memdoc"> |
| 190 | |
| 191 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00084">84</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 192 | |
| 193 | </div> |
| 194 | </div> |
| 195 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 196 | <a id="ae0e39323497d71182ed4ff2c15f1e565"></a> |
| 197 | <h2 class="memtitle"><span class="permalink"><a href="#ae0e39323497d71182ed4ff2c15f1e565">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[1/5]</span></h2> |
| 198 | |
| 199 | <div class="memitem"> |
| 200 | <div class="memproto"> |
| 201 | <table class="mlabels"> |
| 202 | <tr> |
| 203 | <td class="mlabels-left"> |
| 204 | <table class="memname"> |
| 205 | <tr> |
| 206 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 207 | <td>(</td> |
| 208 | <td class="paramname"></td><td>)</td> |
| 209 | <td></td> |
| 210 | </tr> |
| 211 | </table> |
| 212 | </td> |
| 213 | <td class="mlabels-right"> |
| 214 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 215 | </tr> |
| 216 | </table> |
| 217 | </div><div class="memdoc"> |
| 218 | |
| 219 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00086">86</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 220 | <div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> : <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00084">Optional.hpp:84</a></div></div> |
| 221 | </div><!-- fragment --> |
| 222 | </div> |
| 223 | </div> |
| 224 | <a id="a13961a32b21df02dad8c66e11995f006"></a> |
| 225 | <h2 class="memtitle"><span class="permalink"><a href="#a13961a32b21df02dad8c66e11995f006">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[2/5]</span></h2> |
| 226 | |
| 227 | <div class="memitem"> |
| 228 | <div class="memproto"> |
| 229 | <table class="mlabels"> |
| 230 | <tr> |
| 231 | <td class="mlabels-left"> |
| 232 | <table class="memname"> |
| 233 | <tr> |
| 234 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 235 | <td>(</td> |
| 236 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.xhtml">EmptyOptional</a> </td> |
| 237 | <td class="paramname"></td><td>)</td> |
| 238 | <td></td> |
| 239 | </tr> |
| 240 | </table> |
| 241 | </td> |
| 242 | <td class="mlabels-right"> |
| 243 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 244 | </tr> |
| 245 | </table> |
| 246 | </div><div class="memdoc"> |
| 247 | |
| 248 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00087">87</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 249 | <div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> : <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00084">Optional.hpp:84</a></div></div> |
| 250 | </div><!-- fragment --> |
| 251 | </div> |
| 252 | </div> |
| 253 | <a id="a6beefcffe9bf038690c90acd176c2263"></a> |
| 254 | <h2 class="memtitle"><span class="permalink"><a href="#a6beefcffe9bf038690c90acd176c2263">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[3/5]</span></h2> |
| 255 | |
| 256 | <div class="memitem"> |
| 257 | <div class="memproto"> |
| 258 | <table class="mlabels"> |
| 259 | <tr> |
| 260 | <td class="mlabels-left"> |
| 261 | <table class="memname"> |
| 262 | <tr> |
| 263 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 264 | <td>(</td> |
| 265 | <td class="paramtype">const T & </td> |
| 266 | <td class="paramname"><em>value</em></td><td>)</td> |
| 267 | <td></td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </td> |
| 271 | <td class="mlabels-right"> |
| 272 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 273 | </tr> |
| 274 | </table> |
| 275 | </div><div class="memdoc"> |
| 276 | |
| 277 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00089">89</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 278 | <div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  : <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  Construct(<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00146">Optional.hpp:146</a></div></div> |
| 279 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00084">Optional.hpp:84</a></div></div> |
| 280 | </div><!-- fragment --> |
| 281 | </div> |
| 282 | </div> |
| 283 | <a id="a4f012dc9cb58d868dc77bb3b4ba3a76d"></a> |
| 284 | <h2 class="memtitle"><span class="permalink"><a href="#a4f012dc9cb58d868dc77bb3b4ba3a76d">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[4/5]</span></h2> |
| 285 | |
| 286 | <div class="memitem"> |
| 287 | <div class="memproto"> |
| 288 | <table class="mlabels"> |
| 289 | <tr> |
| 290 | <td class="mlabels-left"> |
| 291 | <table class="memname"> |
| 292 | <tr> |
| 293 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 294 | <td>(</td> |
| 295 | <td class="paramtype"><a class="el" href="structarmnn_1_1_construct_in_place.xhtml">ConstructInPlace</a> </td> |
| 296 | <td class="paramname">, </td> |
| 297 | </tr> |
| 298 | <tr> |
| 299 | <td class="paramkey"></td> |
| 300 | <td></td> |
| 301 | <td class="paramtype">Args &&... </td> |
| 302 | <td class="paramname"><em>args</em> </td> |
| 303 | </tr> |
| 304 | <tr> |
| 305 | <td></td> |
| 306 | <td>)</td> |
| 307 | <td></td><td></td> |
| 308 | </tr> |
| 309 | </table> |
| 310 | </td> |
| 311 | <td class="mlabels-right"> |
| 312 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 313 | </tr> |
| 314 | </table> |
| 315 | </div><div class="memdoc"> |
| 316 | |
| 317 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00096">96</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 318 | <div class="fragment"><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  : <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  Construct(<a class="code" href="_optional_8hpp.xhtml#acbec11f88a308826fa811f370d363a4a">CONSTRUCT_IN_PLACE</a>, std::forward<Args>(args)...);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div><div class="ttc" id="_optional_8hpp_xhtml_acbec11f88a308826fa811f370d363a4a"><div class="ttname"><a href="_optional_8hpp.xhtml#acbec11f88a308826fa811f370d363a4a">CONSTRUCT_IN_PLACE</a></div><div class="ttdeci">#define CONSTRUCT_IN_PLACE</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00041">Optional.hpp:41</a></div></div> |
| 319 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00084">Optional.hpp:84</a></div></div> |
| 320 | </div><!-- fragment --> |
| 321 | </div> |
| 322 | </div> |
| 323 | <a id="a66ffe2beacf3f0e66c2ccb21fcfba30f"></a> |
| 324 | <h2 class="memtitle"><span class="permalink"><a href="#a66ffe2beacf3f0e66c2ccb21fcfba30f">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[5/5]</span></h2> |
| 325 | |
| 326 | <div class="memitem"> |
| 327 | <div class="memproto"> |
| 328 | <table class="mlabels"> |
| 329 | <tr> |
| 330 | <td class="mlabels-left"> |
| 331 | <table class="memname"> |
| 332 | <tr> |
| 333 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 334 | <td>(</td> |
| 335 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a>< IsReference, T > & </td> |
| 336 | <td class="paramname"><em>other</em></td><td>)</td> |
| 337 | <td></td> |
| 338 | </tr> |
| 339 | </table> |
| 340 | </td> |
| 341 | <td class="mlabels-right"> |
| 342 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 343 | </tr> |
| 344 | </table> |
| 345 | </div><div class="memdoc"> |
| 346 | |
| 347 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00102">102</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 348 | <div class="fragment"><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  : <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  *<span class="keyword">this</span> = other;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00084">Optional.hpp:84</a></div></div> |
| 349 | </div><!-- fragment --> |
| 350 | </div> |
| 351 | </div> |
| 352 | <a id="abf0cbbed2029d141b8a8f1b39c7028f9"></a> |
| 353 | <h2 class="memtitle"><span class="permalink"><a href="#abf0cbbed2029d141b8a8f1b39c7028f9">◆ </a></span>~OptionalReferenceSwitch()</h2> |
| 354 | |
| 355 | <div class="memitem"> |
| 356 | <div class="memproto"> |
| 357 | <table class="mlabels"> |
| 358 | <tr> |
| 359 | <td class="mlabels-left"> |
| 360 | <table class="memname"> |
| 361 | <tr> |
| 362 | <td class="memname">~<a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a> </td> |
| 363 | <td>(</td> |
| 364 | <td class="paramname"></td><td>)</td> |
| 365 | <td></td> |
| 366 | </tr> |
| 367 | </table> |
| 368 | </td> |
| 369 | <td class="mlabels-right"> |
| 370 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 371 | </tr> |
| 372 | </table> |
| 373 | </div><div class="memdoc"> |
| 374 | |
| 375 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00132">132</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 376 | <div class="fragment"><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00137">Optional.hpp:137</a></div></div> |
| 377 | </div><!-- fragment --> |
| 378 | </div> |
| 379 | </div> |
| 380 | <h2 class="groupheader">Member Function Documentation</h2> |
| 381 | <a id="abe5947e3f9acc0738b3ef2ee4cf3547d"></a> |
| 382 | <h2 class="memtitle"><span class="permalink"><a href="#abe5947e3f9acc0738b3ef2ee4cf3547d">◆ </a></span>operator=() <span class="overload">[1/3]</span></h2> |
| 383 | |
| 384 | <div class="memitem"> |
| 385 | <div class="memproto"> |
| 386 | <table class="mlabels"> |
| 387 | <tr> |
| 388 | <td class="mlabels-left"> |
| 389 | <table class="memname"> |
| 390 | <tr> |
| 391 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a>& operator= </td> |
| 392 | <td>(</td> |
| 393 | <td class="paramtype">const T & </td> |
| 394 | <td class="paramname"><em>value</em></td><td>)</td> |
| 395 | <td></td> |
| 396 | </tr> |
| 397 | </table> |
| 398 | </td> |
| 399 | <td class="mlabels-right"> |
| 400 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 401 | </tr> |
| 402 | </table> |
| 403 | </div><div class="memdoc"> |
| 404 | |
| 405 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00108">108</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 406 | <div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  Construct(<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00146">Optional.hpp:146</a></div></div> |
| 407 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00137">Optional.hpp:137</a></div></div> |
| 408 | </div><!-- fragment --> |
| 409 | </div> |
| 410 | </div> |
| 411 | <a id="afcdbef8eae7fb1de8ea387da20dd369c"></a> |
| 412 | <h2 class="memtitle"><span class="permalink"><a href="#afcdbef8eae7fb1de8ea387da20dd369c">◆ </a></span>operator=() <span class="overload">[2/3]</span></h2> |
| 413 | |
| 414 | <div class="memitem"> |
| 415 | <div class="memproto"> |
| 416 | <table class="mlabels"> |
| 417 | <tr> |
| 418 | <td class="mlabels-left"> |
| 419 | <table class="memname"> |
| 420 | <tr> |
| 421 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a>& operator= </td> |
| 422 | <td>(</td> |
| 423 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a>< IsReference, T > & </td> |
| 424 | <td class="paramname"><em>other</em></td><td>)</td> |
| 425 | <td></td> |
| 426 | </tr> |
| 427 | </table> |
| 428 | </td> |
| 429 | <td class="mlabels-right"> |
| 430 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 431 | </tr> |
| 432 | </table> |
| 433 | </div><div class="memdoc"> |
| 434 | |
| 435 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00115">115</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 436 | <div class="fragment"><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span> (other.has_value())</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  Construct(other.value());</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00137">Optional.hpp:137</a></div></div> |
| 437 | </div><!-- fragment --> |
| 438 | </div> |
| 439 | </div> |
| 440 | <a id="affce7d7dd75fd7b406f5112bd54ac7d8"></a> |
| 441 | <h2 class="memtitle"><span class="permalink"><a href="#affce7d7dd75fd7b406f5112bd54ac7d8">◆ </a></span>operator=() <span class="overload">[3/3]</span></h2> |
| 442 | |
| 443 | <div class="memitem"> |
| 444 | <div class="memproto"> |
| 445 | <table class="mlabels"> |
| 446 | <tr> |
| 447 | <td class="mlabels-left"> |
| 448 | <table class="memname"> |
| 449 | <tr> |
| 450 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a>& operator= </td> |
| 451 | <td>(</td> |
| 452 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.xhtml">EmptyOptional</a> </td> |
| 453 | <td class="paramname"></td><td>)</td> |
| 454 | <td></td> |
| 455 | </tr> |
| 456 | </table> |
| 457 | </td> |
| 458 | <td class="mlabels-right"> |
| 459 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | |
| 464 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00126">126</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 465 | <div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00137">Optional.hpp:137</a></div></div> |
| 466 | </div><!-- fragment --> |
| 467 | </div> |
| 468 | </div> |
| 469 | <a id="ad20897c5c8bd47f5d4005989bead0e55"></a> |
| 470 | <h2 class="memtitle"><span class="permalink"><a href="#ad20897c5c8bd47f5d4005989bead0e55">◆ </a></span>reset()</h2> |
| 471 | |
| 472 | <div class="memitem"> |
| 473 | <div class="memproto"> |
| 474 | <table class="mlabels"> |
| 475 | <tr> |
| 476 | <td class="mlabels-left"> |
| 477 | <table class="memname"> |
| 478 | <tr> |
| 479 | <td class="memname">void reset </td> |
| 480 | <td>(</td> |
| 481 | <td class="paramname"></td><td>)</td> |
| 482 | <td></td> |
| 483 | </tr> |
| 484 | </table> |
| 485 | </td> |
| 486 | <td class="mlabels-right"> |
| 487 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 488 | </tr> |
| 489 | </table> |
| 490 | </div><div class="memdoc"> |
| 491 | |
| 492 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00137">137</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 493 | <div class="fragment"><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">Base::has_value</a>())</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>().T::~T();</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">Base::m_HasValue</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a53e87efb7e1b2df3dc4420dafaf2ee7e"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">armnn::OptionalBase::m_HasValue</a></div><div class="ttdeci">bool m_HasValue</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00072">Optional.hpp:72</a></div></div> |
| 494 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00146">Optional.hpp:146</a></div></div> |
| 495 | <div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00053">Optional.hpp:53</a></div></div> |
| 496 | </div><!-- fragment --> |
| 497 | </div> |
| 498 | </div> |
| 499 | <a id="a77c7d528ac063d870b8c8426ec81c1c3"></a> |
| 500 | <h2 class="memtitle"><span class="permalink"><a href="#a77c7d528ac063d870b8c8426ec81c1c3">◆ </a></span>value() <span class="overload">[1/2]</span></h2> |
| 501 | |
| 502 | <div class="memitem"> |
| 503 | <div class="memproto"> |
| 504 | <table class="mlabels"> |
| 505 | <tr> |
| 506 | <td class="mlabels-left"> |
| 507 | <table class="memname"> |
| 508 | <tr> |
| 509 | <td class="memname">const T& value </td> |
| 510 | <td>(</td> |
| 511 | <td class="paramname"></td><td>)</td> |
| 512 | <td> const</td> |
| 513 | </tr> |
| 514 | </table> |
| 515 | </td> |
| 516 | <td class="mlabels-right"> |
| 517 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 518 | </tr> |
| 519 | </table> |
| 520 | </div><div class="memdoc"> |
| 521 | |
| 522 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00146">146</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 523 | |
| 524 | <p class="reference">Referenced by <a class="el" href="_optional_test_8cpp_source.xhtml#l00063">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_workload_data_8cpp_source.xhtml#l00025">armnn::GetBiasDataType()</a>, <a class="el" href="_tensor_utils_8cpp_source.xhtml#l00152">armnnUtils::GetPerAxisParams()</a>, <a class="el" href="_optional_8hpp_source.xhtml#l00115">OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >::operator=()</a>, <a class="el" href="_serializer_8cpp_source.xhtml#l00300">SerializerVisitor::VisitConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.xhtml#l00357">SerializerVisitor::VisitDepthwiseConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.xhtml#l01002">SerializerVisitor::VisitFullyConnectedLayer()</a>, and <a class="el" href="_serializer_8cpp_source.xhtml#l01269">SerializerVisitor::VisitTransposeConvolution2dLayer()</a>.</p> |
| 525 | <div class="fragment"><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">Base::has_value</a>())</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">throw</span> BadOptionalAccessException(<span class="stringliteral">"Optional has no value"</span>);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">auto</span> valuePtr = <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span>T*<span class="keyword">></span>(m_Storage);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> *valuePtr;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00053">Optional.hpp:53</a></div></div> |
| 526 | </div><!-- fragment --> |
| 527 | </div> |
| 528 | </div> |
| 529 | <a id="a464298ad7afeafebbb149f566ecabbab"></a> |
| 530 | <h2 class="memtitle"><span class="permalink"><a href="#a464298ad7afeafebbb149f566ecabbab">◆ </a></span>value() <span class="overload">[2/2]</span></h2> |
| 531 | |
| 532 | <div class="memitem"> |
| 533 | <div class="memproto"> |
| 534 | <table class="mlabels"> |
| 535 | <tr> |
| 536 | <td class="mlabels-left"> |
| 537 | <table class="memname"> |
| 538 | <tr> |
| 539 | <td class="memname">T& value </td> |
| 540 | <td>(</td> |
| 541 | <td class="paramname"></td><td>)</td> |
| 542 | <td></td> |
| 543 | </tr> |
| 544 | </table> |
| 545 | </td> |
| 546 | <td class="mlabels-right"> |
| 547 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 548 | </tr> |
| 549 | </table> |
| 550 | </div><div class="memdoc"> |
| 551 | |
| 552 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00157">157</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 553 | <div class="fragment"><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  {</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">Base::has_value</a>())</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">throw</span> BadOptionalAccessException(<span class="stringliteral">"Optional has no value"</span>);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">auto</span> valuePtr = <span class="keyword">reinterpret_cast<</span>T*<span class="keyword">></span>(m_Storage);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">return</span> *valuePtr;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00053">Optional.hpp:53</a></div></div> |
| 554 | </div><!-- fragment --> |
| 555 | </div> |
| 556 | </div> |
| 557 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 558 | <li>include/armnn/<a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a></li> |
| 559 | </ul> |
| 560 | </div><!-- contents --> |
| 561 | </div><!-- doc-content --> |
| 562 | <!-- start footer part --> |
| 563 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 564 | <ul> |
| 565 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_optional_reference_switch.xhtml">OptionalReferenceSwitch</a></li> |
| 566 | <li class="footer">Generated on Fri Mar 13 2020 16:09:19 for ArmNN by |
| 567 | <a href="http://www.doxygen.org/index.html"> |
| 568 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 569 | </ul> |
| 570 | </div> |
| 571 | </body> |
| 572 | </html> |