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
|
<!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++: strsvsample01.cpp 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_6f9635d4fbfa321d4c00f29df5cd540c.html">samples</a></li><li class="navelem"><a class="el" href="dir_80d802a97eb5da7e28f79f28952b506d.html">strsvsample01</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">strsvsample01.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Example: str_sparse_vector<> set values, optimize memory.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <iostream></code><br />
<code>#include <string></code><br />
<code>#include <vector></code><br />
<code>#include "<a class="el" href="bm_8h_source.html">bm.h</a>"</code><br />
<code>#include "<a class="el" href="bmstrsparsevec_8h_source.html">bmstrsparsevec.h</a>"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for strsvsample01.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="strsvsample01_8cpp__incl.png" border="0" usemap="#strsvsample01_8cpp" alt=""/></div>
<map name="strsvsample01_8cpp" id="strsvsample01_8cpp">
<area shape="rect" title="Example: str_sparse_vector<> set values, optimize memory." alt="" coords="144,5,275,32"/>
<area shape="rect" title=" " alt="" coords="5,80,77,107"/>
<area shape="rect" title=" " alt="" coords="102,80,157,107"/>
<area shape="rect" title=" " alt="" coords="181,80,237,107"/>
<area shape="rect" href="bm_8h.html" title="Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators." alt="" coords="1232,229,1283,256"/>
<area shape="rect" href="bmstrsparsevec_8h.html" title="string sparse vector based on bit-transposed matrix" alt="" coords="1881,80,2005,107"/>
<area shape="rect" title=" " alt="" coords="1278,311,1341,338"/>
<area shape="rect" title=" " alt="" coords="1157,311,1254,338"/>
<area shape="rect" title=" " alt="" coords="2105,311,2183,338"/>
<area shape="rect" title=" " alt="" coords="1365,311,1429,338"/>
<area shape="rect" href="bmdef_8h.html" title="Definitions(internal)" alt="" coords="1623,557,1691,584"/>
<area shape="rect" href="bmconst_8h.html" title="Constants, tables and typedefs." alt="" coords="360,557,443,584"/>
<area shape="rect" href="bmsimd_8h.html" title="SIMD target version definitions." alt="" coords="1699,311,1778,338"/>
<area shape="rect" title=" " alt="" coords="1505,311,1575,338"/>
<area shape="rect" title=" " alt="" coords="1961,311,2029,338"/>
<area shape="rect" href="bmfunc_8h.html" title="Bit manipulation primitives (internal)" alt="" coords="880,401,955,427"/>
<area shape="rect" href="encoding_8h.html" title="Encoding utilities for serialization (internal)" alt="" coords="464,401,549,427"/>
<area shape="rect" href="bmalloc_8h.html" title="Default SIMD friendly allocator." alt="" coords="515,311,594,338"/>
<area shape="rect" title=" " alt="" coords="618,311,707,338"/>
<area shape="rect" title=" " alt="" coords="731,304,887,345"/>
<area shape="rect" title=" " alt="" coords="1853,311,1936,338"/>
<area shape="rect" title=" " alt="" coords="912,311,995,338"/>
<area shape="rect" title=" " alt="" coords="979,393,1135,435"/>
<area shape="rect" title=" " alt="" coords="1070,311,1133,338"/>
<area shape="rect" title=" " alt="" coords="1670,632,1730,659"/>
<area shape="rect" title=" " alt="" coords="1581,632,1646,659"/>
<area shape="rect" title=" " alt="" coords="371,632,432,659"/>
<area shape="rect" href="bmsse4_8h.html" title="Compute functions for SSE4.2 SIMD instruction set (internal)" alt="" coords="1615,401,1694,427"/>
<area shape="rect" href="bmsse2_8h.html" title="Compute functions for SSE2 SIMD instruction set (internal)" alt="" coords="1342,401,1421,427"/>
<area shape="rect" title=" " alt="" coords="1453,483,1536,509"/>
<area shape="rect" title=" " alt="" coords="1200,557,1291,584"/>
<area shape="rect" title=" " alt="" coords="1723,483,1813,509"/>
<area shape="rect" title=" " alt="" coords="1837,483,1928,509"/>
<area shape="rect" title=" " alt="" coords="1611,483,1698,509"/>
<area shape="rect" href="bmsse__util_8h.html" title="Compute functions for SSE SIMD instruction set (internal)" alt="" coords="1333,483,1429,509"/>
<area shape="rect" href="bmutil_8h.html" title="Bit manipulation primitives (internal)" alt="" coords="987,483,1055,509"/>
<area shape="rect" title=" " alt="" coords="672,483,752,509"/>
<area shape="rect" title=" " alt="" coords="643,401,707,427"/>
<area shape="rect" title=" " alt="" coords="573,401,619,427"/>
<area shape="rect" href="bmtrans_8h.html" title="Utilities for bit transposition (internal) (experimental!)" alt="" coords="2183,229,2263,256"/>
<area shape="rect" href="bmalgo_8h.html" title="Algorithms for bvector<> (main include)" alt="" coords="1600,311,1675,338"/>
<area shape="rect" href="bmbmatrix_8h.html" title="basic bit-matrix class and utilities" alt="" coords="1981,155,2075,181"/>
<area shape="rect" href="bmalgo__impl_8h.html" title="Algorithms for bvector<>" alt="" coords="1160,401,1267,427"/>
</map>
</div>
</div>
<p><a href="strsvsample01_8cpp_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="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a4ca03dfc387c36e69ea916426572acdc"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classbm_1_1bvector.html">bm::bvector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="strsvsample01_8cpp.html#a4ca03dfc387c36e69ea916426572acdc">bvector_type</a></td></tr>
<tr class="separator:a4ca03dfc387c36e69ea916426572acdc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a40e0964f33e14e29a808ca1e6c68c11c"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classbm_1_1str__sparse__vector.html">bm::str_sparse_vector</a>< char, <a class="el" href="strsvsample01_8cpp.html#a4ca03dfc387c36e69ea916426572acdc">bvector_type</a>, 32 > </td><td class="memItemRight" valign="bottom"><a class="el" href="strsvsample01_8cpp.html#a40e0964f33e14e29a808ca1e6c68c11c">str_sv_type</a></td></tr>
<tr class="separator:a40e0964f33e14e29a808ca1e6c68c11c"><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:a840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="strsvsample01_8cpp.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr class="separator:a840291bc02cba5474a4cb46a9b9566fe"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Example: str_sparse_vector<> set values, optimize memory. </p>
<p class="definition">Definition in file <a class="el" href="strsvsample01_8cpp_source.html">strsvsample01.cpp</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a4ca03dfc387c36e69ea916426572acdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ca03dfc387c36e69ea916426572acdc">◆ </a></span>bvector_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classbm_1_1bvector.html">bm::bvector</a> <a class="el" href="strsvsample01_8cpp.html#a4ca03dfc387c36e69ea916426572acdc">bvector_type</a></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="strsvsample01_8cpp-example.html#a1">strsvsample01.cpp</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="strsvsample01_8cpp_source.html#l00039">39</a> of file <a class="el" href="strsvsample01_8cpp_source.html">strsvsample01.cpp</a>.</p>
</div>
</div>
<a id="a40e0964f33e14e29a808ca1e6c68c11c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40e0964f33e14e29a808ca1e6c68c11c">◆ </a></span>str_sv_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classbm_1_1str__sparse__vector.html">bm::str_sparse_vector</a><char, <a class="el" href="strsvsample01_8cpp.html#a4ca03dfc387c36e69ea916426572acdc">bvector_type</a>, 32> <a class="el" href="strsvsample01_8cpp.html#a40e0964f33e14e29a808ca1e6c68c11c">str_sv_type</a></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="strsvsample01_8cpp-example.html#a3">strsvsample01.cpp</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="strsvsample01_8cpp_source.html#l00047">47</a> of file <a class="el" href="strsvsample01_8cpp_source.html">strsvsample01.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a840291bc02cba5474a4cb46a9b9566fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a840291bc02cba5474a4cb46a9b9566fe">◆ </a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="strsvsample01_8cpp-example.html#a4">strsvsample01.cpp</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="strsvsample01_8cpp_source.html#l00049">49</a> of file <a class="el" href="strsvsample01_8cpp_source.html">strsvsample01.cpp</a>.</p>
<p class="reference">References <a class="el" href="bmstrsparsevec_8h_source.html#l00494">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::assign()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l01700">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::begin()</a>, <a class="el" href="bm_8h_source.html#l00047">BM_DECLARE_TEMP_BLOCK</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l00709">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::end()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l01185">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::erase()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l01169">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::insert()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l01323">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::optimize()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l00532">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::push_back()</a>, <a class="el" href="bmstrsparsevec_8h_source.html#l01158">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::set()</a>, and <a class="el" href="bmstrsparsevec_8h_source.html#l00637">bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::size()</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>
|