1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: IAllocator Class Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18 $(document).ready(initResizable);
19 $(window).load(resizeHeight);
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25 $(document).ready(function() { init_search(); });
27 <script type="text/x-mathjax-config">
29 extensions: ["tex2jax.js"],
30 jax: ["input/TeX","output/HTML-CSS"],
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <table cellspacing="0" cellpadding="0">
40 <tr style="height: 56px;">
41 <td style="padding-left: 0.5em;">
42 <div id="projectname">Compute Library
43  <span id="projectnumber">18.01</span>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
55 <div id="navrow1" class="tabs">
57 <li><a href="index.xhtml"><span>Main Page</span></a></li>
58 <li><a href="pages.xhtml"><span>Related Pages</span></a></li>
59 <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
60 <li class="current"><a href="annotated.xhtml"><span>Data Structures</span></a></li>
61 <li><a href="files.xhtml"><span>Files</span></a></li>
63 <div id="MSearchBox" class="MSearchBoxInactive">
65 <img id="MSearchSelect" src="search/mag_sel.png"
66 onmouseover="return searchBox.OnSearchSelectShow()"
67 onmouseout="return searchBox.OnSearchSelectHide()"
69 <input type="text" id="MSearchField" value="Search" accesskey="S"
70 onfocus="searchBox.OnSearchFieldFocus(true)"
71 onblur="searchBox.OnSearchFieldFocus(false)"
72 onkeyup="searchBox.OnSearchFieldChange(event)"/>
73 </span><span class="right">
74 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
80 <div id="navrow2" class="tabs2">
82 <li><a href="annotated.xhtml"><span>Data Structures</span></a></li>
83 <li><a href="classes.xhtml"><span>Data Structure Index</span></a></li>
84 <li><a href="inherits.xhtml"><span>Class Hierarchy</span></a></li>
85 <li><a href="functions.xhtml"><span>Data Fields</span></a></li>
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
91 <div id="nav-tree-contents">
92 <div id="nav-sync" class="sync"></div>
95 <div id="splitbar" style="-moz-user-select:none;"
96 class="ui-resizable-handle">
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1_i_allocator.xhtml','');});
102 <div id="doc-content">
103 <!-- window showing the filter options -->
104 <div id="MSearchSelectWindow"
105 onmouseover="return searchBox.OnSearchSelectShow()"
106 onmouseout="return searchBox.OnSearchSelectHide()"
107 onkeydown="return searchBox.OnSearchSelectKey(event)">
110 <!-- iframe showing the search results (closed by default) -->
111 <div id="MSearchResultsWindow">
112 <iframe src="javascript:void(0)" frameborder="0"
113 name="MSearchResults" id="MSearchResults">
118 <div class="summary">
119 <a href="#pub-methods">Public Member Functions</a> </div>
120 <div class="headertitle">
121 <div class="title">IAllocator Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
123 <div class="contents">
125 <p><a class="el" href="classarm__compute_1_1_allocator.xhtml" title="Default malloc allocator implementation. ">Allocator</a> interface.
126 <a href="classarm__compute_1_1_i_allocator.xhtml#details">More...</a></p>
128 <p><code>#include <<a class="el" href="_i_allocator_8h_source.xhtml">IAllocator.h</a>></code></p>
129 <table class="memberdecls">
130 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
131 Public Member Functions</h2></td></tr>
132 <tr class="memitem:a961a3c35d2c2652499f722ea14775122"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_allocator.xhtml#a961a3c35d2c2652499f722ea14775122">~IAllocator</a> ()=default</td></tr>
133 <tr class="memdesc:a961a3c35d2c2652499f722ea14775122"><td class="mdescLeft"> </td><td class="mdescRight">Default virtual destructor. <a href="#a961a3c35d2c2652499f722ea14775122">More...</a><br /></td></tr>
134 <tr class="separator:a961a3c35d2c2652499f722ea14775122"><td class="memSeparator" colspan="2"> </td></tr>
135 <tr class="memitem:a6ce9dda753afa9abb498f3d6b673e595"><td class="memItemLeft" align="right" valign="top">virtual void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_allocator.xhtml#a6ce9dda753afa9abb498f3d6b673e595">allocate</a> (size_t <a class="el" href="hwc_8hpp.xhtml#ab2c6b258f02add8fdf4cfc7c371dd772">size</a>, size_t alignment)=0</td></tr>
136 <tr class="memdesc:a6ce9dda753afa9abb498f3d6b673e595"><td class="mdescLeft"> </td><td class="mdescRight">Interface to be implemented by the child class to allocate bytes. <a href="#a6ce9dda753afa9abb498f3d6b673e595">More...</a><br /></td></tr>
137 <tr class="separator:a6ce9dda753afa9abb498f3d6b673e595"><td class="memSeparator" colspan="2"> </td></tr>
138 <tr class="memitem:a7dbeba9295a3f52ea54698c31e555dff"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_allocator.xhtml#a7dbeba9295a3f52ea54698c31e555dff">free</a> (void *ptr)=0</td></tr>
139 <tr class="memdesc:a7dbeba9295a3f52ea54698c31e555dff"><td class="mdescLeft"> </td><td class="mdescRight">Interface to be implemented by the child class to free the allocated tensor. <a href="#a7dbeba9295a3f52ea54698c31e555dff">More...</a><br /></td></tr>
140 <tr class="separator:a7dbeba9295a3f52ea54698c31e555dff"><td class="memSeparator" colspan="2"> </td></tr>
142 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
143 <div class="textblock"><p><a class="el" href="classarm__compute_1_1_allocator.xhtml" title="Default malloc allocator implementation. ">Allocator</a> interface. </p>
145 <p>Definition at line <a class="el" href="_i_allocator_8h_source.xhtml#l00032">32</a> of file <a class="el" href="_i_allocator_8h_source.xhtml">IAllocator.h</a>.</p>
146 </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
147 <a class="anchor" id="a961a3c35d2c2652499f722ea14775122"></a>
148 <div class="memitem">
149 <div class="memproto">
150 <table class="mlabels">
152 <td class="mlabels-left">
153 <table class="memname">
155 <td class="memname">virtual ~<a class="el" href="classarm__compute_1_1_i_allocator.xhtml">IAllocator</a> </td>
157 <td class="paramname"></td><td>)</td>
162 <td class="mlabels-right">
163 <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">default</span></span> </td>
166 </div><div class="memdoc">
168 <p>Default virtual destructor. </p>
172 <h2 class="groupheader">Member Function Documentation</h2>
173 <a class="anchor" id="a6ce9dda753afa9abb498f3d6b673e595"></a>
174 <div class="memitem">
175 <div class="memproto">
176 <table class="mlabels">
178 <td class="mlabels-left">
179 <table class="memname">
181 <td class="memname">virtual void* allocate </td>
183 <td class="paramtype">size_t </td>
184 <td class="paramname"><em>size</em>, </td>
187 <td class="paramkey"></td>
189 <td class="paramtype">size_t </td>
190 <td class="paramname"><em>alignment</em> </td>
199 <td class="mlabels-right">
200 <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
203 </div><div class="memdoc">
205 <p>Interface to be implemented by the child class to allocate bytes. </p>
206 <dl class="params"><dt>Parameters</dt><dd>
207 <table class="params">
208 <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>Size to allocate </td></tr>
209 <tr><td class="paramdir">[in]</td><td class="paramname">alignment</td><td>Alignment that the returned pointer should comply with</td></tr>
213 <dl class="section return"><dt>Returns</dt><dd>A pointer to the allocated memory </dd></dl>
215 <p>Implemented in <a class="el" href="classarm__compute_1_1_c_l_buffer_allocator.xhtml#aae0c9f2cf99b1724ec4a6d4e292327d2">CLBufferAllocator</a>, and <a class="el" href="classarm__compute_1_1_allocator.xhtml#aae0c9f2cf99b1724ec4a6d4e292327d2">Allocator</a>.</p>
219 <a class="anchor" id="a7dbeba9295a3f52ea54698c31e555dff"></a>
220 <div class="memitem">
221 <div class="memproto">
222 <table class="mlabels">
224 <td class="mlabels-left">
225 <table class="memname">
227 <td class="memname">virtual void free </td>
229 <td class="paramtype">void * </td>
230 <td class="paramname"><em>ptr</em></td><td>)</td>
235 <td class="mlabels-right">
236 <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
239 </div><div class="memdoc">
241 <p>Interface to be implemented by the child class to free the allocated tensor. </p>
243 <p>Implemented in <a class="el" href="classarm__compute_1_1_c_l_buffer_allocator.xhtml#abbd17af5b3fbeff226e4051433c1b929">CLBufferAllocator</a>, and <a class="el" href="classarm__compute_1_1_allocator.xhtml#abbd17af5b3fbeff226e4051433c1b929">Allocator</a>.</p>
247 <hr/>The documentation for this class was generated from the following file:<ul>
248 <li>arm_compute/runtime/<a class="el" href="_i_allocator_8h_source.xhtml">IAllocator.h</a></li>
250 </div><!-- contents -->
251 </div><!-- doc-content -->
252 <!-- start footer part -->
253 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
255 <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_i_allocator.xhtml">IAllocator</a></li>
256 <li class="footer">Generated on Wed Jan 24 2018 14:30:45 for Compute Library by
257 <a href="http://www.doxygen.org/index.html">
258 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>