This file is indexed.

/usr/share/doc/libwreport-doc/apidocs/bitmaps_8h_source.html is in libwreport-doc 3.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/>
<title>libwreport: bitmaps.h Source File</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">libwreport
   &#160;<span id="projectnumber">3.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a77a435eba5a6a11d9ac0a833d87986c.html">wreport</a></li><li class="navelem"><a class="el" href="dir_968e33d435a609c295bc1a478dd13c33.html">bulletin</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">bitmaps.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef WREPORT_BULLETIN_BITMAPS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define WREPORT_BULLETIN_BITMAPS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;wreport/var.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacewreport.html">wreport</a> {</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">struct </span>Var;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">struct </span>Subset;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">namespace </span>bulletin {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmap.html">   14</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmap.html#a72cfe2e50b43e8d1386b79a0c8facd4d">   17</a></span>&#160;    <a class="code" href="classwreport_1_1Var.html">Var</a> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a72cfe2e50b43e8d1386b79a0c8facd4d">bitmap</a>;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmap.html#aece1974c9727723f1f5867172b1886de">   23</a></span>&#160;    std::vector&lt;unsigned&gt; <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#aece1974c9727723f1f5867172b1886de">refs</a>;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmap.html#aff8169d553f17cf97b37ee7f766cafcd">   31</a></span>&#160;    std::vector&lt;unsigned&gt;::const_reverse_iterator <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#aff8169d553f17cf97b37ee7f766cafcd">iter</a>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#ae2f68ecf9397613fee1761f03ede22bf">Bitmap</a>(<span class="keyword">const</span> <a class="code" href="classwreport_1_1Var.html">Var</a>&amp; bitmap, <span class="keyword">const</span> <a class="code" href="structwreport_1_1Subset.html">Subset</a>&amp; subset, <span class="keywordtype">unsigned</span> anchor);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#ae2f68ecf9397613fee1761f03ede22bf">Bitmap</a>(<span class="keyword">const</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    ~<a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>();</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a62a4ad729ba8151a6d096b225bf9f180">eob</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">unsigned</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a69cc933e4d7bcae6886b491c603c262f">next</a>();</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a93525fb95120037ad2cfa5eb72a46342">reuse</a>();</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;};</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmaps.html">   65</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmaps.html#af3cf6f7f89207882d6174a7b0a24a4ea">   68</a></span>&#160;    <a class="code" href="namespacewreport.html#af9fa16e12fde1ccfb4ce11b3988f5b05">Varcode</a> pending_definitions = 0;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmaps.html#af79154fb3fd5874287bcd498ab472e59">   71</a></span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>* current = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmaps.html#abc82817b6bfd7c586bfbeecdd96fd94f">   74</a></span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html">Bitmap</a>* last = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>() {}</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>(<span class="keyword">const</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    ~<a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html">Bitmaps</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">void</span> define(<span class="keyword">const</span> <a class="code" href="classwreport_1_1Var.html">Var</a>&amp; <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a72cfe2e50b43e8d1386b79a0c8facd4d">bitmap</a>, <span class="keyword">const</span> <a class="code" href="structwreport_1_1Subset.html">Subset</a>&amp; subset, <span class="keywordtype">unsigned</span> anchor_point);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span> reuse_last();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">void</span> discard_last();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">unsigned</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmap.html#a69cc933e4d7bcae6886b491c603c262f">next</a>();</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structwreport_1_1bulletin_1_1Bitmaps.html#a3aa7a153e6d3b27f8bf54e360feaf9e0">   95</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structwreport_1_1bulletin_1_1Bitmaps.html#a3aa7a153e6d3b27f8bf54e360feaf9e0">active</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)current; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structwreport_1_1bulletin_1_1Bitmaps_html"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmaps.html">wreport::bulletin::Bitmaps</a></div><div class="ttdef"><b>Definition:</b> bitmaps.h:65</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_aece1974c9727723f1f5867172b1886de"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#aece1974c9727723f1f5867172b1886de">wreport::bulletin::Bitmap::refs</a></div><div class="ttdeci">std::vector&lt; unsigned &gt; refs</div><div class="ttdoc">Arrays of variable indices corresponding to positions in the bitmap where data is present...</div><div class="ttdef"><b>Definition:</b> bitmaps.h:23</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_a69cc933e4d7bcae6886b491c603c262f"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#a69cc933e4d7bcae6886b491c603c262f">wreport::bulletin::Bitmap::next</a></div><div class="ttdeci">unsigned next()</div><div class="ttdoc">Return the next variable offset for which the bitmap reports that data is present. </div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_a93525fb95120037ad2cfa5eb72a46342"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#a93525fb95120037ad2cfa5eb72a46342">wreport::bulletin::Bitmap::reuse</a></div><div class="ttdeci">void reuse()</div><div class="ttdoc">Reset the bitmap iterator, to reuse the bitmap another time. </div></div>
