Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 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.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: OptionalReferenceSwitch< IsReference, T > Class Template 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 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_1_1_optional_reference_switch.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-types">Public Types</a> | |
| 85 | <a href="#pub-methods">Public Member Functions</a> | |
| 86 | <a href="classarmnn_1_1_optional_reference_switch-members.html">List of all members</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">OptionalReferenceSwitch< IsReference, T > Class Template Reference</div> </div> |
| 89 | </div><!--header--> |
| 90 | <div class="contents"> |
| 91 | |
| 92 | <p><code>#include <<a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>></code></p> |
| 93 | <div class="dynheader"> |
| 94 | Inheritance diagram for OptionalReferenceSwitch< IsReference, T >:</div> |
| 95 | <div class="dyncontent"> |
| 96 | <div class="center"> |
| 97 | <img src="classarmnn_1_1_optional_reference_switch.png" usemap="#OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map" alt=""/> |
| 98 | <map id="OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map" name="OptionalReferenceSwitch_3C_20IsReference_2C_20T_20_3E_map"> |
| 99 | <area href="classarmnn_1_1_optional_base.html" alt="OptionalBase" shape="rect" coords="0,0,263,24"/> |
| 100 | </map> |
| 101 | </div></div> |
| 102 | <table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| 104 | Public Types</h2></td></tr> |
| 105 | <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.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a> = <a class="el" href="classarmnn_1_1_optional_base.html">OptionalBase</a></td></tr> |
| 106 | <tr class="separator:a13da864f1d4a5e3957ba70473f8fbf8d"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | </table><table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 109 | Public Member Functions</h2></td></tr> |
| 110 | <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.html#ae0e39323497d71182ed4ff2c15f1e565">OptionalReferenceSwitch</a> () noexcept</td></tr> |
| 111 | <tr class="separator:ae0e39323497d71182ed4ff2c15f1e565"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <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.html#a13961a32b21df02dad8c66e11995f006">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>) noexcept</td></tr> |
| 113 | <tr class="separator:a13961a32b21df02dad8c66e11995f006"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <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.html#a6beefcffe9bf038690c90acd176c2263">OptionalReferenceSwitch</a> (const T &<a class="el" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>)</td></tr> |
| 115 | <tr class="separator:a6beefcffe9bf038690c90acd176c2263"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a4f012dc9cb58d868dc77bb3b4ba3a76d"><td class="memTemplParams" colspan="2">template<class... Args> </td></tr> |
| 117 | <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.html#a4f012dc9cb58d868dc77bb3b4ba3a76d">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_construct_in_place.html">ConstructInPlace</a>, Args &&... args)</td></tr> |
| 118 | <tr class="separator:a4f012dc9cb58d868dc77bb3b4ba3a76d"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <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.html#a66ffe2beacf3f0e66c2ccb21fcfba30f">OptionalReferenceSwitch</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> &other)</td></tr> |
| 120 | <tr class="separator:a66ffe2beacf3f0e66c2ccb21fcfba30f"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:abe5947e3f9acc0738b3ef2ee4cf3547d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.html#abe5947e3f9acc0738b3ef2ee4cf3547d">operator=</a> (const T &<a class="el" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>)</td></tr> |
| 122 | <tr class="separator:abe5947e3f9acc0738b3ef2ee4cf3547d"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:afcdbef8eae7fb1de8ea387da20dd369c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.html#afcdbef8eae7fb1de8ea387da20dd369c">operator=</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> &other)</td></tr> |
| 124 | <tr class="separator:afcdbef8eae7fb1de8ea387da20dd369c"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:affce7d7dd75fd7b406f5112bd54ac7d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch.html#affce7d7dd75fd7b406f5112bd54ac7d8">operator=</a> (<a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>)</td></tr> |
| 126 | <tr class="separator:affce7d7dd75fd7b406f5112bd54ac7d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <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.html#abf0cbbed2029d141b8a8f1b39c7028f9">~OptionalReferenceSwitch</a> ()</td></tr> |
| 128 | <tr class="separator:abf0cbbed2029d141b8a8f1b39c7028f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <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.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a> ()</td></tr> |
| 130 | <tr class="separator:ad20897c5c8bd47f5d4005989bead0e55"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <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.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a> () const</td></tr> |
| 132 | <tr class="separator:a77c7d528ac063d870b8c8426ec81c1c3"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <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.html#a464298ad7afeafebbb149f566ecabbab">value</a> ()</td></tr> |
| 134 | <tr class="separator:a464298ad7afeafebbb149f566ecabbab"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <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.html">OptionalBase</a></td></tr> |
| 136 | <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.html#ac2bde2f7113f72440ad3638eeb4d06f6">OptionalBase</a> () noexcept</td></tr> |
| 137 | <tr class="separator:ac2bde2f7113f72440ad3638eeb4d06f6 inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <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.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a> () const noexcept</td></tr> |
| 139 | <tr class="separator:a86b749ce2c4bc627fa8a1fcfaf0e314f inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <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.html#a420e60e9788bfa3b52aa3aab72ea3a5e">operator bool</a> () const noexcept</td></tr> |
| 141 | <tr class="separator:a420e60e9788bfa3b52aa3aab72ea3a5e inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | </table><table class="memberdecls"> |
| 143 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 144 | Additional Inherited Members</h2></td></tr> |
| 145 | <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.html">OptionalBase</a></td></tr> |
| 146 | <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.html#a50b53f38c96fdf12c90890d2dfbb8719">OptionalBase</a> (bool hasValue) noexcept</td></tr> |
| 147 | <tr class="separator:a50b53f38c96fdf12c90890d2dfbb8719 inherit pro_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <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.html">OptionalBase</a></td></tr> |
| 149 | <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.html#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a></td></tr> |
| 150 | <tr class="separator:a53e87efb7e1b2df3dc4420dafaf2ee7e inherit pro_attribs_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | </table> |
| 152 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 153 | <div class="textblock"><h3>template<bool IsReference, typename T><br /> |
| 154 | class armnn::OptionalReferenceSwitch< IsReference, T ></h3> |
| 155 | |
| 156 | |
| 157 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00081">81</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 158 | </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| 159 | <a id="a13da864f1d4a5e3957ba70473f8fbf8d"></a> |
| 160 | <h2 class="memtitle"><span class="permalink"><a href="#a13da864f1d4a5e3957ba70473f8fbf8d">◆ </a></span>Base</h2> |
| 161 | |
| 162 | <div class="memitem"> |
| 163 | <div class="memproto"> |
| 164 | <table class="memname"> |
| 165 | <tr> |
| 166 | <td class="memname">using <a class="el" href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a> = <a class="el" href="classarmnn_1_1_optional_base.html">OptionalBase</a></td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00084">84</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 172 | |
| 173 | </div> |
| 174 | </div> |
| 175 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 176 | <a id="ae0e39323497d71182ed4ff2c15f1e565"></a> |
| 177 | <h2 class="memtitle"><span class="permalink"><a href="#ae0e39323497d71182ed4ff2c15f1e565">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[1/5]</span></h2> |
| 178 | |
| 179 | <div class="memitem"> |
| 180 | <div class="memproto"> |
| 181 | <table class="mlabels"> |
| 182 | <tr> |
| 183 | <td class="mlabels-left"> |
| 184 | <table class="memname"> |
| 185 | <tr> |
| 186 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 187 | <td>(</td> |
| 188 | <td class="paramname"></td><td>)</td> |
| 189 | <td></td> |
| 190 | </tr> |
| 191 | </table> |
| 192 | </td> |
| 193 | <td class="mlabels-right"> |
| 194 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 195 | </tr> |
| 196 | </table> |
| 197 | </div><div class="memdoc"> |
| 198 | |
| 199 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00086">86</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 200 | <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.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00084">Optional.hpp:84</a></div></div> |
| 201 | </div><!-- fragment --> |
| 202 | </div> |
| 203 | </div> |
| 204 | <a id="a13961a32b21df02dad8c66e11995f006"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#a13961a32b21df02dad8c66e11995f006">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[2/5]</span></h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="mlabels"> |
| 210 | <tr> |
| 211 | <td class="mlabels-left"> |
| 212 | <table class="memname"> |
| 213 | <tr> |
| 214 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 215 | <td>(</td> |
| 216 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a> </td> |
| 217 | <td class="paramname"></td><td>)</td> |
| 218 | <td></td> |
| 219 | </tr> |
| 220 | </table> |
| 221 | </td> |
| 222 | <td class="mlabels-right"> |
| 223 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 224 | </tr> |
| 225 | </table> |
| 226 | </div><div class="memdoc"> |
| 227 | |
| 228 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00087">87</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 229 | <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.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00084">Optional.hpp:84</a></div></div> |
| 230 | </div><!-- fragment --> |
| 231 | </div> |
| 232 | </div> |
| 233 | <a id="a6beefcffe9bf038690c90acd176c2263"></a> |
| 234 | <h2 class="memtitle"><span class="permalink"><a href="#a6beefcffe9bf038690c90acd176c2263">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[3/5]</span></h2> |
| 235 | |
| 236 | <div class="memitem"> |
| 237 | <div class="memproto"> |
| 238 | <table class="mlabels"> |
| 239 | <tr> |
| 240 | <td class="mlabels-left"> |
| 241 | <table class="memname"> |
| 242 | <tr> |
| 243 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 244 | <td>(</td> |
| 245 | <td class="paramtype">const T & </td> |
| 246 | <td class="paramname"><em>value</em></td><td>)</td> |
| 247 | <td></td> |
| 248 | </tr> |
| 249 | </table> |
| 250 | </td> |
| 251 | <td class="mlabels-right"> |
| 252 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 253 | </tr> |
| 254 | </table> |
| 255 | </div><div class="memdoc"> |
| 256 | |
| 257 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00089">89</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 258 | <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.html#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.html#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_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00084">Optional.hpp:84</a></div></div> |
| 259 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#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.html#l00146">Optional.hpp:146</a></div></div> |
| 260 | </div><!-- fragment --> |
| 261 | </div> |
| 262 | </div> |
| 263 | <a id="a4f012dc9cb58d868dc77bb3b4ba3a76d"></a> |
| 264 | <h2 class="memtitle"><span class="permalink"><a href="#a4f012dc9cb58d868dc77bb3b4ba3a76d">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[4/5]</span></h2> |
| 265 | |
| 266 | <div class="memitem"> |
| 267 | <div class="memproto"> |
| 268 | <table class="mlabels"> |
| 269 | <tr> |
| 270 | <td class="mlabels-left"> |
| 271 | <table class="memname"> |
| 272 | <tr> |
| 273 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 274 | <td>(</td> |
| 275 | <td class="paramtype"><a class="el" href="structarmnn_1_1_construct_in_place.html">ConstructInPlace</a> </td> |
| 276 | <td class="paramname">, </td> |
| 277 | </tr> |
| 278 | <tr> |
| 279 | <td class="paramkey"></td> |
| 280 | <td></td> |
| 281 | <td class="paramtype">Args &&... </td> |
| 282 | <td class="paramname"><em>args</em> </td> |
| 283 | </tr> |
| 284 | <tr> |
| 285 | <td></td> |
| 286 | <td>)</td> |
| 287 | <td></td><td></td> |
| 288 | </tr> |
| 289 | </table> |
| 290 | </td> |
| 291 | <td class="mlabels-right"> |
| 292 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 293 | </tr> |
| 294 | </table> |
| 295 | </div><div class="memdoc"> |
| 296 | |
| 297 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00096">96</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 298 | <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.html#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.html#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_html_acbec11f88a308826fa811f370d363a4a"><div class="ttname"><a href="_optional_8hpp.html#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.html#l00041">Optional.hpp:41</a></div></div> |
| 299 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00084">Optional.hpp:84</a></div></div> |
| 300 | </div><!-- fragment --> |
| 301 | </div> |
| 302 | </div> |
| 303 | <a id="a66ffe2beacf3f0e66c2ccb21fcfba30f"></a> |
| 304 | <h2 class="memtitle"><span class="permalink"><a href="#a66ffe2beacf3f0e66c2ccb21fcfba30f">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[5/5]</span></h2> |
| 305 | |
| 306 | <div class="memitem"> |
| 307 | <div class="memproto"> |
| 308 | <table class="mlabels"> |
| 309 | <tr> |
| 310 | <td class="mlabels-left"> |
| 311 | <table class="memname"> |
| 312 | <tr> |
| 313 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 314 | <td>(</td> |
| 315 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>< IsReference, T > & </td> |
| 316 | <td class="paramname"><em>other</em></td><td>)</td> |
| 317 | <td></td> |
| 318 | </tr> |
| 319 | </table> |
| 320 | </td> |
| 321 | <td class="mlabels-right"> |
| 322 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </div><div class="memdoc"> |
| 326 | |
| 327 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00102">102</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 328 | <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.html#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_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00084">Optional.hpp:84</a></div></div> |
| 329 | </div><!-- fragment --> |
| 330 | </div> |
| 331 | </div> |
| 332 | <a id="abf0cbbed2029d141b8a8f1b39c7028f9"></a> |
| 333 | <h2 class="memtitle"><span class="permalink"><a href="#abf0cbbed2029d141b8a8f1b39c7028f9">◆ </a></span>~OptionalReferenceSwitch()</h2> |
| 334 | |
| 335 | <div class="memitem"> |
| 336 | <div class="memproto"> |
| 337 | <table class="mlabels"> |
| 338 | <tr> |
| 339 | <td class="mlabels-left"> |
| 340 | <table class="memname"> |
| 341 | <tr> |
| 342 | <td class="memname">~<a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 343 | <td>(</td> |
| 344 | <td class="paramname"></td><td>)</td> |
| 345 | <td></td> |
| 346 | </tr> |
| 347 | </table> |
| 348 | </td> |
| 349 | <td class="mlabels-right"> |
| 350 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 351 | </tr> |
| 352 | </table> |
| 353 | </div><div class="memdoc"> |
| 354 | |
| 355 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00132">132</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 356 | <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.html#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_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00137">Optional.hpp:137</a></div></div> |
| 357 | </div><!-- fragment --> |
| 358 | </div> |
| 359 | </div> |
| 360 | <h2 class="groupheader">Member Function Documentation</h2> |
| 361 | <a id="abe5947e3f9acc0738b3ef2ee4cf3547d"></a> |
| 362 | <h2 class="memtitle"><span class="permalink"><a href="#abe5947e3f9acc0738b3ef2ee4cf3547d">◆ </a></span>operator=() <span class="overload">[1/3]</span></h2> |
| 363 | |
| 364 | <div class="memitem"> |
| 365 | <div class="memproto"> |
| 366 | <table class="mlabels"> |
| 367 | <tr> |
| 368 | <td class="mlabels-left"> |
| 369 | <table class="memname"> |
| 370 | <tr> |
| 371 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 372 | <td>(</td> |
| 373 | <td class="paramtype">const T & </td> |
| 374 | <td class="paramname"><em>value</em></td><td>)</td> |
| 375 | <td></td> |
| 376 | </tr> |
| 377 | </table> |
| 378 | </td> |
| 379 | <td class="mlabels-right"> |
| 380 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 381 | </tr> |
| 382 | </table> |
| 383 | </div><div class="memdoc"> |
| 384 | |
| 385 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00108">108</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 386 | <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.html#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.html#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_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00137">Optional.hpp:137</a></div></div> |
| 387 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#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.html#l00146">Optional.hpp:146</a></div></div> |
| 388 | </div><!-- fragment --> |
| 389 | </div> |
| 390 | </div> |
| 391 | <a id="afcdbef8eae7fb1de8ea387da20dd369c"></a> |
| 392 | <h2 class="memtitle"><span class="permalink"><a href="#afcdbef8eae7fb1de8ea387da20dd369c">◆ </a></span>operator=() <span class="overload">[2/3]</span></h2> |
| 393 | |
| 394 | <div class="memitem"> |
| 395 | <div class="memproto"> |
| 396 | <table class="mlabels"> |
| 397 | <tr> |
| 398 | <td class="mlabels-left"> |
| 399 | <table class="memname"> |
| 400 | <tr> |
| 401 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 402 | <td>(</td> |
| 403 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>< IsReference, T > & </td> |
| 404 | <td class="paramname"><em>other</em></td><td>)</td> |
| 405 | <td></td> |
| 406 | </tr> |
| 407 | </table> |
| 408 | </td> |
| 409 | <td class="mlabels-right"> |
| 410 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 411 | </tr> |
| 412 | </table> |
| 413 | </div><div class="memdoc"> |
| 414 | |
| 415 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00115">115</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 416 | <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.html#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_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00137">Optional.hpp:137</a></div></div> |
| 417 | </div><!-- fragment --> |
| 418 | </div> |
| 419 | </div> |
| 420 | <a id="affce7d7dd75fd7b406f5112bd54ac7d8"></a> |
| 421 | <h2 class="memtitle"><span class="permalink"><a href="#affce7d7dd75fd7b406f5112bd54ac7d8">◆ </a></span>operator=() <span class="overload">[3/3]</span></h2> |
| 422 | |
| 423 | <div class="memitem"> |
| 424 | <div class="memproto"> |
| 425 | <table class="mlabels"> |
| 426 | <tr> |
| 427 | <td class="mlabels-left"> |
| 428 | <table class="memname"> |
| 429 | <tr> |
| 430 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 431 | <td>(</td> |
| 432 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a> </td> |
| 433 | <td class="paramname"></td><td>)</td> |
| 434 | <td></td> |
| 435 | </tr> |
| 436 | </table> |
| 437 | </td> |
| 438 | <td class="mlabels-right"> |
| 439 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 440 | </tr> |
| 441 | </table> |
| 442 | </div><div class="memdoc"> |
| 443 | |
| 444 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00126">126</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 445 | <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.html#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_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00137">Optional.hpp:137</a></div></div> |
| 446 | </div><!-- fragment --> |
| 447 | </div> |
| 448 | </div> |
| 449 | <a id="ad20897c5c8bd47f5d4005989bead0e55"></a> |
| 450 | <h2 class="memtitle"><span class="permalink"><a href="#ad20897c5c8bd47f5d4005989bead0e55">◆ </a></span>reset()</h2> |
| 451 | |
| 452 | <div class="memitem"> |
| 453 | <div class="memproto"> |
| 454 | <table class="mlabels"> |
| 455 | <tr> |
| 456 | <td class="mlabels-left"> |
| 457 | <table class="memname"> |
| 458 | <tr> |
| 459 | <td class="memname">void reset </td> |
| 460 | <td>(</td> |
| 461 | <td class="paramname"></td><td>)</td> |
| 462 | <td></td> |
| 463 | </tr> |
| 464 | </table> |
| 465 | </td> |
| 466 | <td class="mlabels-right"> |
| 467 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 468 | </tr> |
| 469 | </table> |
| 470 | </div><div class="memdoc"> |
| 471 | |
| 472 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00137">137</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 473 | <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.html#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.html#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.html#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_html_a53e87efb7e1b2df3dc4420dafaf2ee7e"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#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.html#l00072">Optional.hpp:72</a></div></div> |
| 474 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#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.html#l00053">Optional.hpp:53</a></div></div> |
| 475 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#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.html#l00146">Optional.hpp:146</a></div></div> |
| 476 | </div><!-- fragment --> |
| 477 | </div> |
| 478 | </div> |
| 479 | <a id="a77c7d528ac063d870b8c8426ec81c1c3"></a> |
| 480 | <h2 class="memtitle"><span class="permalink"><a href="#a77c7d528ac063d870b8c8426ec81c1c3">◆ </a></span>value() <span class="overload">[1/2]</span></h2> |
| 481 | |
| 482 | <div class="memitem"> |
| 483 | <div class="memproto"> |
| 484 | <table class="mlabels"> |
| 485 | <tr> |
| 486 | <td class="mlabels-left"> |
| 487 | <table class="memname"> |
| 488 | <tr> |
| 489 | <td class="memname">const T& value </td> |
| 490 | <td>(</td> |
| 491 | <td class="paramname"></td><td>)</td> |
| 492 | <td> const</td> |
| 493 | </tr> |
| 494 | </table> |
| 495 | </td> |
| 496 | <td class="mlabels-right"> |
| 497 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 498 | </tr> |
| 499 | </table> |
| 500 | </div><div class="memdoc"> |
| 501 | |
| 502 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00146">146</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 503 | |
| 504 | <p class="reference">Referenced by <a class="el" href="_optional_test_8cpp_source.html#l00063">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_workload_data_8cpp_source.html#l00025">armnn::GetBiasDataType()</a>, <a class="el" href="_tensor_utils_8cpp_source.html#l00152">armnnUtils::GetPerAxisParams()</a>, <a class="el" href="_optional_8hpp_source.html#l00115">OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >::operator=()</a>, <a class="el" href="_serializer_8cpp_source.html#l00296">SerializerVisitor::VisitConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00353">SerializerVisitor::VisitDepthwiseConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00998">SerializerVisitor::VisitFullyConnectedLayer()</a>, and <a class="el" href="_serializer_8cpp_source.html#l01265">SerializerVisitor::VisitTransposeConvolution2dLayer()</a>.</p> |
| 505 | <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.html#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_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#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.html#l00053">Optional.hpp:53</a></div></div> |
| 506 | </div><!-- fragment --> |
| 507 | </div> |
| 508 | </div> |
| 509 | <a id="a464298ad7afeafebbb149f566ecabbab"></a> |
| 510 | <h2 class="memtitle"><span class="permalink"><a href="#a464298ad7afeafebbb149f566ecabbab">◆ </a></span>value() <span class="overload">[2/2]</span></h2> |
| 511 | |
| 512 | <div class="memitem"> |
| 513 | <div class="memproto"> |
| 514 | <table class="mlabels"> |
| 515 | <tr> |
| 516 | <td class="mlabels-left"> |
| 517 | <table class="memname"> |
| 518 | <tr> |
| 519 | <td class="memname">T& value </td> |
| 520 | <td>(</td> |
| 521 | <td class="paramname"></td><td>)</td> |
| 522 | <td></td> |
| 523 | </tr> |
| 524 | </table> |
| 525 | </td> |
| 526 | <td class="mlabels-right"> |
| 527 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 528 | </tr> |
| 529 | </table> |
| 530 | </div><div class="memdoc"> |
| 531 | |
| 532 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00157">157</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 533 | <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.html#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_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#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.html#l00053">Optional.hpp:53</a></div></div> |
| 534 | </div><!-- fragment --> |
| 535 | </div> |
| 536 | </div> |
| 537 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 538 | <li>include/armnn/<a class="el" href="_optional_8hpp_source.html">Optional.hpp</a></li> |
| 539 | </ul> |
| 540 | </div><!-- contents --> |
| 541 | </div><!-- doc-content --> |
| 542 | <!-- start footer part --> |
| 543 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 544 | <ul> |
| 545 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a></li> |
| 546 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 547 | <a href="http://www.doxygen.org/index.html"> |
| 548 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 549 | </ul> |
| 550 | </div> |
| 551 | </body> |
| 552 | </html> |