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: JsonPrinter Class 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_json_printer.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-methods">Public Member Functions</a> | |
| 85 | <a href="classarmnn_1_1_json_printer-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">JsonPrinter Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_json_printer_8hpp_source.html">JsonPrinter.hpp</a>></code></p> |
| 92 | <table class="memberdecls"> |
| 93 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 94 | Public Member Functions</h2></td></tr> |
| 95 | <tr class="memitem:aeb76c875ee2792a79924bac85b9eacac"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#aeb76c875ee2792a79924bac85b9eacac">PrintJsonChildObject</a> (const <a class="el" href="structarmnn_1_1_json_child_object.html">JsonChildObject</a> &object, size_t &id)</td></tr> |
| 96 | <tr class="separator:aeb76c875ee2792a79924bac85b9eacac"><td class="memSeparator" colspan="2"> </td></tr> |
| 97 | <tr class="memitem:adaa4d19c25f5fab4804cc8b1d38a68aa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#adaa4d19c25f5fab4804cc8b1d38a68aa">PrintHeader</a> ()</td></tr> |
| 98 | <tr class="separator:adaa4d19c25f5fab4804cc8b1d38a68aa"><td class="memSeparator" colspan="2"> </td></tr> |
| 99 | <tr class="memitem:ad3566ce453b36aa0c4294d54980107ca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#ad3566ce453b36aa0c4294d54980107ca">PrintArmNNHeader</a> ()</td></tr> |
| 100 | <tr class="separator:ad3566ce453b36aa0c4294d54980107ca"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:ad4aadb70bfaa3b841d94a9508b2245d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#ad4aadb70bfaa3b841d94a9508b2245d3">PrintFooter</a> ()</td></tr> |
| 102 | <tr class="separator:ad4aadb70bfaa3b841d94a9508b2245d3"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:a2a154fc2c71f9ee4dd4c3504d22e5278"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#a2a154fc2c71f9ee4dd4c3504d22e5278">PrintSeparator</a> ()</td></tr> |
| 104 | <tr class="separator:a2a154fc2c71f9ee4dd4c3504d22e5278"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:abfd916a652a231df472d86da7e91d74b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">PrintNewLine</a> ()</td></tr> |
| 106 | <tr class="separator:abfd916a652a231df472d86da7e91d74b"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:abda40105d959e39ea71bfee18ec1917e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#abda40105d959e39ea71bfee18ec1917e">PrintLabel</a> (const std::string &label, size_t id)</td></tr> |
| 108 | <tr class="separator:abda40105d959e39ea71bfee18ec1917e"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a8b69ba8150dd84a8a5b7912cc70a5b36"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#a8b69ba8150dd84a8a5b7912cc70a5b36">PrintUnit</a> (<a class="el" href="structarmnn_1_1_measurement.html#abceb2331ad056e3c5ad27894199a49ed">armnn::Measurement::Unit</a> unit)</td></tr> |
| 110 | <tr class="separator:a8b69ba8150dd84a8a5b7912cc70a5b36"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a6cff9caa58261b5d8274d97a8a9b9bd5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#a6cff9caa58261b5d8274d97a8a9b9bd5">PrintType</a> (<a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262a">armnn::JsonObjectType</a> type)</td></tr> |
| 112 | <tr class="separator:a6cff9caa58261b5d8274d97a8a9b9bd5"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a2ef62f27474c57322303b140ddf382dd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#a2ef62f27474c57322303b140ddf382dd">PrintMeasurementsList</a> (const std::vector< double > &measurementsVector)</td></tr> |
| 114 | <tr class="separator:a2ef62f27474c57322303b140ddf382dd"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:af389972aca4b65afab1e230068bc7ba4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_json_printer.html#af389972aca4b65afab1e230068bc7ba4">JsonPrinter</a> (std::ostream &outputStream)</td></tr> |
| 116 | <tr class="separator:af389972aca4b65afab1e230068bc7ba4"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | </table> |
| 118 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 119 | <div class="textblock"> |
| 120 | <p class="definition">Definition at line <a class="el" href="_json_printer_8hpp_source.html#l00078">78</a> of file <a class="el" href="_json_printer_8hpp_source.html">JsonPrinter.hpp</a>.</p> |
| 121 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 122 | <a id="af389972aca4b65afab1e230068bc7ba4"></a> |
| 123 | <h2 class="memtitle"><span class="permalink"><a href="#af389972aca4b65afab1e230068bc7ba4">◆ </a></span>JsonPrinter()</h2> |
| 124 | |
| 125 | <div class="memitem"> |
| 126 | <div class="memproto"> |
| 127 | <table class="mlabels"> |
| 128 | <tr> |
| 129 | <td class="mlabels-left"> |
| 130 | <table class="memname"> |
| 131 | <tr> |
| 132 | <td class="memname"><a class="el" href="classarmnn_1_1_json_printer.html">JsonPrinter</a> </td> |
| 133 | <td>(</td> |
| 134 | <td class="paramtype">std::ostream & </td> |
| 135 | <td class="paramname"><em>outputStream</em></td><td>)</td> |
| 136 | <td></td> |
| 137 | </tr> |
| 138 | </table> |
| 139 | </td> |
| 140 | <td class="mlabels-right"> |
| 141 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 142 | </tr> |
| 143 | </table> |
| 144 | </div><div class="memdoc"> |
| 145 | |
| 146 | <p class="definition">Definition at line <a class="el" href="_json_printer_8hpp_source.html#l00093">93</a> of file <a class="el" href="_json_printer_8hpp_source.html">JsonPrinter.hpp</a>.</p> |
| 147 | <div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  : m_OutputStream(outputStream), m_NumTabs(0)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {}</div></div><!-- fragment --> |
| 148 | </div> |
| 149 | </div> |
| 150 | <h2 class="groupheader">Member Function Documentation</h2> |
| 151 | <a id="ad3566ce453b36aa0c4294d54980107ca"></a> |
| 152 | <h2 class="memtitle"><span class="permalink"><a href="#ad3566ce453b36aa0c4294d54980107ca">◆ </a></span>PrintArmNNHeader()</h2> |
| 153 | |
| 154 | <div class="memitem"> |
| 155 | <div class="memproto"> |
| 156 | <table class="memname"> |
| 157 | <tr> |
| 158 | <td class="memname">void PrintArmNNHeader </td> |
| 159 | <td>(</td> |
| 160 | <td class="paramname"></td><td>)</td> |
| 161 | <td></td> |
| 162 | </tr> |
| 163 | </table> |
| 164 | </div><div class="memdoc"> |
| 165 | |
| 166 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00063">63</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 167 | |
| 168 | <p class="reference">Referenced by <a class="el" href="_profiling_8cpp_source.html#l00330">Profiler::Print()</a>.</p> |
| 169 | <div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  PrintTabs();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  m_OutputStream << R<span class="stringliteral">"("ArmNN": {)" << std::endl;</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="stringliteral"> IncrementNumberOfTabs();</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="stringliteral">}</span></div></div><!-- fragment --> |
| 170 | </div> |
| 171 | </div> |
| 172 | <a id="ad4aadb70bfaa3b841d94a9508b2245d3"></a> |
| 173 | <h2 class="memtitle"><span class="permalink"><a href="#ad4aadb70bfaa3b841d94a9508b2245d3">◆ </a></span>PrintFooter()</h2> |
| 174 | |
| 175 | <div class="memitem"> |
| 176 | <div class="memproto"> |
| 177 | <table class="memname"> |
| 178 | <tr> |
| 179 | <td class="memname">void PrintFooter </td> |
| 180 | <td>(</td> |
| 181 | <td class="paramname"></td><td>)</td> |
| 182 | <td></td> |
| 183 | </tr> |
| 184 | </table> |
| 185 | </div><div class="memdoc"> |
| 186 | |
| 187 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00163">163</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 188 | |
| 189 | <p class="reference">Referenced by <a class="el" href="_profiling_8cpp_source.html#l00330">Profiler::Print()</a>, and <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 190 | <div class="fragment"><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  DecrementNumberOfTabs();</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  PrintTabs();</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  m_OutputStream << <span class="stringliteral">"}"</span>;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> }</div></div><!-- fragment --> |
| 191 | </div> |
| 192 | </div> |
| 193 | <a id="adaa4d19c25f5fab4804cc8b1d38a68aa"></a> |
| 194 | <h2 class="memtitle"><span class="permalink"><a href="#adaa4d19c25f5fab4804cc8b1d38a68aa">◆ </a></span>PrintHeader()</h2> |
| 195 | |
| 196 | <div class="memitem"> |
| 197 | <div class="memproto"> |
| 198 | <table class="memname"> |
| 199 | <tr> |
| 200 | <td class="memname">void PrintHeader </td> |
| 201 | <td>(</td> |
| 202 | <td class="paramname"></td><td>)</td> |
| 203 | <td></td> |
| 204 | </tr> |
| 205 | </table> |
| 206 | </div><div class="memdoc"> |
| 207 | |
| 208 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00057">57</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 209 | |
| 210 | <p class="reference">Referenced by <a class="el" href="_profiling_8cpp_source.html#l00330">Profiler::Print()</a>.</p> |
| 211 | <div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  m_OutputStream << <span class="stringliteral">"{"</span> << std::endl;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  IncrementNumberOfTabs();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</div></div><!-- fragment --> |
| 212 | </div> |
| 213 | </div> |
| 214 | <a id="aeb76c875ee2792a79924bac85b9eacac"></a> |
| 215 | <h2 class="memtitle"><span class="permalink"><a href="#aeb76c875ee2792a79924bac85b9eacac">◆ </a></span>PrintJsonChildObject()</h2> |
| 216 | |
| 217 | <div class="memitem"> |
| 218 | <div class="memproto"> |
| 219 | <table class="memname"> |
| 220 | <tr> |
| 221 | <td class="memname">void PrintJsonChildObject </td> |
| 222 | <td>(</td> |
| 223 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_json_child_object.html">JsonChildObject</a> & </td> |
| 224 | <td class="paramname"><em>object</em>, </td> |
| 225 | </tr> |
| 226 | <tr> |
| 227 | <td class="paramkey"></td> |
| 228 | <td></td> |
| 229 | <td class="paramtype">size_t & </td> |
| 230 | <td class="paramname"><em>id</em> </td> |
| 231 | </tr> |
| 232 | <tr> |
| 233 | <td></td> |
| 234 | <td>)</td> |
| 235 | <td></td><td></td> |
| 236 | </tr> |
| 237 | </table> |
| 238 | </div><div class="memdoc"> |
| 239 | |
| 240 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00015">15</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 241 | |
| 242 | <p class="reference">References <a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">armnn::Event</a>, <a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">armnn::Measurement</a>, <a class="el" href="_json_printer_8cpp_source.html#l00163">JsonPrinter::PrintFooter()</a>, <a class="el" href="_json_printer_8cpp_source.html#l00077">JsonPrinter::PrintLabel()</a>, <a class="el" href="_json_printer_8cpp_source.html#l00119">JsonPrinter::PrintMeasurementsList()</a>, <a class="el" href="_json_printer_8cpp_source.html#l00158">JsonPrinter::PrintNewLine()</a>, <a class="el" href="_json_printer_8cpp_source.html#l00153">JsonPrinter::PrintSeparator()</a>, <a class="el" href="_json_printer_8cpp_source.html#l00092">JsonPrinter::PrintType()</a>, and <a class="el" href="_json_printer_8cpp_source.html#l00084">JsonPrinter::PrintUnit()</a>.</p> |
| 243 | |
| 244 | <p class="reference">Referenced by <a class="el" href="_profiling_8cpp_source.html#l00330">Profiler::Print()</a>.</p> |
| 245 | <div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordflow">if</span> (<span class="keywordtype">object</span>.GetType() == <a class="code" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">JsonObjectType::Event</a>)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="comment">// Increase the Id for new events. This ensures a new event has a unique ID and any measurements belonging</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="comment">// to the event have the same id. This id is appended to the name during the call to PrintLabel() below.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">id</span>++;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classarmnn_1_1_json_printer.html#abda40105d959e39ea71bfee18ec1917e">PrintLabel</a>(<span class="keywordtype">object</span>.m_Label, <span class="keywordtype">id</span>);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a6cff9caa58261b5d8274d97a8a9b9bd5">PrintType</a>(<span class="keywordtype">object</span>.m_Type);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">if</span> (!<span class="keywordtype">object</span>.m_Measurements.empty() || !<span class="keywordtype">object</span>.m_Children.empty())</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a2a154fc2c71f9ee4dd4c3504d22e5278">PrintSeparator</a>();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">PrintNewLine</a>();</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">if</span> (<span class="keywordtype">object</span>.GetType() == <a class="code" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">JsonObjectType::Measurement</a>)</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a2ef62f27474c57322303b140ddf382dd">PrintMeasurementsList</a>(<span class="keywordtype">object</span>.m_Measurements);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a2a154fc2c71f9ee4dd4c3504d22e5278">PrintSeparator</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">PrintNewLine</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a8b69ba8150dd84a8a5b7912cc70a5b36">PrintUnit</a>(<span class="keywordtype">object</span>.m_Unit);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> (!<span class="keywordtype">object</span>.m_Children.empty())</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> childIndex = 0; childIndex < <span class="keywordtype">object</span>.m_Children.size(); ++childIndex)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classarmnn_1_1_json_printer.html#aeb76c875ee2792a79924bac85b9eacac">PrintJsonChildObject</a>(<span class="keywordtype">object</span>.m_Children[childIndex], <span class="keywordtype">id</span>);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Only print separator and new line if current child is not the last element.</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">if</span> (&<span class="keywordtype">object</span>.m_Children[childIndex] != &<span class="keywordtype">object</span>.m_Children.back())</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classarmnn_1_1_json_printer.html#a2a154fc2c71f9ee4dd4c3504d22e5278">PrintSeparator</a>();</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">PrintNewLine</a>();</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="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">PrintNewLine</a>();</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classarmnn_1_1_json_printer.html#ad4aadb70bfaa3b841d94a9508b2245d3">PrintFooter</a>();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }</div><div class="ttc" id="classarmnn_1_1_json_printer_html_a6cff9caa58261b5d8274d97a8a9b9bd5"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#a6cff9caa58261b5d8274d97a8a9b9bd5">armnn::JsonPrinter::PrintType</a></div><div class="ttdeci">void PrintType(armnn::JsonObjectType type)</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00092">JsonPrinter.cpp:92</a></div></div> |
| 246 | <div class="ttc" id="classarmnn_1_1_json_printer_html_abfd916a652a231df472d86da7e91d74b"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#abfd916a652a231df472d86da7e91d74b">armnn::JsonPrinter::PrintNewLine</a></div><div class="ttdeci">void PrintNewLine()</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00158">JsonPrinter.cpp:158</a></div></div> |
| 247 | <div class="ttc" id="classarmnn_1_1_json_printer_html_a2a154fc2c71f9ee4dd4c3504d22e5278"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#a2a154fc2c71f9ee4dd4c3504d22e5278">armnn::JsonPrinter::PrintSeparator</a></div><div class="ttdeci">void PrintSeparator()</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00153">JsonPrinter.cpp:153</a></div></div> |
| 248 | <div class="ttc" id="classarmnn_1_1_json_printer_html_a8b69ba8150dd84a8a5b7912cc70a5b36"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#a8b69ba8150dd84a8a5b7912cc70a5b36">armnn::JsonPrinter::PrintUnit</a></div><div class="ttdeci">void PrintUnit(armnn::Measurement::Unit unit)</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00084">JsonPrinter.cpp:84</a></div></div> |
| 249 | <div class="ttc" id="namespacearmnn_html_a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975"><div class="ttname"><a href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">armnn::JsonObjectType::Measurement</a></div></div> |
| 250 | <div class="ttc" id="namespacearmnn_html_a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7"><div class="ttname"><a href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">armnn::JsonObjectType::Event</a></div></div> |
| 251 | <div class="ttc" id="classarmnn_1_1_json_printer_html_aeb76c875ee2792a79924bac85b9eacac"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#aeb76c875ee2792a79924bac85b9eacac">armnn::JsonPrinter::PrintJsonChildObject</a></div><div class="ttdeci">void PrintJsonChildObject(const JsonChildObject &object, size_t &id)</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00015">JsonPrinter.cpp:15</a></div></div> |
| 252 | <div class="ttc" id="classarmnn_1_1_json_printer_html_a2ef62f27474c57322303b140ddf382dd"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#a2ef62f27474c57322303b140ddf382dd">armnn::JsonPrinter::PrintMeasurementsList</a></div><div class="ttdeci">void PrintMeasurementsList(const std::vector< double > &measurementsVector)</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00119">JsonPrinter.cpp:119</a></div></div> |
| 253 | <div class="ttc" id="classarmnn_1_1_json_printer_html_abda40105d959e39ea71bfee18ec1917e"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#abda40105d959e39ea71bfee18ec1917e">armnn::JsonPrinter::PrintLabel</a></div><div class="ttdeci">void PrintLabel(const std::string &label, size_t id)</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00077">JsonPrinter.cpp:77</a></div></div> |
| 254 | <div class="ttc" id="classarmnn_1_1_json_printer_html_ad4aadb70bfaa3b841d94a9508b2245d3"><div class="ttname"><a href="classarmnn_1_1_json_printer.html#ad4aadb70bfaa3b841d94a9508b2245d3">armnn::JsonPrinter::PrintFooter</a></div><div class="ttdeci">void PrintFooter()</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8cpp_source.html#l00163">JsonPrinter.cpp:163</a></div></div> |
| 255 | </div><!-- fragment --> |
| 256 | </div> |
| 257 | </div> |
| 258 | <a id="abda40105d959e39ea71bfee18ec1917e"></a> |
| 259 | <h2 class="memtitle"><span class="permalink"><a href="#abda40105d959e39ea71bfee18ec1917e">◆ </a></span>PrintLabel()</h2> |
| 260 | |
| 261 | <div class="memitem"> |
| 262 | <div class="memproto"> |
| 263 | <table class="memname"> |
| 264 | <tr> |
| 265 | <td class="memname">void PrintLabel </td> |
| 266 | <td>(</td> |
| 267 | <td class="paramtype">const std::string & </td> |
| 268 | <td class="paramname"><em>label</em>, </td> |
| 269 | </tr> |
| 270 | <tr> |
| 271 | <td class="paramkey"></td> |
| 272 | <td></td> |
| 273 | <td class="paramtype">size_t </td> |
| 274 | <td class="paramname"><em>id</em> </td> |
| 275 | </tr> |
| 276 | <tr> |
| 277 | <td></td> |
| 278 | <td>)</td> |
| 279 | <td></td><td></td> |
| 280 | </tr> |
| 281 | </table> |
| 282 | </div><div class="memdoc"> |
| 283 | |
| 284 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00077">77</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 285 | |
| 286 | <p class="reference">Referenced by <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 287 | <div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  PrintTabs();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  m_OutputStream << R<span class="stringliteral">"(")" << MakeKey(label, </span><span class="keywordtype">id</span>) << R<span class="stringliteral">"(": {)" << std::endl;</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="stringliteral"> IncrementNumberOfTabs();</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="stringliteral">}</span></div></div><!-- fragment --> |
| 288 | </div> |
| 289 | </div> |
| 290 | <a id="a2ef62f27474c57322303b140ddf382dd"></a> |
| 291 | <h2 class="memtitle"><span class="permalink"><a href="#a2ef62f27474c57322303b140ddf382dd">◆ </a></span>PrintMeasurementsList()</h2> |
| 292 | |
| 293 | <div class="memitem"> |
| 294 | <div class="memproto"> |
| 295 | <table class="memname"> |
| 296 | <tr> |
| 297 | <td class="memname">void PrintMeasurementsList </td> |
| 298 | <td>(</td> |
| 299 | <td class="paramtype">const std::vector< double > & </td> |
| 300 | <td class="paramname"><em>measurementsVector</em></td><td>)</td> |
| 301 | <td></td> |
| 302 | </tr> |
| 303 | </table> |
| 304 | </div><div class="memdoc"> |
| 305 | |
| 306 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00119">119</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 307 | |
| 308 | <p class="reference">Referenced by <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 309 | <div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (measurementsVector.empty())</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>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  PrintTabs();</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  m_OutputStream << R<span class="stringliteral">"("raw": [)" << std::endl;</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="stringliteral"> IncrementNumberOfTabs();</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="stringliteral"> PrintTabs();</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="stringliteral"> </span><span class="keyword">auto</span> iter = measurementsVector.begin();</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  m_OutputStream << *iter;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">for</span> (iter = std::next(iter); iter != measurementsVector.end(); ++iter)</div><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>  m_OutputStream << <span class="stringliteral">","</span> << std::endl;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  PrintTabs();</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  m_OutputStream << *iter;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  m_OutputStream << std::endl;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  DecrementNumberOfTabs();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  PrintTabs();</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  m_OutputStream << <span class="stringliteral">"]"</span>;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> }</div></div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="abfd916a652a231df472d86da7e91d74b"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#abfd916a652a231df472d86da7e91d74b">◆ </a></span>PrintNewLine()</h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="memname"> |
| 318 | <tr> |
| 319 | <td class="memname">void PrintNewLine </td> |
| 320 | <td>(</td> |
| 321 | <td class="paramname"></td><td>)</td> |
| 322 | <td></td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </div><div class="memdoc"> |
| 326 | |
| 327 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00158">158</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 328 | |
| 329 | <p class="reference">Referenced by <a class="el" href="_profiling_8cpp_source.html#l00330">Profiler::Print()</a>, and <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 330 | <div class="fragment"><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  m_OutputStream << std::endl;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> }</div></div><!-- fragment --> |
| 331 | </div> |
| 332 | </div> |
| 333 | <a id="a2a154fc2c71f9ee4dd4c3504d22e5278"></a> |
| 334 | <h2 class="memtitle"><span class="permalink"><a href="#a2a154fc2c71f9ee4dd4c3504d22e5278">◆ </a></span>PrintSeparator()</h2> |
| 335 | |
| 336 | <div class="memitem"> |
| 337 | <div class="memproto"> |
| 338 | <table class="memname"> |
| 339 | <tr> |
| 340 | <td class="memname">void PrintSeparator </td> |
| 341 | <td>(</td> |
| 342 | <td class="paramname"></td><td>)</td> |
| 343 | <td></td> |
| 344 | </tr> |
| 345 | </table> |
| 346 | </div><div class="memdoc"> |
| 347 | |
| 348 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00153">153</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 349 | |
| 350 | <p class="reference">Referenced by <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 351 | <div class="fragment"><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  m_OutputStream << <span class="stringliteral">","</span>;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div></div><!-- fragment --> |
| 352 | </div> |
| 353 | </div> |
| 354 | <a id="a6cff9caa58261b5d8274d97a8a9b9bd5"></a> |
| 355 | <h2 class="memtitle"><span class="permalink"><a href="#a6cff9caa58261b5d8274d97a8a9b9bd5">◆ </a></span>PrintType()</h2> |
| 356 | |
| 357 | <div class="memitem"> |
| 358 | <div class="memproto"> |
| 359 | <table class="memname"> |
| 360 | <tr> |
| 361 | <td class="memname">void PrintType </td> |
| 362 | <td>(</td> |
| 363 | <td class="paramtype"><a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262a">armnn::JsonObjectType</a> </td> |
| 364 | <td class="paramname"><em>type</em></td><td>)</td> |
| 365 | <td></td> |
| 366 | </tr> |
| 367 | </table> |
| 368 | </div><div class="memdoc"> |
| 369 | |
| 370 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00092">92</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 371 | |
| 372 | <p class="reference">References <a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">armnn::Event</a>, and <a class="el" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">armnn::Measurement</a>.</p> |
| 373 | |
| 374 | <p class="reference">Referenced by <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 375 | <div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">auto</span> ToString = [](<a class="code" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262a">armnn::JsonObjectType</a> type)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">switch</span> (type)</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">JsonObjectType::Measurement</a>:</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Measurement"</span>;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">JsonObjectType::Event</a>:</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Event"</span>;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div><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>  }</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  };</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  PrintTabs();</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  m_OutputStream << R<span class="stringliteral">"("type": ")";</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="stringliteral"> m_OutputStream << ToString(type);</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="stringliteral"> m_OutputStream << R</span><span class="stringliteral">"(")";</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="stringliteral">}</span></div><div class="ttc" id="namespacearmnn_html_a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975"><div class="ttname"><a href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aa911842b19d8b2f9bbed8cfe909d52975">armnn::JsonObjectType::Measurement</a></div></div> |
| 376 | <div class="ttc" id="namespacearmnn_html_a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7"><div class="ttname"><a href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262aaa4ecfc70574394990cf17bd83df499f7">armnn::JsonObjectType::Event</a></div></div> |
| 377 | <div class="ttc" id="namespacearmnn_html_a4e2dd387ba6f0dc5164b4cdf8de3262a"><div class="ttname"><a href="namespacearmnn.html#a4e2dd387ba6f0dc5164b4cdf8de3262a">armnn::JsonObjectType</a></div><div class="ttdeci">JsonObjectType</div><div class="ttdef"><b>Definition:</b> <a href="_json_printer_8hpp_source.html#l00018">JsonPrinter.hpp:18</a></div></div> |
| 378 | </div><!-- fragment --> |
| 379 | </div> |
| 380 | </div> |
| 381 | <a id="a8b69ba8150dd84a8a5b7912cc70a5b36"></a> |
| 382 | <h2 class="memtitle"><span class="permalink"><a href="#a8b69ba8150dd84a8a5b7912cc70a5b36">◆ </a></span>PrintUnit()</h2> |
| 383 | |
| 384 | <div class="memitem"> |
| 385 | <div class="memproto"> |
| 386 | <table class="memname"> |
| 387 | <tr> |
| 388 | <td class="memname">void PrintUnit </td> |
| 389 | <td>(</td> |
| 390 | <td class="paramtype"><a class="el" href="structarmnn_1_1_measurement.html#abceb2331ad056e3c5ad27894199a49ed">armnn::Measurement::Unit</a> </td> |
| 391 | <td class="paramname"><em>unit</em></td><td>)</td> |
| 392 | <td></td> |
| 393 | </tr> |
| 394 | </table> |
| 395 | </div><div class="memdoc"> |
| 396 | |
| 397 | <p class="definition">Definition at line <a class="el" href="_json_printer_8cpp_source.html#l00084">84</a> of file <a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a>.</p> |
| 398 | |
| 399 | <p class="reference">References <a class="el" href="_instrument_8hpp_source.html#l00023">Measurement::ToString()</a>.</p> |
| 400 | |
| 401 | <p class="reference">Referenced by <a class="el" href="_json_printer_8cpp_source.html#l00015">JsonPrinter::PrintJsonChildObject()</a>.</p> |
| 402 | <div class="fragment"><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  PrintTabs();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  m_OutputStream << R<span class="stringliteral">"("unit": ")";</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="stringliteral"> m_OutputStream << <a class="code" href="structarmnn_1_1_measurement.html#ab28eb76bc26abd263cad9dc2d1d17816">armnn::Measurement::ToString</a>(unit);</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="stringliteral"> m_OutputStream << R</span><span class="stringliteral">"(")";</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="stringliteral">}</span></div><div class="ttc" id="structarmnn_1_1_measurement_html_ab28eb76bc26abd263cad9dc2d1d17816"><div class="ttname"><a href="structarmnn_1_1_measurement.html#ab28eb76bc26abd263cad9dc2d1d17816">armnn::Measurement::ToString</a></div><div class="ttdeci">static const char * ToString(Unit unit)</div><div class="ttdef"><b>Definition:</b> <a href="_instrument_8hpp_source.html#l00023">Instrument.hpp:23</a></div></div> |
| 403 | </div><!-- fragment --> |
| 404 | </div> |
| 405 | </div> |
| 406 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 407 | <li>src/armnn/<a class="el" href="_json_printer_8hpp_source.html">JsonPrinter.hpp</a></li> |
| 408 | <li>src/armnn/<a class="el" href="_json_printer_8cpp_source.html">JsonPrinter.cpp</a></li> |
| 409 | </ul> |
| 410 | </div><!-- contents --> |
| 411 | </div><!-- doc-content --> |
| 412 | <!-- start footer part --> |
| 413 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 414 | <ul> |
| 415 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_json_printer.html">JsonPrinter</a></li> |
| 416 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 417 | <a href="http://www.doxygen.org/index.html"> |
| 418 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 419 | </ul> |
| 420 | </div> |
| 421 | </body> |
| 422 | </html> |