1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BitMagic-C++: bmalloc.h File 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="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">BitMagic-C++
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">bmalloc.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Default SIMD friendly allocator.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stdlib.h></code><br />
<code>#include <new></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for bmalloc.h:</div>
<div class="dyncontent">
<div class="center"><img src="bmalloc_8h__incl.png" border="0" usemap="#bmalloc_8h" alt=""/></div>
<map name="bmalloc_8h" id="bmalloc_8h">
<area shape="rect" title="Default SIMD friendly allocator." alt="" coords="37,5,115,32"/>
<area shape="rect" title=" " alt="" coords="5,80,69,107"/>
<area shape="rect" title=" " alt="" coords="93,80,139,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="bmalloc_8h__dep__incl.png" border="0" usemap="#bmalloc_8hdep" alt=""/></div>
<map name="bmalloc_8hdep" id="bmalloc_8hdep">
<area shape="rect" title="Default SIMD friendly allocator." alt="" coords="2941,5,3020,32"/>
<area shape="rect" href="bm_8h.html" title="Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators." alt="" coords="2955,80,3006,107"/>
<area shape="rect" href="bmbmatrix_8h.html" title="basic bit-matrix class and utilities" alt="" coords="5,155,100,181"/>
<area shape="rect" href="sample1_8cpp.html" title="Example: bvector<> set bits and then retrieve indexes of ON bits." alt="" coords="125,155,221,181"/>
<area shape="rect" href="sample2_8cpp.html" title="Example: bvector<> set algebra operations AND, OR, XOR, etc." alt="" coords="245,155,341,181"/>
<area shape="rect" href="sample3_8cpp.html" title="Example: bvector<> with different allocation/compression strategies." alt="" coords="365,155,461,181"/>
<area shape="rect" href="sample4_8cpp.html" title="Example: bvector<> serialization/deserialization." alt="" coords="485,155,581,181"/>
<area shape="rect" href="sample5_8cpp.html" title="Example: bvector<>::enumerator use." alt="" coords="605,155,701,181"/>
<area shape="rect" href="sample6_8cpp.html" title="Example: bvector<> custom memory allocator." alt="" coords="725,155,821,181"/>
<area shape="rect" href="sample7_8cpp.html" title="Example: set operations between bvector<> and arrays of integers." alt="" coords="845,155,941,181"/>
<area shape="rect" href="sample8_8cpp.html" title="Example: bvector<> - STL interoperability." alt="" coords="965,155,1061,181"/>
<area shape="rect" href="sample9_8cpp.html" title="Example: bvector<> binary similarity / distance algorithms." alt="" coords="1085,155,1181,181"/>
<area shape="rect" href="sample10_8cpp.html" title="Example: bvector<> generation of random sub-set." alt="" coords="1205,155,1308,181"/>
<area shape="rect" href="sample11_8cpp.html" title="Example: bvector<> bit-counting techniques analysis." alt="" coords="1332,155,1435,181"/>
<area shape="rect" href="sample12_8cpp.html" title="Example: bvector<> analysis of bit setting methods." alt="" coords="1459,155,1561,181"/>
<area shape="rect" href="sample14_8cpp.html" title="Example: bvector<> set operations on serialized/compressed BLOBs." alt="" coords="1585,155,1688,181"/>
<area shape="rect" href="sample15_8cpp.html" title="Example: bvector<> methods to find last bit and bit-vectors effective range." alt="" coords="1712,155,1815,181"/>
<area shape="rect" href="sample16_8cpp.html" title="Example: how to use bm::aggregator<> for logical operations." alt="" coords="1839,155,1941,181"/>
<area shape="rect" href="sample17_8cpp.html" title="Example: rank and select operations using rank-select index." alt="" coords="1965,155,2068,181"/>
<area shape="rect" href="sample18_8cpp.html" title="Example: bulk insert iterator." alt="" coords="2092,155,2195,181"/>
<area shape="rect" href="sample19_8cpp.html" title="Example: bit-vector merge." alt="" coords="2219,155,2321,181"/>
<area shape="rect" href="sample20_8cpp.html" title="Example: bvector<> - bit-shifts." alt="" coords="2345,155,2448,181"/>
<area shape="rect" href="sample21_8cpp.html" title="Example: bvector<> - bit-shifts." alt="" coords="2472,155,2575,181"/>
<area shape="rect" href="sample22_8cpp.html" title="Example: bvector<> - ranges and intervals functions." alt="" coords="2599,155,2701,181"/>
<area shape="rect" href="sample23_8cpp.html" title="Example: interval_enumerator<> - interator class for intervals." alt="" coords="2725,155,2828,181"/>
<area shape="rect" href="bvsetalgebra_8cpp.html" title="Example: algebra of sets operations." alt="" coords="2852,155,2971,181"/>
<area shape="rect" href="xsample01_8cpp.html" title="Example: Example: memory consumption techniques." alt="" coords="2995,155,3105,181"/>
<area shape="rect" href="xsample02_8cpp.html" title="Example: sparse_vector<> used for counting sort / historgam construction." alt="" coords="3129,155,3240,181"/>
<area shape="rect" href="xsample03_8cpp.html" title="Example: SNP search in human genome." alt="" coords="3264,155,3375,181"/>
<area shape="rect" href="xsample04_8cpp.html" title="Example: DNA substring search." alt="" coords="3399,155,3509,181"/>
<area shape="rect" href="xsample04a_8cpp.html" title="Example: DNA index construction." alt="" coords="3534,155,3651,181"/>
<area shape="rect" href="xsample05_8cpp.html" title="Example: Example on how to use bit-transposed string sparse vector." alt="" coords="3676,155,3787,181"/>
<area shape="rect" href="xsample06_8cpp.html" title="Example: Use of sparse vector for compressed DNA strings." alt="" coords="3811,155,3921,181"/>
<area shape="rect" href="xsample08_8cpp.html" title=" " alt="" coords="3945,155,4056,181"/>
<area shape="rect" href="strsvsample01_8cpp.html" title="Example: str_sparse_vector<> set values, optimize memory." alt="" coords="4081,155,4211,181"/>
<area shape="rect" href="strsvsample02_8cpp.html" title="Example: str_sparse_vector<> insertion sort example." alt="" coords="4235,155,4366,181"/>
<area shape="rect" href="strsvsample03_8cpp.html" title="Example: str_sparse_vector<> back insert iterator example." alt="" coords="4390,155,4521,181"/>
<area shape="rect" href="strsvsample04_8cpp.html" title="Example: str_sparse_vector<> how to work with NULLs values." alt="" coords="4545,155,4675,181"/>
<area shape="rect" href="strsvsample05_8cpp.html" title="Example: str_sparse_vector<> gather deserialization example." alt="" coords="4699,155,4830,181"/>
<area shape="rect" href="svsample01_8cpp.html" title="Example: sparse_vector<> container set values." alt="" coords="4854,155,4969,181"/>
<area shape="rect" href="svsample02_8cpp.html" title="Example: sparse_vector<> serialization." alt="" coords="4993,155,5107,181"/>
<area shape="rect" href="svsample03_8cpp.html" title="Example: sparse_vector<> merge and fast extraction of content." alt="" coords="5131,155,5246,181"/>
<area shape="rect" href="svsample04_8cpp.html" title="Example: sparse_vector<> with NULL (unset) values." alt="" coords="5270,155,5385,181"/>
<area shape="rect" href="svsample05_8cpp.html" title="Example: sparse_vector<> used for set 2 set remapping (theory of groups Image)" alt="" coords="5409,155,5523,181"/>
<area shape="rect" href="svsample06_8cpp.html" title="Example: sparse_vector<> scan search (non-ordered set functionality)" alt="" coords="5547,155,5662,181"/>
<area shape="rect" href="svsample07_8cpp.html" title="Example: sparse_vector<> lower bound search." alt="" coords="5686,155,5801,181"/>
<area shape="rect" href="svsample08_8cpp.html" title="Example: sparse_vector<> selective de-serialization (gather) and range deserialization." alt="" coords="5825,155,5939,181"/>
<area shape="rect" href="svsample09_8cpp.html" title="Example: Use of sparse vector mismatch search." alt="" coords="5963,155,6078,181"/>
<area shape="rect" href="rscsample01_8cpp.html" title="Example: rsc_sparse_vector<> usage." alt="" coords="6103,155,6224,181"/>
<area shape="rect" href="rscsample02_8cpp.html" title="Example: rsc_sparse_vector<> selective and range de-serialization." alt="" coords="6248,155,6369,181"/>
</map>
</div>
</div>
<p><a href="bmalloc_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbm_1_1block__allocator.html">bm::block_allocator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Default malloc based bitblock allocator class. <a href="classbm_1_1block__allocator.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbm_1_1ptr__allocator.html">bm::ptr_allocator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Default malloc based bitblock allocator class. <a href="classbm_1_1ptr__allocator.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbm_1_1pointer__pool__array.html">bm::pointer_pool_array</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Pool of pointers to buffer cyclic allocations. <a href="classbm_1_1pointer__pool__array.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbm_1_1alloc__pool.html">bm::alloc_pool< BA, PA ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Allocation pool object. <a href="classbm_1_1alloc__pool.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbm_1_1mem__alloc.html">bm::mem_alloc< BA, PA, APool ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">BM style allocator adapter. <a href="classbm_1_1mem__alloc.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacebm"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebm.html">bm</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5e5d4e5a709f1f33dae1e61987feecc3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="bmalloc_8h.html#a5e5d4e5a709f1f33dae1e61987feecc3">BM_ALLOC_ALIGN</a>   16</td></tr>
<tr class="separator:a5e5d4e5a709f1f33dae1e61987feecc3"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga26985a88ce5672ba1995c0dcee0d7d38"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classbm_1_1alloc__pool.html">bm::alloc_pool</a>< block_allocator, ptr_allocator > </td><td class="memItemRight" valign="bottom"><a class="el" href="group__alloc.html#ga26985a88ce5672ba1995c0dcee0d7d38">bm::standard_alloc_pool</a></td></tr>
<tr class="separator:ga26985a88ce5672ba1995c0dcee0d7d38"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab6fee18cc311240a919ee3a94bf85e4a"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classbm_1_1mem__alloc.html">bm::mem_alloc</a>< block_allocator, ptr_allocator, standard_alloc_pool > </td><td class="memItemRight" valign="bottom"><a class="el" href="group__alloc.html#gab6fee18cc311240a919ee3a94bf85e4a">bm::standard_allocator</a></td></tr>
<tr class="separator:gab6fee18cc311240a919ee3a94bf85e4a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5b5607bb436e9251203fc65d7de657fe"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebm.html#a5b5607bb436e9251203fc65d7de657fe">bm::aligned_new_malloc</a> (size_t size)</td></tr>
<tr class="memdesc:a5b5607bb436e9251203fc65d7de657fe"><td class="mdescLeft"> </td><td class="mdescRight">Aligned malloc (unlike classic malloc it throws bad_alloc exception) <a href="namespacebm.html#a5b5607bb436e9251203fc65d7de657fe">More...</a><br /></td></tr>
<tr class="separator:a5b5607bb436e9251203fc65d7de657fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24c8b72e55aa5acc62fecdc941a3c1cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebm.html#a24c8b72e55aa5acc62fecdc941a3c1cb">bm::aligned_free</a> (void *ptr) <a class="el" href="bmdef_8h.html#a40d7d3c011d2128b1f0c392127d7d61e">BMNOEXCEPT</a></td></tr>
<tr class="memdesc:a24c8b72e55aa5acc62fecdc941a3c1cb"><td class="mdescLeft"> </td><td class="mdescRight">Aligned free. <a href="namespacebm.html#a24c8b72e55aa5acc62fecdc941a3c1cb">More...</a><br /></td></tr>
<tr class="separator:a24c8b72e55aa5acc62fecdc941a3c1cb"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Default SIMD friendly allocator. </p>
<p class="definition">Definition in file <a class="el" href="bmalloc_8h_source.html">bmalloc.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a5e5d4e5a709f1f33dae1e61987feecc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e5d4e5a709f1f33dae1e61987feecc3">◆ </a></span>BM_ALLOC_ALIGN</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BM_ALLOC_ALIGN   16</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="bmalloc_8h_source.html#l00032">32</a> of file <a class="el" href="bmalloc_8h_source.html">bmalloc.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
|