File: svsample08_8cpp.html

package info (click to toggle)
bmagic 6.3.0-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 49,956 kB
  • sloc: cpp: 84,298; ansic: 9,703; sh: 1,664; makefile: 742
file content (214 lines) | stat: -rwxr-xr-x 14,319 bytes parent folder | download
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
204
205
206
207
208
209
210
211
212
213
214
<!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++: svsample08.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&amp;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_3bdf3e6bb274ac8533fe300fd76f4e32.html">svsample08</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">svsample08.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Example: sparse_vector&lt;&gt; selective de-serialization (gather) and range deserialization.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;<a class="el" href="bm_8h_source.html">bm.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="bmsparsevec_8h_source.html">bmsparsevec.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="bmsparsevec__serial_8h_source.html">bmsparsevec_serial.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for svsample08.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="svsample08_8cpp__incl.png" border="0" usemap="#svsample08_8cpp" alt=""/></div>
<map name="svsample08_8cpp" id="svsample08_8cpp">
<area shape="rect" title="Example: sparse_vector&lt;&gt; selective de&#45;serialization (gather) and range deserialization." alt="" coords="1749,5,1863,32"/>
<area shape="rect" title=" " alt="" coords="1617,80,1689,107"/>
<area shape="rect" title=" " alt="" coords="1713,80,1769,107"/>
<area shape="rect" href="bm_8h.html" title="Compressed bit&#45;vector bvector&lt;&gt; container, set algebraic methods, traversal iterators." alt="" coords="1454,304,1505,331"/>
<area shape="rect" href="bmsparsevec_8h.html" title="Sparse constainer sparse_vector&lt;&gt; for integer types using bit&#45;transposition transform." alt="" coords="2070,155,2179,181"/>
<area shape="rect" href="bmsparsevec__serial_8h.html" title="Serialization for sparse_vector&lt;&gt;" alt="" coords="2409,80,2555,107"/>
<area shape="rect" title=" " alt="" coords="1404,386,1467,413"/>
<area shape="rect" title=" " alt="" coords="1283,386,1380,413"/>
<area shape="rect" title=" " alt="" coords="1824,386,1903,413"/>
<area shape="rect" title=" " alt="" coords="1491,386,1555,413"/>
<area shape="rect" href="bmdef_8h.html" title="Definitions(internal)" alt="" coords="2205,632,2273,659"/>
<area shape="rect" href="bmconst_8h.html" title="Constants, tables and typedefs." alt="" coords="766,632,849,659"/>
<area shape="rect" href="bmsimd_8h.html" title="SIMD target version definitions." alt="" coords="392,386,471,413"/>
<area shape="rect" title=" " alt="" coords="495,386,565,413"/>
<area shape="rect" title=" " alt="" coords="1732,386,1800,413"/>
<area shape="rect" href="bmfunc_8h.html" title="Bit manipulation primitives (internal)" alt="" coords="2087,475,2162,502"/>
<area shape="rect" href="encoding_8h.html" title="Encoding utilities for serialization (internal)" alt="" coords="1927,475,2013,502"/>
<area shape="rect" href="bmalloc_8h.html" title="Default SIMD friendly allocator." alt="" coords="589,386,668,413"/>
<area shape="rect" title=" " alt="" coords="795,386,884,413"/>
<area shape="rect" title=" " alt="" coords="908,379,1064,420"/>
<area shape="rect" title=" " alt="" coords="2130,386,2213,413"/>
<area shape="rect" title=" " alt="" coords="1089,386,1171,413"/>
<area shape="rect" title=" " alt="" coords="2461,468,2617,509"/>
<area shape="rect" title=" " alt="" coords="1196,386,1259,413"/>
<area shape="rect" title=" " alt="" coords="2252,707,2312,733"/>
<area shape="rect" title=" " alt="" coords="2163,707,2228,733"/>
<area shape="rect" title=" " alt="" coords="777,707,838,733"/>
<area shape="rect" href="bmsse4_8h.html" title="Compute functions for SSE4.2 SIMD instruction set (internal)" alt="" coords="329,475,408,502"/>
<area shape="rect" href="bmsse2_8h.html" title="Compute functions for SSE2 SIMD instruction set (internal)" alt="" coords="432,475,511,502"/>
<area shape="rect" title=" " alt="" coords="535,557,618,584"/>
<area shape="rect" title=" " alt="" coords="610,632,701,659"/>
<area shape="rect" title=" " alt="" coords="250,557,341,584"/>
<area shape="rect" title=" " alt="" coords="23,557,114,584"/>
<area shape="rect" title=" " alt="" coords="139,557,225,584"/>
<area shape="rect" href="bmsse__util_8h.html" title="Compute functions for SSE SIMD instruction set (internal)" alt="" coords="415,557,511,584"/>
<area shape="rect" href="bmutil_8h.html" title="Bit manipulation primitives (internal)" alt="" coords="1897,557,1965,584"/>
<area shape="rect" title=" " alt="" coords="2010,557,2090,584"/>
<area shape="rect" title=" " alt="" coords="535,475,599,502"/>
<area shape="rect" title=" " alt="" coords="623,475,669,502"/>
<area shape="rect" href="bmtrans_8h.html" title="Utilities for bit transposition (internal) (experimental!)" alt="" coords="2690,386,2770,413"/>
<area shape="rect" href="bmalgo__impl_8h.html" title="Algorithms for bvector&lt;&gt;" alt="" coords="2186,475,2293,502"/>
<area shape="rect" href="bmbmatrix_8h.html" title="basic bit&#45;matrix class and utilities" alt="" coords="1844,229,1939,256"/>
<area shape="rect" href="bmserial_8h.html" title="Serialization / compression of bvector&lt;&gt;. Set theoretical operations on compressed BLOBs." alt="" coords="2397,304,2479,331"/>
<area shape="rect" href="bmalgo_8h.html" title="Algorithms for bvector&lt;&gt; (main include)" alt="" coords="2389,386,2463,413"/>
<area shape="rect" href="bmxor_8h.html" title="Functions and utilities for XOR filters (internal)" alt="" coords="2317,475,2386,502"/>
</map>
</div>
</div>
<p><a href="svsample08_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:a0d169ec2ee5a4e5265f850f56a3b3452"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classbm_1_1sparse__vector.html">bm::sparse_vector</a>&lt; unsigned, <a class="el" href="classbm_1_1bvector.html">bm::bvector</a>&lt;&gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="svsample08_8cpp.html#a0d169ec2ee5a4e5265f850f56a3b3452">svector_u32</a></td></tr>
<tr class="separator:a0d169ec2ee5a4e5265f850f56a3b3452"><td class="memSeparator" colspan="2">&#160;</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:ab6a4303cab1279938d0d2a2d74645336"><td class="memTemplParams" colspan="2">template&lt;typename SV &gt; </td></tr>
<tr class="memitem:ab6a4303cab1279938d0d2a2d74645336"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="svsample08_8cpp.html#ab6a4303cab1279938d0d2a2d74645336">PrintSV</a> (const SV &amp;sv)</td></tr>
<tr class="memdesc:ab6a4303cab1279938d0d2a2d74645336"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print sparse vector content.  <a href="svsample08_8cpp.html#ab6a4303cab1279938d0d2a2d74645336">More...</a><br /></td></tr>
<tr class="separator:ab6a4303cab1279938d0d2a2d74645336"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="svsample08_8cpp.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr class="separator:a840291bc02cba5474a4cb46a9b9566fe"><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>Example: sparse_vector&lt;&gt; selective de-serialization (gather) and range deserialization. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="strsvsample05_8cpp.html" title="Example: str_sparse_vector&lt;&gt; gather deserialization example.">strsvsample05.cpp</a> </dd></dl>

