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< true, 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_3_01true_00_01_t_01_4.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_3_01true_00_01_t_01_4-members.html">List of all members</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">OptionalReferenceSwitch< true, 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< true, T >:</div> |
| 95 | <div class="dyncontent"> |
| 96 | <div class="center"> |
| 97 | <img src="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.png" usemap="#OptionalReferenceSwitch_3C_20true_2C_20T_20_3E_map" alt=""/> |
| 98 | <map id="OptionalReferenceSwitch_3C_20true_2C_20T_20_3E_map" name="OptionalReferenceSwitch_3C_20true_2C_20T_20_3E_map"> |
| 99 | <area href="classarmnn_1_1_optional_base.html" alt="OptionalBase" shape="rect" coords="0,0,217,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_3_01true_00_01_t_01_4.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 | <tr class="memitem:aa35457bd4f798de06bf5742117fbaf16"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#aa35457bd4f798de06bf5742117fbaf16">NonRefT</a> = typename std::remove_reference< T >::type</td></tr> |
| 108 | <tr class="separator:aa35457bd4f798de06bf5742117fbaf16"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | </table><table class="memberdecls"> |
| 110 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 111 | Public Member Functions</h2></td></tr> |
| 112 | <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_3_01true_00_01_t_01_4.html#ae0e39323497d71182ed4ff2c15f1e565">OptionalReferenceSwitch</a> () noexcept</td></tr> |
| 113 | <tr class="separator:ae0e39323497d71182ed4ff2c15f1e565"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <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_3_01true_00_01_t_01_4.html#a13961a32b21df02dad8c66e11995f006">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>) noexcept</td></tr> |
| 115 | <tr class="separator:a13961a32b21df02dad8c66e11995f006"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <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_3_01true_00_01_t_01_4.html#a66ffe2beacf3f0e66c2ccb21fcfba30f">OptionalReferenceSwitch</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> &other)</td></tr> |
| 117 | <tr class="separator:a66ffe2beacf3f0e66c2ccb21fcfba30f"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:a7f3f2d9ab25077e28a310bd9ca871556"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a7f3f2d9ab25077e28a310bd9ca871556">OptionalReferenceSwitch</a> (T <a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">value</a>)</td></tr> |
| 119 | <tr class="separator:a7f3f2d9ab25077e28a310bd9ca871556"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a3855e845e3ac598bd3e5048518219b0a"><td class="memTemplParams" colspan="2">template<class... Args> </td></tr> |
| 121 | <tr class="memitem:a3855e845e3ac598bd3e5048518219b0a"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a3855e845e3ac598bd3e5048518219b0a">OptionalReferenceSwitch</a> (<a class="el" href="structarmnn_1_1_construct_in_place.html">ConstructInPlace</a>, Args &&... args)=delete</td></tr> |
| 122 | <tr class="separator:a3855e845e3ac598bd3e5048518219b0a"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a079e5fefe2d24504f6742516fe515ffe"><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_3_01true_00_01_t_01_4.html#a079e5fefe2d24504f6742516fe515ffe">operator=</a> (const T <a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">value</a>)</td></tr> |
| 124 | <tr class="separator:a079e5fefe2d24504f6742516fe515ffe"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <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_3_01true_00_01_t_01_4.html#afcdbef8eae7fb1de8ea387da20dd369c">operator=</a> (const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> &other)</td></tr> |
| 126 | <tr class="separator:afcdbef8eae7fb1de8ea387da20dd369c"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <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_3_01true_00_01_t_01_4.html#affce7d7dd75fd7b406f5112bd54ac7d8">operator=</a> (<a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>)</td></tr> |
| 128 | <tr class="separator:affce7d7dd75fd7b406f5112bd54ac7d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <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_3_01true_00_01_t_01_4.html#abf0cbbed2029d141b8a8f1b39c7028f9">~OptionalReferenceSwitch</a> ()</td></tr> |
| 130 | <tr class="separator:abf0cbbed2029d141b8a8f1b39c7028f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <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_3_01true_00_01_t_01_4.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a> ()</td></tr> |
| 132 | <tr class="separator:ad20897c5c8bd47f5d4005989bead0e55"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:ab657408af6365dc01548c8befa2011bf"><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_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">value</a> () const</td></tr> |
| 134 | <tr class="separator:ab657408af6365dc01548c8befa2011bf"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a35cbddae445b41e7fca89827efecf90c"><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a35cbddae445b41e7fca89827efecf90c">value</a> ()</td></tr> |
| 136 | <tr class="separator:a35cbddae445b41e7fca89827efecf90c"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <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> |
| 138 | <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> |
| 139 | <tr class="separator:ac2bde2f7113f72440ad3638eeb4d06f6 inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <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> |
| 141 | <tr class="separator:a86b749ce2c4bc627fa8a1fcfaf0e314f inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <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> |
| 143 | <tr class="separator:a420e60e9788bfa3b52aa3aab72ea3a5e inherit pub_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | </table><table class="memberdecls"> |
| 145 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 146 | Additional Inherited Members</h2></td></tr> |
| 147 | <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> |
| 148 | <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> |
| 149 | <tr class="separator:a50b53f38c96fdf12c90890d2dfbb8719 inherit pro_methods_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <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> |
| 151 | <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> |
| 152 | <tr class="separator:a53e87efb7e1b2df3dc4420dafaf2ee7e inherit pro_attribs_classarmnn_1_1_optional_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | </table> |
| 154 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 155 | <div class="textblock"><h3>template<typename T><br /> |
| 156 | class armnn::OptionalReferenceSwitch< true, T ></h3> |
| 157 | |
| 158 | |
| 159 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00191">191</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 160 | </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| 161 | <a id="a13da864f1d4a5e3957ba70473f8fbf8d"></a> |
| 162 | <h2 class="memtitle"><span class="permalink"><a href="#a13da864f1d4a5e3957ba70473f8fbf8d">◆ </a></span>Base</h2> |
| 163 | |
| 164 | <div class="memitem"> |
| 165 | <div class="memproto"> |
| 166 | <table class="memname"> |
| 167 | <tr> |
| 168 | <td class="memname">using <a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a> = <a class="el" href="classarmnn_1_1_optional_base.html">OptionalBase</a></td> |
| 169 | </tr> |
| 170 | </table> |
| 171 | </div><div class="memdoc"> |
| 172 | |
| 173 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00194">194</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 174 | |
| 175 | </div> |
| 176 | </div> |
| 177 | <a id="aa35457bd4f798de06bf5742117fbaf16"></a> |
| 178 | <h2 class="memtitle"><span class="permalink"><a href="#aa35457bd4f798de06bf5742117fbaf16">◆ </a></span>NonRefT</h2> |
| 179 | |
| 180 | <div class="memitem"> |
| 181 | <div class="memproto"> |
| 182 | <table class="memname"> |
| 183 | <tr> |
| 184 | <td class="memname">using <a class="el" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#aa35457bd4f798de06bf5742117fbaf16">NonRefT</a> = typename std::remove_reference<T>::type</td> |
| 185 | </tr> |
| 186 | </table> |
| 187 | </div><div class="memdoc"> |
| 188 | |
| 189 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00195">195</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 190 | |
| 191 | </div> |
| 192 | </div> |
| 193 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 194 | <a id="ae0e39323497d71182ed4ff2c15f1e565"></a> |
| 195 | <h2 class="memtitle"><span class="permalink"><a href="#ae0e39323497d71182ed4ff2c15f1e565">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[1/5]</span></h2> |
| 196 | |
| 197 | <div class="memitem"> |
| 198 | <div class="memproto"> |
| 199 | <table class="mlabels"> |
| 200 | <tr> |
| 201 | <td class="mlabels-left"> |
| 202 | <table class="memname"> |
| 203 | <tr> |
| 204 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 205 | <td>(</td> |
| 206 | <td class="paramname"></td><td>)</td> |
| 207 | <td></td> |
| 208 | </tr> |
| 209 | </table> |
| 210 | </td> |
| 211 | <td class="mlabels-right"> |
| 212 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 213 | </tr> |
| 214 | </table> |
| 215 | </div><div class="memdoc"> |
| 216 | |
| 217 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00197">197</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 218 | <div class="fragment"><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> : <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}, m_Storage{<span class="keyword">nullptr</span>} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch< true, T >::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00194">Optional.hpp:194</a></div></div> |
| 219 | </div><!-- fragment --> |
| 220 | </div> |
| 221 | </div> |
| 222 | <a id="a13961a32b21df02dad8c66e11995f006"></a> |
| 223 | <h2 class="memtitle"><span class="permalink"><a href="#a13961a32b21df02dad8c66e11995f006">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[2/5]</span></h2> |
| 224 | |
| 225 | <div class="memitem"> |
| 226 | <div class="memproto"> |
| 227 | <table class="mlabels"> |
| 228 | <tr> |
| 229 | <td class="mlabels-left"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 233 | <td>(</td> |
| 234 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a> </td> |
| 235 | <td class="paramname"></td><td>)</td> |
| 236 | <td></td> |
| 237 | </tr> |
| 238 | </table> |
| 239 | </td> |
| 240 | <td class="mlabels-right"> |
| 241 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00198">198</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 247 | <div class="fragment"><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> : <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}, m_Storage{<span class="keyword">nullptr</span>} {}</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch< true, T >::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00194">Optional.hpp:194</a></div></div> |
| 248 | </div><!-- fragment --> |
| 249 | </div> |
| 250 | </div> |
| 251 | <a id="a66ffe2beacf3f0e66c2ccb21fcfba30f"></a> |
| 252 | <h2 class="memtitle"><span class="permalink"><a href="#a66ffe2beacf3f0e66c2ccb21fcfba30f">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[3/5]</span></h2> |
| 253 | |
| 254 | <div class="memitem"> |
| 255 | <div class="memproto"> |
| 256 | <table class="mlabels"> |
| 257 | <tr> |
| 258 | <td class="mlabels-left"> |
| 259 | <table class="memname"> |
| 260 | <tr> |
| 261 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 262 | <td>(</td> |
| 263 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>< <a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>, T > & </td> |
| 264 | <td class="paramname"><em>other</em></td><td>)</td> |
| 265 | <td></td> |
| 266 | </tr> |
| 267 | </table> |
| 268 | </td> |
| 269 | <td class="mlabels-right"> |
| 270 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 271 | </tr> |
| 272 | </table> |
| 273 | </div><div class="memdoc"> |
| 274 | |
| 275 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00200">200</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 276 | <div class="fragment"><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  : <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{}</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  {</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  *<span class="keyword">this</span> = other;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch< true, T >::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00194">Optional.hpp:194</a></div></div> |
| 277 | </div><!-- fragment --> |
| 278 | </div> |
| 279 | </div> |
| 280 | <a id="a7f3f2d9ab25077e28a310bd9ca871556"></a> |
| 281 | <h2 class="memtitle"><span class="permalink"><a href="#a7f3f2d9ab25077e28a310bd9ca871556">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[4/5]</span></h2> |
| 282 | |
| 283 | <div class="memitem"> |
| 284 | <div class="memproto"> |
| 285 | <table class="mlabels"> |
| 286 | <tr> |
| 287 | <td class="mlabels-left"> |
| 288 | <table class="memname"> |
| 289 | <tr> |
| 290 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 291 | <td>(</td> |
| 292 | <td class="paramtype">T </td> |
| 293 | <td class="paramname"><em>value</em></td><td>)</td> |
| 294 | <td></td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </td> |
| 298 | <td class="mlabels-right"> |
| 299 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 300 | </tr> |
| 301 | </table> |
| 302 | </div><div class="memdoc"> |
| 303 | |
| 304 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00205">205</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 305 | <div class="fragment"><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  : <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">Base</a>{<span class="keyword">true</span>}</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  , m_Storage{&<a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">value</a>}</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  {</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_a13da864f1d4a5e3957ba70473f8fbf8d"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#a13da864f1d4a5e3957ba70473f8fbf8d">armnn::OptionalReferenceSwitch< true, T >::Base</a></div><div class="ttdeci">OptionalBase Base</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00194">Optional.hpp:194</a></div></div> |
| 306 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_ab657408af6365dc01548c8befa2011bf"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">armnn::OptionalReferenceSwitch< true, T >::value</a></div><div class="ttdeci">const T value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00245">Optional.hpp:245</a></div></div> |
| 307 | </div><!-- fragment --> |
| 308 | </div> |
| 309 | </div> |
| 310 | <a id="a3855e845e3ac598bd3e5048518219b0a"></a> |
| 311 | <h2 class="memtitle"><span class="permalink"><a href="#a3855e845e3ac598bd3e5048518219b0a">◆ </a></span>OptionalReferenceSwitch() <span class="overload">[5/5]</span></h2> |
| 312 | |
| 313 | <div class="memitem"> |
| 314 | <div class="memproto"> |
| 315 | <table class="mlabels"> |
| 316 | <tr> |
| 317 | <td class="mlabels-left"> |
| 318 | <table class="memname"> |
| 319 | <tr> |
| 320 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 321 | <td>(</td> |
| 322 | <td class="paramtype"><a class="el" href="structarmnn_1_1_construct_in_place.html">ConstructInPlace</a> </td> |
| 323 | <td class="paramname">, </td> |
| 324 | </tr> |
| 325 | <tr> |
| 326 | <td class="paramkey"></td> |
| 327 | <td></td> |
| 328 | <td class="paramtype">Args &&... </td> |
| 329 | <td class="paramname"><em>args</em> </td> |
| 330 | </tr> |
| 331 | <tr> |
| 332 | <td></td> |
| 333 | <td>)</td> |
| 334 | <td></td><td></td> |
| 335 | </tr> |
| 336 | </table> |
| 337 | </td> |
| 338 | <td class="mlabels-right"> |
| 339 | <span class="mlabels"><span class="mlabel">delete</span></span> </td> |
| 340 | </tr> |
| 341 | </table> |
| 342 | </div><div class="memdoc"> |
| 343 | |
| 344 | </div> |
| 345 | </div> |
| 346 | <a id="abf0cbbed2029d141b8a8f1b39c7028f9"></a> |
| 347 | <h2 class="memtitle"><span class="permalink"><a href="#abf0cbbed2029d141b8a8f1b39c7028f9">◆ </a></span>~OptionalReferenceSwitch()</h2> |
| 348 | |
| 349 | <div class="memitem"> |
| 350 | <div class="memproto"> |
| 351 | <table class="mlabels"> |
| 352 | <tr> |
| 353 | <td class="mlabels-left"> |
| 354 | <table class="memname"> |
| 355 | <tr> |
| 356 | <td class="memname">~<a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a> </td> |
| 357 | <td>(</td> |
| 358 | <td class="paramname"></td><td>)</td> |
| 359 | <td></td> |
| 360 | </tr> |
| 361 | </table> |
| 362 | </td> |
| 363 | <td class="mlabels-right"> |
| 364 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 365 | </tr> |
| 366 | </table> |
| 367 | </div><div class="memdoc"> |
| 368 | |
| 369 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00234">234</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 370 | <div class="fragment"><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch< true, T >::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00239">Optional.hpp:239</a></div></div> |
| 371 | </div><!-- fragment --> |
| 372 | </div> |
| 373 | </div> |
| 374 | <h2 class="groupheader">Member Function Documentation</h2> |
| 375 | <a id="a079e5fefe2d24504f6742516fe515ffe"></a> |
| 376 | <h2 class="memtitle"><span class="permalink"><a href="#a079e5fefe2d24504f6742516fe515ffe">◆ </a></span>operator=() <span class="overload">[1/3]</span></h2> |
| 377 | |
| 378 | <div class="memitem"> |
| 379 | <div class="memproto"> |
| 380 | <table class="mlabels"> |
| 381 | <tr> |
| 382 | <td class="mlabels-left"> |
| 383 | <table class="memname"> |
| 384 | <tr> |
| 385 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 386 | <td>(</td> |
| 387 | <td class="paramtype">const T </td> |
| 388 | <td class="paramname"><em>value</em></td><td>)</td> |
| 389 | <td></td> |
| 390 | </tr> |
| 391 | </table> |
| 392 | </td> |
| 393 | <td class="mlabels-right"> |
| 394 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 395 | </tr> |
| 396 | </table> |
| 397 | </div><div class="memdoc"> |
| 398 | |
| 399 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00214">214</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 400 | <div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  m_Storage = &<a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">value</a>;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  Base::m_HasValue = <span class="keyword">true</span>;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_ab657408af6365dc01548c8befa2011bf"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ab657408af6365dc01548c8befa2011bf">armnn::OptionalReferenceSwitch< true, T >::value</a></div><div class="ttdeci">const T value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00245">Optional.hpp:245</a></div></div> |
| 401 | </div><!-- fragment --> |
| 402 | </div> |
| 403 | </div> |
| 404 | <a id="afcdbef8eae7fb1de8ea387da20dd369c"></a> |
| 405 | <h2 class="memtitle"><span class="permalink"><a href="#afcdbef8eae7fb1de8ea387da20dd369c">◆ </a></span>operator=() <span class="overload">[2/3]</span></h2> |
| 406 | |
| 407 | <div class="memitem"> |
| 408 | <div class="memproto"> |
| 409 | <table class="mlabels"> |
| 410 | <tr> |
| 411 | <td class="mlabels-left"> |
| 412 | <table class="memname"> |
| 413 | <tr> |
| 414 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 415 | <td>(</td> |
| 416 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>< <a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>, T > & </td> |
| 417 | <td class="paramname"><em>other</em></td><td>)</td> |
| 418 | <td></td> |
| 419 | </tr> |
| 420 | </table> |
| 421 | </td> |
| 422 | <td class="mlabels-right"> |
| 423 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 424 | </tr> |
| 425 | </table> |
| 426 | </div><div class="memdoc"> |
| 427 | |
| 428 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00221">221</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 429 | |
| 430 | <p class="reference">References <a class="el" href="_optional_8hpp_source.html#l00053">OptionalBase::has_value()</a>.</p> |
| 431 | <div class="fragment"><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  {</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  m_Storage = other.m_Storage;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  Base::m_HasValue = other.has_value();</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div></div><!-- fragment --> |
| 432 | </div> |
| 433 | </div> |
| 434 | <a id="affce7d7dd75fd7b406f5112bd54ac7d8"></a> |
| 435 | <h2 class="memtitle"><span class="permalink"><a href="#affce7d7dd75fd7b406f5112bd54ac7d8">◆ </a></span>operator=() <span class="overload">[3/3]</span></h2> |
| 436 | |
| 437 | <div class="memitem"> |
| 438 | <div class="memproto"> |
| 439 | <table class="mlabels"> |
| 440 | <tr> |
| 441 | <td class="mlabels-left"> |
| 442 | <table class="memname"> |
| 443 | <tr> |
| 444 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_reference_switch.html">OptionalReferenceSwitch</a>& operator= </td> |
| 445 | <td>(</td> |
| 446 | <td class="paramtype"><a class="el" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a> </td> |
| 447 | <td class="paramname"></td><td>)</td> |
| 448 | <td></td> |
| 449 | </tr> |
| 450 | </table> |
| 451 | </td> |
| 452 | <td class="mlabels-right"> |
| 453 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 454 | </tr> |
| 455 | </table> |
| 456 | </div><div class="memdoc"> |
| 457 | |
| 458 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00228">228</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 459 | <div class="fragment"><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  {</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.html#ad20897c5c8bd47f5d4005989bead0e55">armnn::OptionalReferenceSwitch< true, T >::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00239">Optional.hpp:239</a></div></div> |
| 460 | </div><!-- fragment --> |
| 461 | </div> |
| 462 | </div> |
| 463 | <a id="ad20897c5c8bd47f5d4005989bead0e55"></a> |
| 464 | <h2 class="memtitle"><span class="permalink"><a href="#ad20897c5c8bd47f5d4005989bead0e55">◆ </a></span>reset()</h2> |
| 465 | |
| 466 | <div class="memitem"> |
| 467 | <div class="memproto"> |
| 468 | <table class="mlabels"> |
| 469 | <tr> |
| 470 | <td class="mlabels-left"> |
| 471 | <table class="memname"> |
| 472 | <tr> |
| 473 | <td class="memname">void reset </td> |
| 474 | <td>(</td> |
| 475 | <td class="paramname"></td><td>)</td> |
| 476 | <td></td> |
| 477 | </tr> |
| 478 | </table> |
| 479 | </td> |
| 480 | <td class="mlabels-right"> |
| 481 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 482 | </tr> |
| 483 | </table> |
| 484 | </div><div class="memdoc"> |
| 485 | |
| 486 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00239">239</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 487 | <div class="fragment"><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  Base::m_HasValue = <span class="keyword">false</span>;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  m_Storage = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  }</div></div><!-- fragment --> |
| 488 | </div> |
| 489 | </div> |
| 490 | <a id="ab657408af6365dc01548c8befa2011bf"></a> |
| 491 | <h2 class="memtitle"><span class="permalink"><a href="#ab657408af6365dc01548c8befa2011bf">◆ </a></span>value() <span class="overload">[1/2]</span></h2> |
| 492 | |
| 493 | <div class="memitem"> |
| 494 | <div class="memproto"> |
| 495 | <table class="mlabels"> |
| 496 | <tr> |
| 497 | <td class="mlabels-left"> |
| 498 | <table class="memname"> |
| 499 | <tr> |
| 500 | <td class="memname">const T value </td> |
| 501 | <td>(</td> |
| 502 | <td class="paramname"></td><td>)</td> |
| 503 | <td> const</td> |
| 504 | </tr> |
| 505 | </table> |
| 506 | </td> |
| 507 | <td class="mlabels-right"> |
| 508 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 509 | </tr> |
| 510 | </table> |
| 511 | </div><div class="memdoc"> |
| 512 | |
| 513 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00245">245</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 514 | <div class="fragment"><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  {</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">if</span> (!Base::has_value())</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  {</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">throw</span> BadOptionalAccessException(<span class="stringliteral">"Optional has no value"</span>);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  }</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">return</span> *m_Storage;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div></div><!-- fragment --> |
| 515 | </div> |
| 516 | </div> |
| 517 | <a id="a35cbddae445b41e7fca89827efecf90c"></a> |
| 518 | <h2 class="memtitle"><span class="permalink"><a href="#a35cbddae445b41e7fca89827efecf90c">◆ </a></span>value() <span class="overload">[2/2]</span></h2> |
| 519 | |
| 520 | <div class="memitem"> |
| 521 | <div class="memproto"> |
| 522 | <table class="mlabels"> |
| 523 | <tr> |
| 524 | <td class="mlabels-left"> |
| 525 | <table class="memname"> |
| 526 | <tr> |
| 527 | <td class="memname">T value </td> |
| 528 | <td>(</td> |
| 529 | <td class="paramname"></td><td>)</td> |
| 530 | <td></td> |
| 531 | </tr> |
| 532 | </table> |
| 533 | </td> |
| 534 | <td class="mlabels-right"> |
| 535 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 536 | </tr> |
| 537 | </table> |
| 538 | </div><div class="memdoc"> |
| 539 | |
| 540 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.html#l00255">255</a> of file <a class="el" href="_optional_8hpp_source.html">Optional.hpp</a>.</p> |
| 541 | <div class="fragment"><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  {</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">if</span> (!Base::has_value())</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">throw</span> BadOptionalAccessException(<span class="stringliteral">"Optional has no value"</span>);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  }</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">return</span> *m_Storage;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  }</div></div><!-- fragment --> |
| 542 | </div> |
| 543 | </div> |
| 544 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 545 | <li>include/armnn/<a class="el" href="_optional_8hpp_source.html">Optional.hpp</a></li> |
| 546 | </ul> |
| 547 | </div><!-- contents --> |
| 548 | </div><!-- doc-content --> |
| 549 | <!-- start footer part --> |
| 550 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 551 | <ul> |
| 552 | <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_3_01true_00_01_t_01_4.html">OptionalReferenceSwitch< true, T ></a></li> |
| 553 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 554 | <a href="http://www.doxygen.org/index.html"> |
| 555 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 556 | </ul> |
| 557 | </div> |
| 558 | </body> |
| 559 | </html> |