~ubuntu-branches/ubuntu/trusty/bmagic/trusty

« back to all changes in this revision

Viewing changes to doc/html/a00104.html

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2010-01-24 14:45:39 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100124144539-4ipk5rt64dpp38hl
Tags: 3.6.3-1
* New upstream release
* debian/patches/config.guess.patch: drop obsolete patch
* Add ${misc:Depends} as requested by lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
 
<title>BitMagic: sample4.cpp File Reference</title>
 
5
<title>BitMagic: encoding.h File Reference</title>
6
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
8
</head>
27
27
  </div>
28
28
</div>
29
29
<div class="contents">
30
 
<h1>sample4.cpp File Reference</h1><code>#include &lt;stdlib.h&gt;</code><br/>
31
 
<code>#include &lt;iostream&gt;</code><br/>
32
 
<code>#include &quot;<a class="el" href="a00084_source.html">bm.h</a>&quot;</code><br/>
33
 
<code>#include &quot;<a class="el" href="a00092_source.html">bmserial.h</a>&quot;</code><br/>
34
 
<div class="dynheader">
35
 
Include dependency graph for sample4.cpp:</div>
36
 
<div class="dynsection">
37
 
<div class="center"><img src="a00152.png" border="0" usemap="#sample4_8cpp_map" alt=""/></div>
38
 
<map name="sample4_8cpp_map" id="sample4_8cpp">
39
 
<area shape="rect" href="a00084.html" title="bm.h" alt="" coords="627,160,677,189"/><area shape="rect" href="a00092.html" title="bmserial.h" alt="" coords="859,83,939,112"/><area shape="rect" href="a00088.html" title="bmconst.h" alt="" coords="540,392,623,421"/><area shape="rect" href="a00089.html" title="bmdef.h" alt="" coords="951,392,1017,421"/><area shape="rect" href="a00093.html" title="bmsse2.h" alt="" coords="312,237,389,267"/><area shape="rect" href="a00090.html" title="bmfunc.h" alt="" coords="1035,237,1109,267"/><area shape="rect" href="a00099.html" title="bmvmin.h" alt="" coords="507,237,584,267"/><area shape="rect" href="a00100.html" title="encoding.h" alt="" coords="928,237,1011,267"/><area shape="rect" href="a00087.html" title="bmalloc.h" alt="" coords="75,237,152,267"/><area shape="rect" href="a00097.html" title="bmundef.h" alt="" coords="771,237,853,267"/><area shape="rect" href="a00095.html" title="bmsse_util.h" alt="" coords="227,315,323,344"/><area shape="rect" href="a00098.html" title="bmutil.h" alt="" coords="864,315,931,344"/><area shape="rect" href="a00096.html" title="bmtrans.h" alt="" coords="897,160,977,189"/><area shape="rect" href="a00086.html" title="bmalgo_impl.h" alt="" coords="1103,160,1207,189"/></map>
 
30
<h1>encoding.h File Reference</h1><code>#include &lt;memory.h&gt;</code><br/>
 
31
<code>#include &quot;<a class="el" href="a00102_source.html">bmutil.h</a>&quot;</code><br/>
 
32
<div class="dynheader">
 
33
Include dependency graph for encoding.h:</div>
 
34
<div class="dynsection">
 
35
<div class="center"><img src="a00154.png" border="0" usemap="#encoding_8h_map" alt=""/></div>
 
36
<map name="encoding_8h_map" id="encoding_8h">
 
37
<area shape="rect" href="a00102.html" title="bmutil.h" alt="" coords="109,83,176,112"/><area shape="rect" href="a00092.html" title="bmdef.h" alt="" coords="60,160,127,189"/><area shape="rect" href="a00091.html" title="bmconst.h" alt="" coords="151,160,233,189"/></map>
 
38
</div>
 
39
<div class="dynheader">
 
40
This graph shows which files directly or indirectly include this file:</div>
 
41
<div class="dynsection">
 
42
<div class="center"><img src="a00155.png" border="0" usemap="#encoding_8hdep_map" alt=""/></div>
 
43
<map name="encoding_8hdep_map" id="encoding_8hdep">
 
