blob: 922544ace3a1d1b8412d335a86e7e92221e153e1 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: MockPacketBuffer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ArmNN
&#160;<span id="projectnumber">NotReleased</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_mock_packet_buffer.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classarmnn_1_1profiling_1_1_mock_packet_buffer-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MockPacketBuffer Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MockPacketBuffer:</div>
<div class="dyncontent">
<div class="center">
<img src="classarmnn_1_1profiling_1_1_mock_packet_buffer.png" usemap="#MockPacketBuffer_map" alt=""/>
<map id="MockPacketBuffer_map" name="MockPacketBuffer_map">
<area href="classarmnn_1_1profiling_1_1_i_packet_buffer.html" alt="IPacketBuffer" shape="rect" coords="0,56,144,80"/>
<area href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html" alt="IReadOnlyPacketBuffer" shape="rect" coords="0,0,144,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae589e488b5420a2e680c1652072861e8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#ae589e488b5420a2e680c1652072861e8">MockPacketBuffer</a> (unsigned int maxSize)</td></tr>
<tr class="separator:ae589e488b5420a2e680c1652072861e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b34b9ef41ff50cf988dde8381fa4f7e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#a6b34b9ef41ff50cf988dde8381fa4f7e">~MockPacketBuffer</a> ()</td></tr>
<tr class="separator:a6b34b9ef41ff50cf988dde8381fa4f7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a7614d7b084e33f72045ed161eb95bc"><td class="memItemLeft" align="right" valign="top">const unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#a9a7614d7b084e33f72045ed161eb95bc">GetReadableData</a> () const override</td></tr>
<tr class="separator:a9a7614d7b084e33f72045ed161eb95bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab03338cef0f6b48d46effb2c2a64407d"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#ab03338cef0f6b48d46effb2c2a64407d">GetSize</a> () const override</td></tr>
<tr class="separator:ab03338cef0f6b48d46effb2c2a64407d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa630bd4c9ada8ab204fbb42651b10613"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#aa630bd4c9ada8ab204fbb42651b10613">MarkRead</a> () override</td></tr>
<tr class="separator:aa630bd4c9ada8ab204fbb42651b10613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d7238f289009294f40b0b2bcb8d594f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#a1d7238f289009294f40b0b2bcb8d594f">Commit</a> (unsigned int size) override</td></tr>
<tr class="separator:a1d7238f289009294f40b0b2bcb8d594f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a5dddc8911f6189f9ca01394c59faaf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#a1a5dddc8911f6189f9ca01394c59faaf">Release</a> () override</td></tr>
<tr class="separator:a1a5dddc8911f6189f9ca01394c59faaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afedc435235efffdfab1fb0670f52d7c1"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html#afedc435235efffdfab1fb0670f52d7c1">GetWritableData</a> () override</td></tr>
<tr class="separator:afedc435235efffdfab1fb0670f52d7c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.html">IPacketBuffer</a></td></tr>
<tr class="memitem:a9ded593bdc39f70c3e135e649ab3e42e inherit pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.html#a9ded593bdc39f70c3e135e649ab3e42e">~IPacketBuffer</a> ()</td></tr>
<tr class="separator:a9ded593bdc39f70c3e135e649ab3e42e inherit pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html">IReadOnlyPacketBuffer</a></td></tr>
<tr class="memitem:a040a515076ec53aa5e3a933d7c7ce43c inherit pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html#a040a515076ec53aa5e3a933d7c7ce43c">~IReadOnlyPacketBuffer</a> ()</td></tr>
<tr class="separator:a040a515076ec53aa5e3a933d7c7ce43c inherit pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00170">170</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae589e488b5420a2e680c1652072861e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae589e488b5420a2e680c1652072861e8">&#9670;&nbsp;</a></span>MockPacketBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html">MockPacketBuffer</a> </td>
<td>(</td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>maxSize</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00173">173</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; : m_MaxSize(maxSize)</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; , m_Size(0)</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; , m_Data(std::make_unique&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>[]&gt;(m_MaxSize))</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; {}</div></div><!-- fragment -->
</div>
</div>
<a id="a6b34b9ef41ff50cf988dde8381fa4f7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b34b9ef41ff50cf988dde8381fa4f7e">&#9670;&nbsp;</a></span>~MockPacketBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html">MockPacketBuffer</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00179">179</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;{}</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1d7238f289009294f40b0b2bcb8d594f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d7238f289009294f40b0b2bcb8d594f">&#9670;&nbsp;</a></span>Commit()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Commit </td>
<td>(</td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>size</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.html#a4586c90cbeb7804b32dad8c1bd6ae242">IPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00187">187</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;{ m_Size = size; }</div></div><!-- fragment -->
</div>
</div>
<a id="a9a7614d7b084e33f72045ed161eb95bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a7614d7b084e33f72045ed161eb95bc">&#9670;&nbsp;</a></span>GetReadableData()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const unsigned char* GetReadableData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html#a43a27876dafdccf067777f84a97e6664">IReadOnlyPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00181">181</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;{ <span class="keywordflow">return</span> m_Data.get(); }</div></div><!-- fragment -->
</div>
</div>
<a id="ab03338cef0f6b48d46effb2c2a64407d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab03338cef0f6b48d46effb2c2a64407d">&#9670;&nbsp;</a></span>GetSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">unsigned int GetSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html#a60eae84cd5c7f05de36f64c1fdc0001c">IReadOnlyPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00183">183</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;{ <span class="keywordflow">return</span> m_Size; }</div></div><!-- fragment -->
</div>
</div>
<a id="afedc435235efffdfab1fb0670f52d7c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afedc435235efffdfab1fb0670f52d7c1">&#9670;&nbsp;</a></span>GetWritableData()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">unsigned char* GetWritableData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.html#a0dd0b11d60c79e8c89ed1b851a45030d">IPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00191">191</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;{ <span class="keywordflow">return</span> m_Data.get(); }</div></div><!-- fragment -->
</div>
</div>
<a id="aa630bd4c9ada8ab204fbb42651b10613"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa630bd4c9ada8ab204fbb42651b10613">&#9670;&nbsp;</a></span>MarkRead()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MarkRead </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.html#adf275dd5054ae4d71e736ba427e1d200">IReadOnlyPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00185">185</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;{ m_Size = 0; }</div></div><!-- fragment -->
</div>
</div>
<a id="a1a5dddc8911f6189f9ca01394c59faaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a5dddc8911f6189f9ca01394c59faaf">&#9670;&nbsp;</a></span>Release()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Release </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.html#a4dc7ecb0d192d6cccc9287daaf0eca0f">IPacketBuffer</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00189">189</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;{ m_Size = 0; }</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/profiling/test/<a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.html">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.html">MockPacketBuffer</a></li>
<li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>