<div class="ttc" id="classwreport_1_1Var_html"><div class="ttname"><a href="classwreport_1_1Var.html">wreport::Var</a></div><div class="ttdoc">A physical variable. </div><div class="ttdef"><b>Definition:</b> var.h:23</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html">wreport::bulletin::Bitmap</a></div><div class="ttdoc">Associate a Data Present Bitmap to decoded variables in a subset. </div><div class="ttdef"><b>Definition:</b> bitmaps.h:14</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_a62a4ad729ba8151a6d096b225bf9f180"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#a62a4ad729ba8151a6d096b225bf9f180">wreport::bulletin::Bitmap::eob</a></div><div class="ttdeci">bool eob() const </div><div class="ttdoc">True if there is no bitmap or if the bitmap has been iterated until the end. </div></div>
<div class="ttc" id="namespacewreport_html_af9fa16e12fde1ccfb4ce11b3988f5b05"><div class="ttname"><a href="namespacewreport.html#af9fa16e12fde1ccfb4ce11b3988f5b05">wreport::Varcode</a></div><div class="ttdeci">uint16_t Varcode</div><div class="ttdoc">Holds the WMO variable code of a variable. </div><div class="ttdef"><b>Definition:</b> varinfo.h:57</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_aff8169d553f17cf97b37ee7f766cafcd"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#aff8169d553f17cf97b37ee7f766cafcd">wreport::bulletin::Bitmap::iter</a></div><div class="ttdeci">std::vector&lt; unsigned &gt;::const_reverse_iterator iter</div><div class="ttdoc">Iterator over refs. </div><div class="ttdef"><b>Definition:</b> bitmaps.h:31</div></div>
<div class="ttc" id="namespacewreport_html"><div class="ttname"><a href="namespacewreport.html">wreport</a></div><div class="ttdoc">String functions. </div><div class="ttdef"><b>Definition:</b> benchmark.h:13</div></div>
<div class="ttc" id="structwreport_1_1Subset_html"><div class="ttname"><a href="structwreport_1_1Subset.html">wreport::Subset</a></div><div class="ttdoc">Represent a BUFR/CREX data subset as a list of decoded variables. </div><div class="ttdef"><b>Definition:</b> subset.h:13</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmaps_html_a3aa7a153e6d3b27f8bf54e360feaf9e0"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmaps.html#a3aa7a153e6d3b27f8bf54e360feaf9e0">wreport::bulletin::Bitmaps::active</a></div><div class="ttdeci">bool active() const </div><div class="ttdoc">Return true if there is an active bitmap. </div><div class="ttdef"><b>Definition:</b> bitmaps.h:95</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_a72cfe2e50b43e8d1386b79a0c8facd4d"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#a72cfe2e50b43e8d1386b79a0c8facd4d">wreport::bulletin::Bitmap::bitmap</a></div><div class="ttdeci">Var bitmap</div><div class="ttdoc">Bitmap being iterated. </div><div class="ttdef"><b>Definition:</b> bitmaps.h:17</div></div>
<div class="ttc" id="structwreport_1_1bulletin_1_1Bitmap_html_ae2f68ecf9397613fee1761f03ede22bf"><div class="ttname"><a href="structwreport_1_1bulletin_1_1Bitmap.html#ae2f68ecf9397613fee1761f03ede22bf">wreport::bulletin::Bitmap::Bitmap</a></div><div class="ttdeci">Bitmap(const Var &amp;bitmap, const Subset &amp;subset, unsigned anchor)</div><div class="ttdoc">Create a new bitmap. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 18 2016 13:32:18 for libwreport by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>