<p class="definition">Definition in file <a class="el" href="svsample08_8cpp_source.html">svsample08.cpp</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a0d169ec2ee5a4e5265f850f56a3b3452"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d169ec2ee5a4e5265f850f56a3b3452">&#9670;&nbsp;</a></span>svector_u32</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classbm_1_1sparse__vector.html">bm::sparse_vector</a>&lt;unsigned, <a class="el" href="classbm_1_1bvector.html">bm::bvector</a>&lt;&gt; &gt; <a class="el" href="xsample06_8cpp.html#a0d169ec2ee5a4e5265f850f56a3b3452">svector_u32</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="svsample08_8cpp-example.html#a2">svsample08.cpp</a>.</dd>
</dl>

<p class="definition">Definition at line <a class="el" href="svsample08_8cpp_source.html#l00061">61</a> of file <a class="el" href="svsample08_8cpp_source.html">svsample08.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a840291bc02cba5474a4cb46a9b9566fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a840291bc02cba5474a4cb46a9b9566fe">&#9670;&nbsp;</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&#160;</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="svsample08_8cpp-example.html#a3">svsample08.cpp</a>.</dd>
</dl>

<p class="definition">Definition at line <a class="el" href="svsample08_8cpp_source.html#l00063">63</a> of file <a class="el" href="svsample08_8cpp_source.html">svsample08.cpp</a>.</p>

<p class="reference">References <a class="el" href="bm_8h_source.html#l00047">BM_DECLARE_TEMP_BLOCK</a>, <a class="el" href="bmsparsevec__serial_8h_source.html#l00106">bm::sparse_vector_serial_layout&lt; SV &gt;::buf()</a>, <a class="el" href="bmsparsevec__serial_8h_source.html#l00243">bm::sparse_vector_deserializer&lt; SV &gt;::deserialize()</a>, <a class="el" href="bmsparsevec__serial_8h_source.html#l00788">bm::sparse_vector_deserializer&lt; SV &gt;::deserialize_range()</a>, <a class="el" href="bmsparsevec_8h_source.html#l00506">bm::sparse_vector&lt; Val, BV &gt;::get_back_inserter()</a>, <a class="el" href="bmsparsevec_8h_source.html#l01728">bm::sparse_vector&lt; Val, BV &gt;::optimize()</a>, <a class="el" href="svsample08_8cpp_source.html#l00046">PrintSV()</a>, <a class="el" href="bmsparsevec__serial_8h_source.html#l00628">bm::sparse_vector_serializer&lt; SV &gt;::serialize()</a>, <a class="el" href="bm_8h_source.html#l03581">bm::bvector&lt; Alloc &gt;::set()</a>, <a class="el" href="bmsparsevec__serial_8h_source.html#l00183">bm::sparse_vector_serializer&lt; SV &gt;::set_bookmarks()</a>, and <a class="el" href="bmconst_8h_source.html#l00215">bm::use_null</a>.</p>

</div>
</div>
<a id="ab6a4303cab1279938d0d2a2d74645336"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6a4303cab1279938d0d2a2d74645336">&#9670;&nbsp;</a></span>PrintSV()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename SV &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void PrintSV </td>
          <td>(</td>
          <td class="paramtype">const SV &amp;&#160;</td>
          <td class="paramname"><em>sv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print sparse vector content. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="svsample08_8cpp-example.html#a0">svsample08.cpp</a>.</dd>
</dl>

<p class="definition">Definition at line <a class="el" href="svsample08_8cpp_source.html#l00046">46</a> of file <a class="el" href="svsample08_8cpp_source.html">svsample08.cpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="svsample08_8cpp_source.html#l00063">main()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>