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: DotNode 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_dot_node.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_dot_node-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">DotNode Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_dot_serializer_8hpp_source.html">DotSerializer.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for DotNode:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1_dot_node.png" usemap="#DotNode_map" alt=""/> |
| 97 | <map id="DotNode_map" name="DotNode_map"> |
| 98 | <area href="classarmnn_1_1_dot_base.html" alt="DotBase" shape="rect" coords="0,0,61,24"/> |
| 99 | </map> |
| 100 | </div></div> |
| 101 | <table class="memberdecls"> |
| 102 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 103 | Public Member Functions</h2></td></tr> |
| 104 | <tr class="memitem:a8ba78d7bbd1838e28d4208c3a1f2110d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_node.html#a8ba78d7bbd1838e28d4208c3a1f2110d">DotNode</a> (std::ostream &stream, <a class="el" href="namespacearmnn.html#afad4088a9a058114ee5f87246f87bf49">LayerGuid</a> nodeId, const char *label)</td></tr> |
| 105 | <tr class="separator:a8ba78d7bbd1838e28d4208c3a1f2110d"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:a1a90b7c27390c5b4f7828a0c9917f6fe"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_node.html#a1a90b7c27390c5b4f7828a0c9917f6fe">~DotNode</a> ()</td></tr> |
| 107 | <tr class="separator:a1a90b7c27390c5b4f7828a0c9917f6fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a1734bc659f144a8465e22d4b53b8f580"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_node_content.html">NodeContent</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_node.html#a1734bc659f144a8465e22d4b53b8f580">GetContents</a> ()</td></tr> |
| 109 | <tr class="separator:a1734bc659f144a8465e22d4b53b8f580"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a721c9bf7f2e6a2d88d340253ccc19815"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_dot_attribute_set.html">DotAttributeSet</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_node.html#a721c9bf7f2e6a2d88d340253ccc19815">GetAttributeSet</a> ()</td></tr> |
| 111 | <tr class="separator:a721c9bf7f2e6a2d88d340253ccc19815"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="inherit_header pub_methods_classarmnn_1_1_dot_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_dot_base')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_dot_base.html">DotBase</a></td></tr> |
| 113 | <tr class="memitem:afba1dd3b85fb26c87e892ed80452d116 inherit pub_methods_classarmnn_1_1_dot_base"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_base.html#afba1dd3b85fb26c87e892ed80452d116">DotBase</a> (std::ostream &stream)</td></tr> |
| 114 | <tr class="separator:afba1dd3b85fb26c87e892ed80452d116 inherit pub_methods_classarmnn_1_1_dot_base"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a99131c6a3da28cceeeb67d732ff39d7d inherit pub_methods_classarmnn_1_1_dot_base"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_dot_base.html#a99131c6a3da28cceeeb67d732ff39d7d">GetStream</a> ()</td></tr> |
| 116 | <tr class="separator:a99131c6a3da28cceeeb67d732ff39d7d inherit pub_methods_classarmnn_1_1_dot_base"><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="_dot_serializer_8hpp_source.html#l00101">101</a> of file <a class="el" href="_dot_serializer_8hpp_source.html">DotSerializer.hpp</a>.</p> |
| 121 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 122 | <a id="a8ba78d7bbd1838e28d4208c3a1f2110d"></a> |
| 123 | <h2 class="memtitle"><span class="permalink"><a href="#a8ba78d7bbd1838e28d4208c3a1f2110d">◆ </a></span>DotNode()</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_dot_node.html">DotNode</a> </td> |
| 133 | <td>(</td> |
| 134 | <td class="paramtype">std::ostream & </td> |
| 135 | <td class="paramname"><em>stream</em>, </td> |
| 136 | </tr> |
| 137 | <tr> |
| 138 | <td class="paramkey"></td> |
| 139 | <td></td> |
| 140 | <td class="paramtype"><a class="el" href="namespacearmnn.html#afad4088a9a058114ee5f87246f87bf49">LayerGuid</a> </td> |
| 141 | <td class="paramname"><em>nodeId</em>, </td> |
| 142 | </tr> |
| 143 | <tr> |
| 144 | <td class="paramkey"></td> |
| 145 | <td></td> |
| 146 | <td class="paramtype">const char * </td> |
| 147 | <td class="paramname"><em>label</em> </td> |
| 148 | </tr> |
| 149 | <tr> |
| 150 | <td></td> |
| 151 | <td>)</td> |
| 152 | <td></td><td></td> |
| 153 | </tr> |
| 154 | </table> |
| 155 | </td> |
| 156 | <td class="mlabels-right"> |
| 157 | <span class="mlabels"><span class="mlabel">explicit</span></span> </td> |
| 158 | </tr> |
| 159 | </table> |
| 160 | </div><div class="memdoc"> |
| 161 | |
| 162 | <p class="definition">Definition at line <a class="el" href="_dot_serializer_8cpp_source.html#l00179">179</a> of file <a class="el" href="_dot_serializer_8cpp_source.html">DotSerializer.cpp</a>.</p> |
| 163 | |
| 164 | <p class="reference">References <a class="el" href="_dot_serializer_8hpp_source.html#l00023">DotBase::GetStream()</a>.</p> |
| 165 | <div class="fragment"><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  : <a class="code" href="classarmnn_1_1_dot_base.html#afba1dd3b85fb26c87e892ed80452d116">DotBase</a>(stream)</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  std::stringstream ss;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  ss << Indent(4) << nodeId;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="classarmnn_1_1_dot_base.html#a99131c6a3da28cceeeb67d732ff39d7d">GetStream</a>() << ss.str() << <span class="stringliteral">" "</span>;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  m_Contents = std::make_unique<NodeContent>(stream);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  m_Attributes = std::make_unique<DotAttributeSet>(stream);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">if</span> (std::strlen(label) != 0)</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  {</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  m_Contents->SetName(label);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  m_Contents->SetName(<span class="stringliteral">"<noname>"</span>);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div><div class="ttc" id="classarmnn_1_1_dot_base_html_a99131c6a3da28cceeeb67d732ff39d7d"><div class="ttname"><a href="classarmnn_1_1_dot_base.html#a99131c6a3da28cceeeb67d732ff39d7d">armnn::DotBase::GetStream</a></div><div class="ttdeci">std::ostream & GetStream()</div><div class="ttdef"><b>Definition:</b> <a href="_dot_serializer_8hpp_source.html#l00023">DotSerializer.hpp:23</a></div></div> |
| 166 | <div class="ttc" id="classarmnn_1_1_dot_base_html_afba1dd3b85fb26c87e892ed80452d116"><div class="ttname"><a href="classarmnn_1_1_dot_base.html#afba1dd3b85fb26c87e892ed80452d116">armnn::DotBase::DotBase</a></div><div class="ttdeci">DotBase(std::ostream &stream)</div><div class="ttdef"><b>Definition:</b> <a href="_dot_serializer_8hpp_source.html#l00020">DotSerializer.hpp:20</a></div></div> |
| 167 | </div><!-- fragment --> |
| 168 | </div> |
| 169 | </div> |
| 170 | <a id="a1a90b7c27390c5b4f7828a0c9917f6fe"></a> |
| 171 | <h2 class="memtitle"><span class="permalink"><a href="#a1a90b7c27390c5b4f7828a0c9917f6fe">◆ </a></span>~DotNode()</h2> |
| 172 | |
| 173 | <div class="memitem"> |
| 174 | <div class="memproto"> |
| 175 | <table class="memname"> |
| 176 | <tr> |
| 177 | <td class="memname">~<a class="el" href="classarmnn_1_1_dot_node.html">DotNode</a> </td> |
| 178 | <td>(</td> |
| 179 | <td class="paramname"></td><td>)</td> |
| 180 | <td></td> |
| 181 | </tr> |
| 182 | </table> |
| 183 | </div><div class="memdoc"> |
| 184 | |
| 185 | <p class="definition">Definition at line <a class="el" href="_dot_serializer_8cpp_source.html#l00200">200</a> of file <a class="el" href="_dot_serializer_8cpp_source.html">DotSerializer.cpp</a>.</p> |
| 186 | |
| 187 | <p class="reference">References <a class="el" href="_dot_serializer_8hpp_source.html#l00023">DotBase::GetStream()</a>.</p> |
| 188 | <div class="fragment"><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>  m_Contents.reset(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  m_Attributes.reset(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="classarmnn_1_1_dot_base.html#a99131c6a3da28cceeeb67d732ff39d7d">GetStream</a>() << <span class="stringliteral">";"</span> << std::endl;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> }</div><div class="ttc" id="classarmnn_1_1_dot_base_html_a99131c6a3da28cceeeb67d732ff39d7d"><div class="ttname"><a href="classarmnn_1_1_dot_base.html#a99131c6a3da28cceeeb67d732ff39d7d">armnn::DotBase::GetStream</a></div><div class="ttdeci">std::ostream & GetStream()</div><div class="ttdef"><b>Definition:</b> <a href="_dot_serializer_8hpp_source.html#l00023">DotSerializer.hpp:23</a></div></div> |
| 189 | </div><!-- fragment --> |
| 190 | </div> |
| 191 | </div> |
| 192 | <h2 class="groupheader">Member Function Documentation</h2> |
| 193 | <a id="a721c9bf7f2e6a2d88d340253ccc19815"></a> |
| 194 | <h2 class="memtitle"><span class="permalink"><a href="#a721c9bf7f2e6a2d88d340253ccc19815">◆ </a></span>GetAttributeSet()</h2> |
| 195 | |
| 196 | <div class="memitem"> |
| 197 | <div class="memproto"> |
| 198 | <table class="mlabels"> |
| 199 | <tr> |
| 200 | <td class="mlabels-left"> |
| 201 | <table class="memname"> |
| 202 | <tr> |
| 203 | <td class="memname"><a class="el" href="classarmnn_1_1_dot_attribute_set.html">DotAttributeSet</a>& GetAttributeSet </td> |
| 204 | <td>(</td> |
| 205 | <td class="paramname"></td><td>)</td> |
| 206 | <td></td> |
| 207 | </tr> |
| 208 | </table> |
| 209 | </td> |
| 210 | <td class="mlabels-right"> |
| 211 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 212 | </tr> |
| 213 | </table> |
| 214 | </div><div class="memdoc"> |
| 215 | |
| 216 | <p class="definition">Definition at line <a class="el" href="_dot_serializer_8hpp_source.html#l00108">108</a> of file <a class="el" href="_dot_serializer_8hpp_source.html">DotSerializer.hpp</a>.</p> |
| 217 | <div class="fragment"><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> { <span class="keywordflow">return</span> *m_Attributes.get(); }</div></div><!-- fragment --> |
| 218 | </div> |
| 219 | </div> |
| 220 | <a id="a1734bc659f144a8465e22d4b53b8f580"></a> |
| 221 | <h2 class="memtitle"><span class="permalink"><a href="#a1734bc659f144a8465e22d4b53b8f580">◆ </a></span>GetContents()</h2> |
| 222 | |
| 223 | <div class="memitem"> |
| 224 | <div class="memproto"> |
| 225 | <table class="mlabels"> |
| 226 | <tr> |
| 227 | <td class="mlabels-left"> |
| 228 | <table class="memname"> |
| 229 | <tr> |
| 230 | <td class="memname"><a class="el" href="classarmnn_1_1_node_content.html">NodeContent</a>& GetContents </td> |
| 231 | <td>(</td> |
| 232 | <td class="paramname"></td><td>)</td> |
| 233 | <td></td> |
| 234 | </tr> |
| 235 | </table> |
| 236 | </td> |
| 237 | <td class="mlabels-right"> |
| 238 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 239 | </tr> |
| 240 | </table> |
| 241 | </div><div class="memdoc"> |
| 242 | |
| 243 | <p class="definition">Definition at line <a class="el" href="_dot_serializer_8hpp_source.html#l00107">107</a> of file <a class="el" href="_dot_serializer_8hpp_source.html">DotSerializer.hpp</a>.</p> |
| 244 | |
| 245 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.html#l00081">Graph::SerializeToDot()</a>.</p> |
| 246 | <div class="fragment"><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> { <span class="keywordflow">return</span> *m_Contents.get(); }</div></div><!-- fragment --> |
| 247 | </div> |
| 248 | </div> |
| 249 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 250 | <li>src/armnnUtils/<a class="el" href="_dot_serializer_8hpp_source.html">DotSerializer.hpp</a></li> |
| 251 | <li>src/armnnUtils/<a class="el" href="_dot_serializer_8cpp_source.html">DotSerializer.cpp</a></li> |
| 252 | </ul> |
| 253 | </div><!-- contents --> |
| 254 | </div><!-- doc-content --> |
| 255 | <!-- start footer part --> |
| 256 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 257 | <ul> |
| 258 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_dot_node.html">DotNode</a></li> |
| 259 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 260 | <a href="http://www.doxygen.org/index.html"> |
| 261 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 262 | </ul> |
| 263 | </div> |
| 264 | </body> |
| 265 | </html> |