44
<area shape="rect" href="a00087.html" title="bm.h" alt="" coords="461,83,512,112"/><area shape="rect" href="a00096.html" title="bmserial.h" alt="" coords="5,160,85,189"/><area shape="rect" href="a00088.html" title="bmalgo.h" alt="" coords="1219,160,1293,189"/><area shape="rect" href="a00114.html" title="sample9.cpp" alt="" coords="751,237,847,267"/><area shape="rect" href="a00109.html" title="sample4.cpp" alt="" coords="16,237,112,267"/><area shape="rect" href="a00095.html" title="bmrandom.h" alt="" coords="160,160,253,189"/><area shape="rect" href="a00106.html" title="sample10.cpp" alt="" coords="197,237,299,267"/><area shape="rect" href="a00105.html" title="sample1.cpp" alt="" coords="379,160,475,189"/><area shape="rect" href="a00107.html" title="sample2.cpp" alt="" coords="499,160,595,189"/><area shape="rect" href="a00108.html" title="sample3.cpp" alt="" coords="619,160,715,189"/><area shape="rect" href="a00110.html" title="sample5.cpp" alt="" coords="739,160,835,189"/><area shape="rect" href="a00111.html" title="sample6.cpp" alt="" coords="859,160,955,189"/><area shape="rect" href="a00112.html" title="sample7.cpp" alt="" coords="979,160,1075,189"/><area shape="rect" href="a00113.html" title="sample8.cpp" alt="" coords="1099,160,1195,189"/></map>
40
45
</div>
41
46
 
42
47
<p><a href="a00104_source.html">Go to the source code of this file.</a></p>
43
48
<table border="0" cellpadding="0" cellspacing="0">
44
 
<tr><td colspan="2"><h2>Functions</h2></td></tr>
45
 
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html#a663e1bc930c9ade56c0bc436b8860a1e">fill_bvector</a> (<a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; *bv)</td></tr>
46
 
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html#aeb4ca6f0a986ad6ae67d1f7124fdc400">print_statistics</a> (const <a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &amp;bv)</td></tr>
47
 
<tr><td class="memItemLeft" align="right" valign="top">unsigned char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html#a2ba5ce11270f84d292466449521b695f">serialize_bvector</a> (<a class="el" href="a00080.html">bm::serializer</a>&lt; <a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &gt; &amp;bvs, <a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &amp;bv)</td></tr>
48
 
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
49
 
<tr><td colspan="2"><h2>Variables</h2></td></tr>
50
 
<tr><td class="memItemLeft" align="right" valign="top">const unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html#a8652d848be89c1f9b0a77327ee32fc0f">MAX_VALUE</a> = 1000000</td></tr>
 
49
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
 
50
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00062.html">bm::encoder</a></td></tr>
 
51
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Memory encoding.  <a href="a00062.html#_details">More...</a><br/></td></tr>
 
52
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00055.html">bm::decoder_base</a></td></tr>
 
53
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Base class for all decoding functionality.  <a href="a00055.html#_details">More...</a><br/></td></tr>
 
54
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00054.html">bm::decoder</a></td></tr>
 
55
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class for decoding data from memory buffer.  <a href="a00054.html#_details">More...</a><br/></td></tr>
 
56
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html">bm::decoder_little_endian</a></td></tr>
 
57
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class for decoding data from memory buffer.  <a href="a00056.html#_details">More...</a><br/></td></tr>
 
58
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00031.html">bm::bit_out&lt; TEncoder &gt;</a></td></tr>
 
59
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Byte based writer for un-aligned bit streaming.  <a href="a00031.html#_details">More...</a><br/></td></tr>
 
60
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html">bm::bit_in&lt; TDecoder &gt;</a></td></tr>
 
61
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Byte based reader for un-aligned bit streaming.  <a href="a00029.html#_details">More...</a><br/></td></tr>
 
62
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00066.html">bm::gamma_encoder&lt; T, TBitIO &gt;</a></td></tr>
 
63
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Functor for Elias Gamma encoding.  <a href="a00066.html#_details">More...</a><br/></td></tr>
 
64
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html">bm::gamma_decoder&lt; T, TBitIO &gt;</a></td></tr>
 
65
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elias Gamma <a class="el" href="a00054.html" title="Class for decoding data from memory buffer.">decoder</a>.  <a href="a00065.html#_details">More...</a><br/></td></tr>
 
66
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
 
67
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115.html">bm</a></td></tr>
 
68
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
 
69
<tr><td class="memItemLeft" align="right" valign="top">typedef decoder&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00115.html#ac36d9b78ebf78baf0b92dc61487d9847">bm::decoder_big_endian</a></td></tr>
 
70
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class for decoding data from memory buffer.  <a href="#ac36d9b78ebf78baf0b92dc61487d9847"></a><br/></td></tr>
51
71
</table>
52
 
<hr/><h2>Function Documentation</h2>
53
 
