1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>BitMagic: Small sets functionality</title>
3
<title>BitMagic: bm::decoder Class Reference</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
6
<!-- Generated by Doxygen 1.4.1 -->
7
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="examples.html">Examples</a></div>
8
<h1>Small sets functionality<br>
10
[<a class="el" href="a00094.html">BitMagic C++ Library</a>]</small>
13
Collaboration diagram for Small sets functionality:<center><table><tr><td><img src="a00098.png" border="0" alt="" usemap="#a00159_map">
14
<map name="a00159_map">
15
<area href="a00094.html" shape="rect" coords="19,5,152,26" alt="">
16
</map></td></tr></table></center>
17
<table border="0" cellpadding="0" cellspacing="0">
9
<a class="el" href="a00129.html">bm</a>::<a class="el" href="a00098.html">decoder</a></div>
10
<h1>bm::decoder Class Reference</h1>Class for decoding data from memory buffer.
11
<a href="#_details">More...</a>
13
<code>#include <<a class="el" href="a00145.html">encoding.h</a>></code>
15
Inheritance diagram for bm::decoder:<p><center><img src="a00225.png" border="0" usemap="#a00226" alt="Inheritance graph"></center>
17
<area href="a00099.html" shape="rect" coords="7,16,124,37" alt="">
19
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for bm::decoder:<p><center><img src="a00227.png" border="0" usemap="#a00228" alt="Collaboration graph"></center>
21
<area href="a00099.html" shape="rect" coords="7,16,124,37" alt="">
23
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><table border="0" cellpadding="0" cellspacing="0">
19
<tr><td colspan="2"><br><h2>Files</h2></td></tr>
20
<tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="a00089.html">sample7.cpp</a></td></tr>
22
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
23
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00072.html">bm::miniset< A, N ></a></td></tr>
25
<tr><td class="mdescLeft"> </td><td class="mdescRight">Template class implements memory saving set functionality. <a href="a00072.html#_details">More...</a><br></td></tr>
26
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00059.html">bm::bvmini< N ></a></td></tr>
28
<tr><td class="mdescLeft"> </td><td class="mdescRight">Mini bitvector used in bvector template to keep block type flags. <a href="a00059.html#_details">More...</a><br></td></tr>
25
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
26
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a0">decoder</a> (const unsigned char *buf)</td></tr>
28
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construction. <a href="#a0"></a><br></td></tr>
29
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00129.html#a28">bm::short_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a1">get_16</a> ()</td></tr>
31
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads 16bit word from the decoding buffer. <a href="#a1"></a><br></td></tr>
32
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00129.html#a27">bm::word_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a2">get_32</a> ()</td></tr>
34
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads 32 bit word from the decoding buffer. <a href="#a2"></a><br></td></tr>
35
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a3">get_32</a> (<a class="el" href="a00129.html#a27">bm::word_t</a> *w, unsigned count)</td></tr>
37
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads block of 32-bit words from the decoding buffer. <a href="#a3"></a><br></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a4">get_16</a> (<a class="el" href="a00129.html#a28">bm::short_t</a> *s, unsigned count)</td></tr>
40
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads block of 32-bit words from the decoding buffer. <a href="#a4"></a><br></td></tr>
30
42
<hr><a name="_details"></a><h2>Detailed Description</h2>
31
Templates in this group are used to keep block types in BM library. Classes of this group can tune bvector template (MS parameter) for best performance or minimal memory usage. <hr size="1"><address style="align: right;"><small>Generated on Thu Apr 20 13:29:10 2006 for BitMagic by
43
Class for decoding data from memory buffer.
45
Properly handles aligment issues with integer data types.
49
Definition at line <a class="el" href="a00145.html#l00087">87</a> of file <a class="el" href="a00145.html">encoding.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
50
<a class="anchor" name="a0" doxytag="bm::decoder::decoder"></a><p>
51
<table class="mdTable" cellpadding="2" cellspacing="0">
54
<table cellpadding="0" cellspacing="0" border="0">
56
<td class="md" nowrap valign="top">bm::decoder::decoder </td>
57
<td class="md" valign="top">( </td>
58
<td class="md" nowrap valign="top">const unsigned char * </td>
59
<td class="mdname1" valign="top" nowrap> <em>buf</em> </td>
60
<td class="md" valign="top"> ) </td>
61
<td class="md" nowrap><code> [inline]</code></td>
67
<table cellspacing="5" cellpadding="0" border="0">
77
<dl compact><dt><b>Parameters:</b></dt><dd>
78
<table border="0" cellspacing="2" cellpadding="0">
79
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>- pointer to the decoding memory. </td></tr>
84
Definition at line <a class="el" href="a00145.html#l00240">240</a> of file <a class="el" href="a00145.html">encoding.h</a>. </td>
87
<hr><h2>Member Function Documentation</h2>
88
<a class="anchor" name="a4" doxytag="bm::decoder::get_16"></a><p>
89
<table class="mdTable" cellpadding="2" cellspacing="0">
92
<table cellpadding="0" cellspacing="0" border="0">
94
<td class="md" nowrap valign="top">void bm::decoder::get_16 </td>
95
<td class="md" valign="top">( </td>
96
<td class="md" nowrap valign="top"><a class="el" href="a00129.html#a28">bm::short_t</a> * </td>
97
<td class="mdname" nowrap> <em>s</em>, </td>
100
<td class="md" nowrap align="right"></td>
102
<td class="md" nowrap>unsigned </td>
103
<td class="mdname" nowrap> <em>count</em></td>
107
<td class="md">) </td>
108
<td class="md" colspan="2"><code> [inline]</code></td>
114
<table cellspacing="5" cellpadding="0" border="0">
122
Reads block of 32-bit words from the decoding buffer.
124
<dl compact><dt><b>Parameters:</b></dt><dd>
125
<table border="0" cellspacing="2" cellpadding="0">
126
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>- pointer on memory block to read into. </td></tr>
127
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>- size of memory block in words. </td></tr>
132
Definition at line <a class="el" href="a00145.html#l00300">300</a> of file <a class="el" href="a00145.html">encoding.h</a>.
134
References <a class="el" href="a00145.html#l00075">bm::decoder_base::seek()</a>. </td>
137
<a class="anchor" name="a1" doxytag="bm::decoder::get_16"></a><p>
138
<table class="mdTable" cellpadding="2" cellspacing="0">
141
<table cellpadding="0" cellspacing="0" border="0">
143
<td class="md" nowrap valign="top">BMFORCEINLINE <a class="el" href="a00129.html#a28">bm::short_t</a> bm::decoder::get_16 </td>
144
<td class="md" valign="top">( </td>
145
<td class="mdname1" valign="top" nowrap> </td>
146
<td class="md" valign="top"> ) </td>
147
<td class="md" nowrap></td>
153
<table cellspacing="5" cellpadding="0" border="0">
161
Reads 16bit word from the decoding buffer.
165
Definition at line <a class="el" href="a00145.html#l00249">249</a> of file <a class="el" href="a00145.html">encoding.h</a>.
167
References <a class="el" href="a00140.html#l00079">BMFORCEINLINE</a>. </td>
170
<a class="anchor" name="a3" doxytag="bm::decoder::get_32"></a><p>
171
<table class="mdTable" cellpadding="2" cellspacing="0">
174
<table cellpadding="0" cellspacing="0" border="0">
176
<td class="md" nowrap valign="top">void bm::decoder::get_32 </td>
177
<td class="md" valign="top">( </td>
178
<td class="md" nowrap valign="top"><a class="el" href="a00129.html#a27">bm::word_t</a> * </td>
179
<td class="mdname" nowrap> <em>w</em>, </td>
182
<td class="md" nowrap align="right"></td>
184
<td class="md" nowrap>unsigned </td>
185
<td class="mdname" nowrap> <em>count</em></td>
189
<td class="md">) </td>
190
<td class="md" colspan="2"><code> [inline]</code></td>
196
<table cellspacing="5" cellpadding="0" border="0">
204
Reads block of 32-bit words from the decoding buffer.
206
<dl compact><dt><b>Parameters:</b></dt><dd>
207
<table border="0" cellspacing="2" cellpadding="0">
208
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>- pointer on memory block to read into. </td></tr>
209
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>- size of memory block in words. </td></tr>
214
Definition at line <a class="el" href="a00145.html#l00275">275</a> of file <a class="el" href="a00145.html">encoding.h</a>.
216
References <a class="el" href="a00145.html#l00075">bm::decoder_base::seek()</a>. </td>
219
<a class="anchor" name="a2" doxytag="bm::decoder::get_32"></a><p>
220
<table class="mdTable" cellpadding="2" cellspacing="0">
223
<table cellpadding="0" cellspacing="0" border="0">
225
<td class="md" nowrap valign="top">BMFORCEINLINE <a class="el" href="a00129.html#a27">bm::word_t</a> bm::decoder::get_32 </td>
226
<td class="md" valign="top">( </td>
227
<td class="mdname1" valign="top" nowrap> </td>
228
<td class="md" valign="top"> ) </td>
229
<td class="md" nowrap></td>
235
<table cellspacing="5" cellpadding="0" border="0">
243
Reads 32 bit word from the decoding buffer.
247
Definition at line <a class="el" href="a00145.html#l00260">260</a> of file <a class="el" href="a00145.html">encoding.h</a>.
249
References <a class="el" href="a00140.html#l00079">BMFORCEINLINE</a>. </td>
252
<hr>The documentation for this class was generated from the following file:<ul>
253
<li><a class="el" href="a00145.html">encoding.h</a></ul>
254
<hr size="1"><address style="align: right;"><small>Generated on Sun Aug 5 14:12:41 2007 for BitMagic by
32
255
<a href="http://www.doxygen.org/index.html">
33
256
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>