Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: OptionalBase Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1_optional_base.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="#pro-methods">Protected Member Functions</a> | |
| 100 | <a href="#pro-attribs">Protected Attributes</a> | |
| 101 | <a href="classarmnn_1_1_optional_base-members.xhtml">List of all members</a> </div> |
| 102 | <div class="headertitle"> |
| 103 | <div class="title">OptionalBase Class Reference</div> </div> |
| 104 | </div><!--header--> |
| 105 | <div class="contents"> |
| 106 | |
| 107 | <p><a class="el" href="classarmnn_1_1_optional_base.xhtml" title="OptionalBase is the common functionality between reference and non-reference optional types...">OptionalBase</a> is the common functionality between reference and non-reference optional types. |
| 108 | <a href="classarmnn_1_1_optional_base.xhtml#details">More...</a></p> |
| 109 | |
| 110 | <p><code>#include <<a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>></code></p> |
| 111 | <div class="dynheader"> |
| 112 | Inheritance diagram for OptionalBase:</div> |
| 113 | <div class="dyncontent"> |
| 114 | <div class="center"> |
| 115 | <img src="classarmnn_1_1_optional_base.png" usemap="#OptionalBase_map" alt=""/> |
| 116 | <map id="OptionalBase_map" name="OptionalBase_map"> |
| 117 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" title="The default implementation is the non-reference case. " alt="OptionalReferenceSwitch< IsReference, T >" shape="rect" coords="953,56,1896,80"/> |
| 118 | <area href="classarmnn_1_1_optional_reference_switch_3_01true_00_01_t_01_4.xhtml" title="This is the special case for reference types. " alt="OptionalReferenceSwitch< true, T >" shape="rect" coords="953,112,1896,136"/> |
| 119 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< armnn::BackendId >::value, armnn::BackendId >" shape="rect" coords="953,168,1896,192"/> |
| 120 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< armnn::ConstTensor >::value, armnn::ConstTensor >" shape="rect" coords="953,224,1896,248"/> |
| 121 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< armnn::DynamicQuantizationVisitor >::value, armnn::DynamicQuantizationVisitor >" shape="rect" coords="953,280,1896,304"/> |
| 122 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< armnnTfLiteParser::ITfLiteParser::TfLiteParserOptions >::value, armnnTfLiteParser::ITfLiteParser::TfLiteParserOptions >" shape="rect" coords="953,336,1896,360"/> |
| 123 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >" shape="rect" coords="953,392,1896,416"/> |
| 124 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< T >::value, T >" shape="rect" coords="953,448,1896,472"/> |
| 125 | <area href="classarmnn_1_1_optional_reference_switch.xhtml" alt="OptionalReferenceSwitch< std::is_reference< unsigned int >::value, unsigned int >" shape="rect" coords="953,504,1896,528"/> |
| 126 | </map> |
| 127 | </div></div> |
| 128 | <table class="memberdecls"> |
| 129 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 130 | Public Member Functions</h2></td></tr> |
| 131 | <tr class="memitem:ac2bde2f7113f72440ad3638eeb4d06f6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#ac2bde2f7113f72440ad3638eeb4d06f6">OptionalBase</a> () noexcept</td></tr> |
| 132 | <tr class="separator:ac2bde2f7113f72440ad3638eeb4d06f6"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a86b749ce2c4bc627fa8a1fcfaf0e314f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a> () const noexcept</td></tr> |
| 134 | <tr class="separator:a86b749ce2c4bc627fa8a1fcfaf0e314f"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a420e60e9788bfa3b52aa3aab72ea3a5e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a420e60e9788bfa3b52aa3aab72ea3a5e">operator bool</a> () const noexcept</td></tr> |
| 136 | <tr class="memdesc:a420e60e9788bfa3b52aa3aab72ea3a5e"><td class="mdescLeft"> </td><td class="mdescRight">Conversion to bool, so can be used in if-statements and similar contexts expecting a bool. <a href="#a420e60e9788bfa3b52aa3aab72ea3a5e">More...</a><br /></td></tr> |
| 137 | <tr class="separator:a420e60e9788bfa3b52aa3aab72ea3a5e"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | </table><table class="memberdecls"> |
| 139 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 140 | Protected Member Functions</h2></td></tr> |
| 141 | <tr class="memitem:a50b53f38c96fdf12c90890d2dfbb8719"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a50b53f38c96fdf12c90890d2dfbb8719">OptionalBase</a> (bool hasValue) noexcept</td></tr> |
| 142 | <tr class="separator:a50b53f38c96fdf12c90890d2dfbb8719"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table><table class="memberdecls"> |
| 144 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a> |
| 145 | Protected Attributes</h2></td></tr> |
| 146 | <tr class="memitem:a53e87efb7e1b2df3dc4420dafaf2ee7e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a></td></tr> |
| 147 | <tr class="separator:a53e87efb7e1b2df3dc4420dafaf2ee7e"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | </table> |
| 149 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 150 | <div class="textblock"><p><a class="el" href="classarmnn_1_1_optional_base.xhtml" title="OptionalBase is the common functionality between reference and non-reference optional types...">OptionalBase</a> is the common functionality between reference and non-reference optional types. </p> |
| 151 | |
| 152 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00045">45</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 153 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 154 | <a id="ac2bde2f7113f72440ad3638eeb4d06f6"></a> |
| 155 | <h2 class="memtitle"><span class="permalink"><a href="#ac2bde2f7113f72440ad3638eeb4d06f6">◆ </a></span>OptionalBase() <span class="overload">[1/2]</span></h2> |
| 156 | |
| 157 | <div class="memitem"> |
| 158 | <div class="memproto"> |
| 159 | <table class="mlabels"> |
| 160 | <tr> |
| 161 | <td class="mlabels-left"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
| 164 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a> </td> |
| 165 | <td>(</td> |
| 166 | <td class="paramname"></td><td>)</td> |
| 167 | <td></td> |
| 168 | </tr> |
| 169 | </table> |
| 170 | </td> |
| 171 | <td class="mlabels-right"> |
| 172 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 173 | </tr> |
| 174 | </table> |
| 175 | </div><div class="memdoc"> |
| 176 | |
| 177 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00048">48</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 178 | <div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  : <a class="code" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a>{<span class="keyword">false</span>}</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a53e87efb7e1b2df3dc4420dafaf2ee7e"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">armnn::OptionalBase::m_HasValue</a></div><div class="ttdeci">bool m_HasValue</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00072">Optional.hpp:72</a></div></div> |
| 179 | </div><!-- fragment --> |
| 180 | </div> |
| 181 | </div> |
| 182 | <a id="a50b53f38c96fdf12c90890d2dfbb8719"></a> |
| 183 | <h2 class="memtitle"><span class="permalink"><a href="#a50b53f38c96fdf12c90890d2dfbb8719">◆ </a></span>OptionalBase() <span class="overload">[2/2]</span></h2> |
| 184 | |
| 185 | <div class="memitem"> |
| 186 | <div class="memproto"> |
| 187 | <table class="mlabels"> |
| 188 | <tr> |
| 189 | <td class="mlabels-left"> |
| 190 | <table class="memname"> |
| 191 | <tr> |
| 192 | <td class="memname"><a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a> </td> |
| 193 | <td>(</td> |
| 194 | <td class="paramtype">bool </td> |
| 195 | <td class="paramname"><em>hasValue</em></td><td>)</td> |
| 196 | <td></td> |
| 197 | </tr> |
| 198 | </table> |
| 199 | </td> |
| 200 | <td class="mlabels-right"> |
| 201 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td> |
| 202 | </tr> |
| 203 | </table> |
| 204 | </div><div class="memdoc"> |
| 205 | |
| 206 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00067">67</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 207 | <div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  : <a class="code" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a>{hasValue}</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a53e87efb7e1b2df3dc4420dafaf2ee7e"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">armnn::OptionalBase::m_HasValue</a></div><div class="ttdeci">bool m_HasValue</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00072">Optional.hpp:72</a></div></div> |
| 208 | </div><!-- fragment --> |
| 209 | </div> |
| 210 | </div> |
| 211 | <h2 class="groupheader">Member Function Documentation</h2> |
| 212 | <a id="a86b749ce2c4bc627fa8a1fcfaf0e314f"></a> |
| 213 | <h2 class="memtitle"><span class="permalink"><a href="#a86b749ce2c4bc627fa8a1fcfaf0e314f">◆ </a></span>has_value()</h2> |
| 214 | |
| 215 | <div class="memitem"> |
| 216 | <div class="memproto"> |
| 217 | <table class="mlabels"> |
| 218 | <tr> |
| 219 | <td class="mlabels-left"> |
| 220 | <table class="memname"> |
| 221 | <tr> |
| 222 | <td class="memname">bool has_value </td> |
| 223 | <td>(</td> |
| 224 | <td class="paramname"></td><td>)</td> |
| 225 | <td> const</td> |
| 226 | </tr> |
| 227 | </table> |
| 228 | </td> |
| 229 | <td class="mlabels-right"> |
| 230 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| 231 | </tr> |
| 232 | </table> |
| 233 | </div><div class="memdoc"> |
| 234 | |
| 235 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00053">53</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 236 | |
| 237 | <p class="reference">Referenced by <a class="el" href="_network_8cpp_source.xhtml#l01111">Network::AddConcatLayer()</a>, <a class="el" href="_network_8cpp_source.xhtml#l01155">Network::AddConvolution2dLayer()</a>, <a class="el" href="_network_8cpp_source.xhtml#l01058">Network::AddElementwiseUnaryLayer()</a>, <a class="el" href="_network_8cpp_source.xhtml#l01595">Network::AddTransposeConvolution2dLayer()</a>, <a class="el" href="_optional_test_8cpp_source.xhtml#l00029">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_test_layer_visitor_8cpp_source.xhtml#l00051">TestLayerVisitor::CheckOptionalConstTensors()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00439">CounterDirectory::Clear()</a>, <a class="el" href="_workload_data_8cpp_source.xhtml#l00025">armnn::GetBiasDataType()</a>, <a class="el" href="_ref_layer_support_8cpp_source.xhtml#l00419">RefLayerSupport::IsConvolution2dSupported()</a>, <a class="el" href="_ref_layer_support_8cpp_source.xhtml#l00551">RefLayerSupport::IsDepthwiseConvolutionSupported()</a>, <a class="el" href="_ref_layer_support_8cpp_source.xhtml#l01919">RefLayerSupport::IsTransposeConvolution2dSupported()</a>, <a class="el" href="_optional_8hpp_source.xhtml#l00115">OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >::operator=()</a>, <a class="el" href="_optional_8hpp_source.xhtml#l00221">OptionalReferenceSwitch< true, T >::operator=()</a>, <a class="el" href="_optional_8hpp_source.xhtml#l00287">Optional< armnnTfLiteParser::ITfLiteParser::TfLiteParserOptions >::operator==()</a>, <a class="el" href="_periodic_counter_selection_command_handler_8hpp_source.xhtml#l00035">PeriodicCounterSelectionCommandHandler::PeriodicCounterSelectionCommandHandler()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00181">CounterDirectory::RegisterCounter()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00114">CounterDirectory::RegisterCounterSet()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00052">CounterDirectory::RegisterDevice()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00201">VerifyTimelineEntityBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00232">VerifyTimelineEventBinaryPacket()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00056">VerifyTimelineLabelBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00120">VerifyTimelineRelationshipBinaryPacketData()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.xhtml#l00215">QuantizerVisitor::VisitConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.xhtml#l00300">SerializerVisitor::VisitConvolution2dLayer()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.xhtml#l00250">QuantizerVisitor::VisitDepthwiseConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.xhtml#l00357">SerializerVisitor::VisitDepthwiseConvolution2dLayer()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.xhtml#l00285">QuantizerVisitor::VisitFullyConnectedLayer()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.xhtml#l00536">QuantizerVisitor::VisitTransposeConvolution2dLayer()</a>, and <a class="el" href="_serializer_8cpp_source.xhtml#l01269">SerializerVisitor::VisitTransposeConvolution2dLayer()</a>.</p> |
| 238 | <div class="fragment"><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">m_HasValue</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a53e87efb7e1b2df3dc4420dafaf2ee7e"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a53e87efb7e1b2df3dc4420dafaf2ee7e">armnn::OptionalBase::m_HasValue</a></div><div class="ttdeci">bool m_HasValue</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00072">Optional.hpp:72</a></div></div> |
| 239 | </div><!-- fragment --> |
| 240 | </div> |
| 241 | </div> |
| 242 | <a id="a420e60e9788bfa3b52aa3aab72ea3a5e"></a> |
| 243 | <h2 class="memtitle"><span class="permalink"><a href="#a420e60e9788bfa3b52aa3aab72ea3a5e">◆ </a></span>operator bool()</h2> |
| 244 | |
| 245 | <div class="memitem"> |
| 246 | <div class="memproto"> |
| 247 | <table class="mlabels"> |
| 248 | <tr> |
| 249 | <td class="mlabels-left"> |
| 250 | <table class="memname"> |
| 251 | <tr> |
| 252 | <td class="memname">operator bool </td> |
| 253 | <td>(</td> |
| 254 | <td class="paramname"></td><td>)</td> |
| 255 | <td> const</td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </td> |
| 259 | <td class="mlabels-right"> |
| 260 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span><span class="mlabel">noexcept</span></span> </td> |
| 261 | </tr> |
| 262 | </table> |
| 263 | </div><div class="memdoc"> |
| 264 | |
| 265 | <p>Conversion to bool, so can be used in if-statements and similar contexts expecting a bool. </p> |
| 266 | <p>Note this is explicit so that it doesn't get implicitly converted to a bool in unwanted cases, for example "Optional<TypeA> == Optional<TypeB>" should not compile. </p> |
| 267 | |
| 268 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00061">61</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 269 | <div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00053">Optional.hpp:53</a></div></div> |
| 270 | </div><!-- fragment --> |
| 271 | </div> |
| 272 | </div> |
| 273 | <h2 class="groupheader">Member Data Documentation</h2> |
| 274 | <a id="a53e87efb7e1b2df3dc4420dafaf2ee7e"></a> |
| 275 | <h2 class="memtitle"><span class="permalink"><a href="#a53e87efb7e1b2df3dc4420dafaf2ee7e">◆ </a></span>m_HasValue</h2> |
| 276 | |
| 277 | <div class="memitem"> |
| 278 | <div class="memproto"> |
| 279 | <table class="mlabels"> |
| 280 | <tr> |
| 281 | <td class="mlabels-left"> |
| 282 | <table class="memname"> |
| 283 | <tr> |
| 284 | <td class="memname">bool m_HasValue</td> |
| 285 | </tr> |
| 286 | </table> |
| 287 | </td> |
| 288 | <td class="mlabels-right"> |
| 289 | <span class="mlabels"><span class="mlabel">protected</span></span> </td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </div><div class="memdoc"> |
| 293 | |
| 294 | <p class="definition">Definition at line <a class="el" href="_optional_8hpp_source.xhtml#l00072">72</a> of file <a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a>.</p> |
| 295 | |
| 296 | </div> |
| 297 | </div> |
| 298 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 299 | <li>include/armnn/<a class="el" href="_optional_8hpp_source.xhtml">Optional.hpp</a></li> |
| 300 | </ul> |
| 301 | </div><!-- contents --> |
| 302 | </div><!-- doc-content --> |
| 303 | <!-- start footer part --> |
| 304 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 305 | <ul> |
| 306 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_optional_base.xhtml">OptionalBase</a></li> |
| 307 | <li class="footer">Generated on Fri Mar 13 2020 16:09:19 for ArmNN by |
| 308 | <a href="http://www.doxygen.org/index.html"> |
| 309 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 310 | </ul> |
| 311 | </div> |
| 312 | </body> |
| 313 | </html> |