<a class="anchor" id="a663e1bc930c9ade56c0bc436b8860a1e"></a><!-- doxytag: member="sample4.cpp::fill_bvector" ref="a663e1bc930c9ade56c0bc436b8860a1e" args="(bm::bvector&lt;&gt; *bv)" -->
54
 
<div class="memitem">
55
 
<div class="memproto">
56
 
      <table class="memname">
57
 
        <tr>
58
 
          <td class="memname">void fill_bvector </td>
59
 
          <td>(</td>
60
 
          <td class="paramtype"><a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; *&nbsp;</td>
61
 
          <td class="paramname"> <em>bv</em></td>
62
 
          <td>&nbsp;)&nbsp;</td>
63
 
          <td></td>
64
 
        </tr>
65
 
      </table>
66
 
</div>
67
 
<div class="memdoc">
68
 
 
69
 
<p>Definition at line <a class="el" href="a00104_source.html#l00052">52</a> of file <a class="el" href="a00104_source.html">sample4.cpp</a>.</p>
70
 
 
71
 
<p>References <a class="el" href="a00103_source.html#l00043">MAX_VALUE</a>, and <a class="el" href="a00084_source.html#l00950">bm::bvector&lt; Alloc, MS &gt;::set_bit()</a>.</p>
72
 
 
73
 
</div>
74
 
</div>
75
 
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="sample4.cpp::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
76
 
<div class="memitem">
77
 
<div class="memproto">
78
 
      <table class="memname">
79
 
        <tr>
80
 
          <td class="memname">int main </td>
81
 
          <td>(</td>
82
 
          <td class="paramtype">void&nbsp;</td>
83
 
          <td class="paramname"></td>
84
 
          <td>&nbsp;)&nbsp;</td>
85
 
          <td></td>
86
 
        </tr>
87
 
      </table>
88
 
</div>
89
 
<div class="memdoc">
90
 
 
91
 
<p>Definition at line <a class="el" href="a00104_source.html#l00107">107</a> of file <a class="el" href="a00104_source.html">sample4.cpp</a>.</p>
92
 
 
93
 
<p>References <a class="el" href="a00088_source.html#l00117">bm::BM_GAP</a>, <a class="el" href="a00092_source.html#l00524">bm::serializer&lt; BV &gt;::byte_order_serialization()</a>, <a class="el" href="a00092_source.html#l01090">bm::deserialize()</a>, <a class="el" href="a00103_source.html#l00049">fill_bvector()</a>, <a class="el" href="a00092_source.html#l00518">bm::serializer&lt; BV &gt;::gap_length_serialization()</a>, <a class="el" href="a00084_source.html#l01833">bm::bvector&lt; Alloc, MS &gt;::optimize()</a>, <a class="el" href="a00103_source.html#l00062">print_statistics()</a>, <a class="el" href="a00104_source.html#l00077">serialize_bvector()</a>, <a class="el" href="a00092_source.html#l00499">bm::serializer&lt; BV &gt;::set_compression_level()</a>, and <a class="el" href="a00084_source.html#l01322">bm::bvector&lt; Alloc, MS &gt;::set_new_blocks_strat()</a>.</p>
94
 
 
95
 
</div>
96
 
</div>
97
 
<a class="anchor" id="aeb4ca6f0a986ad6ae67d1f7124fdc400"></a><!-- doxytag: member="sample4.cpp::print_statistics" ref="aeb4ca6f0a986ad6ae67d1f7124fdc400" args="(const bm::bvector&lt;&gt; &amp;bv)" -->
98
 
<div class="memitem">
99
 
<div class="memproto">
100
 
      <table class="memname">
101
 
        <tr>
102
 
          <td class="memname">void print_statistics </td>
103
 
          <td>(</td>
104
 
          <td class="paramtype">const <a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &amp;&nbsp;</td>
105
 
          <td class="paramname"> <em>bv</em></td>
106
 
          <td>&nbsp;)&nbsp;</td>
107
 
          <td></td>
108
 
        </tr>
109
 
      </table>
110
 
</div>
111
 
<div class="memdoc">
112
 
 
113
 
<p>Definition at line <a class="el" href="a00104_source.html#l00064">64</a> of file <a class="el" href="a00104_source.html">sample4.cpp</a>.</p>
114
 
 
115
 
<p>References <a class="el" href="a00090_source.html#l00051">bm::bv_statistics::bit_blocks</a>, <a class="el" href="a00084_source.html#l02042">bm::bvector&lt; Alloc, MS &gt;::calc_stat()</a>, <a class="el" href="a00084_source.html#l01641">bm::bvector&lt; Alloc, MS &gt;::count()</a>, <a class="el" href="a00090_source.html#l00053">bm::bv_statistics::gap_blocks</a>, <a class="el" href="a00090_source.html#l00055">bm::bv_statistics::max_serialize_mem</a>, and <a class="el" href="a00090_source.html#l00057">bm::bv_statistics::memory_used</a>.</p>
116
 
 
117
 
</div>
118
 
</div>
119
 
<a class="anchor" id="a2ba5ce11270f84d292466449521b695f"></a><!-- doxytag: member="sample4.cpp::serialize_bvector" ref="a2ba5ce11270f84d292466449521b695f" args="(bm::serializer&lt; bm::bvector&lt;&gt; &gt; &amp;bvs, bm::bvector&lt;&gt; &amp;bv)" -->
120
 
<div class="memitem">
121
 
<div class="memproto">
122
 
      <table class="memname">
123
 
        <tr>
124
 
          <td class="memname">unsigned char* serialize_bvector </td>
125
 
          <td>(</td>
126
 
          <td class="paramtype"><a class="el" href="a00080.html">bm::serializer</a>&lt; <a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &gt; &amp;&nbsp;</td>
127
 
          <td class="paramname"> <em>bvs</em>, </td>
128
 
        </tr>
129
 
        <tr>
130
 
          <td class="paramkey"></td>
131
 
          <td></td>
132
 
          <td class="paramtype"><a class="el" href="a00043.html">bm::bvector</a>&lt;&gt; &amp;&nbsp;</td>
133
 
          <td class="paramname"> <em>bv</em></td><td>&nbsp;</td>
134
 
        </tr>
135
 
        <tr>
136
 
          <td></td>
137
 
          <td>)</td>
138
 
          <td></td><td></td><td></td>
139
 
        </tr>
140
 
      </table>
141
 
</div>
142
 
<div class="memdoc">
143
 
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00004.html#a12">sample4.cpp</a>.</dd>
144
 
</dl>
145
 
<p>Definition at line <a class="el" href="a00104_source.html#l00077">77</a> of file <a class="el" href="a00104_source.html">sample4.cpp</a>.</p>
146
 
 
147
 
<p>References <a class="el" href="a00090_source.html#l00051">bm::bv_statistics::bit_blocks</a>, <a class="el" href="a00084_source.html#l02042">bm::bvector&lt; Alloc, MS &gt;::calc_stat()</a>, <a class="el" href="a00084_source.html#l01641">bm::bvector&lt; Alloc, MS &gt;::count()</a>, <a class="el" href="a00090_source.html#l00053">bm::bv_statistics::gap_blocks</a>, <a class="el" href="a00090_source.html#l00055">bm::bv_statistics::max_serialize_mem</a>, <a class="el" href="a00090_source.html#l00057">bm::bv_statistics::memory_used</a>, and <a class="el" href="a00084_source.html#l01833">bm::bvector&lt; Alloc, MS &gt;::optimize()</a>.</p>
148
 
 
149
 
<p>Referenced by <a class="el" href="a00104_source.html#l00107">main()</a>.</p>
150
 
 
151
 
</div>
152
 
</div>
153
 
<hr/><h2>Variable Documentation</h2>
154
 
<a class="anchor" id="a8652d848be89c1f9b0a77327ee32fc0f"></a><!-- doxytag: member="sample4.cpp::MAX_VALUE" ref="a8652d848be89c1f9b0a77327ee32fc0f" args="" -->
155
 
<div class="memitem">
156
 
<div class="memproto">
157
 
      <table class="memname">
158
 
        <tr>
159
 
          <td class="memname">const unsigned <a class="el" href="a00104.html#a8652d848be89c1f9b0a77327ee32fc0f">MAX_VALUE</a> = 1000000</td>
160
 
        </tr>
161
 
      </table>
162
 
</div>
163
 
<div class="memdoc">
164
 
 
165
 
<p>Definition at line <a class="el" href="a00104_source.html#l00046">46</a> of file <a class="el" href="a00104_source.html">sample4.cpp</a>.</p>
166
 
 
167
 
</div>
168
 
</div>
169
 
</div>
170
 
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Nov 22 10:49:37 2009 for BitMagic by&nbsp;
 
72
</div>
 
73
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Jan 8 20:09:19 2010 for BitMagic by&nbsp;
171
74
<a href="http://www.doxygen.org/index.html">
172
75
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
173
76
</body>