Files
ortools-clone/docs/cpp/bitmap_8h_source.html
Laurent Perron a2ad6677e1 regenerate doc
2022-01-16 18:02:36 +01:00

131 lines
30 KiB
HTML

<!-- HTML header for doxygen 1.8.18-->
<!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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: bitmap.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.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="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">9.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('bitmap_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">bitmap.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="bitmap_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2021 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef OR_TOOLS_BASE_BITMAP_H_</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define OR_TOOLS_BASE_BITMAP_H_</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="basictypes_8h.html">ortools/base/basictypes.h</a>&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html"> 22</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee"> 23</a></span>&#160;<span class="keyword">inline</span> uint64_t <a class="code" href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee">OneBit64</a>(<span class="keywordtype">int</span> pos) { <span class="keywordflow">return</span> uint64_t{1} &lt;&lt; pos; }</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090"> 24</a></span>&#160;<span class="keyword">inline</span> uint64_t <a class="code" href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090">BitPos64</a>(uint64_t pos) { <span class="keywordflow">return</span> (pos &amp; 63); }</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169"> 25</a></span>&#160;<span class="keyword">inline</span> uint64_t <a class="code" href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169">BitOffset64</a>(uint64_t pos) { <span class="keywordflow">return</span> (pos &gt;&gt; 6); }</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#a1b41253a72594759082e0c72eaa1e284"> 26</a></span>&#160;<span class="keyword">inline</span> uint64_t <a class="code" href="namespaceoperations__research_1_1internal.html#a1b41253a72594759082e0c72eaa1e284">BitLength64</a>(uint64_t size) { <span class="keywordflow">return</span> ((size + 63) &gt;&gt; 6); }</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#a8254b0157656b65e18e2db918d462e5a"> 27</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceoperations__research_1_1internal.html#a8254b0157656b65e18e2db918d462e5a">IsBitSet64</a>(<span class="keyword">const</span> uint64_t* <span class="keyword">const</span> bitset, uint64_t pos) {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">return</span> (bitset[<a class="code" href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169">BitOffset64</a>(pos)] &amp; <a class="code" href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee">OneBit64</a>(<a class="code" href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090">BitPos64</a>(pos)));</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#a07743e286ce6ded2b13ed91d43158404"> 30</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespaceoperations__research_1_1internal.html#a07743e286ce6ded2b13ed91d43158404">SetBit64</a>(uint64_t* <span class="keyword">const</span> bitset, uint64_t pos) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; bitset[<a class="code" href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169">BitOffset64</a>(pos)] |= <a class="code" href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee">OneBit64</a>(<a class="code" href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090">BitPos64</a>(pos));</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;}</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1internal.html#aa04bf52dc3de549e6ddc4c823bd5ab5e"> 33</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespaceoperations__research_1_1internal.html#aa04bf52dc3de549e6ddc4c823bd5ab5e">ClearBit64</a>(uint64_t* <span class="keyword">const</span> bitset, uint64_t pos) {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; bitset[<a class="code" href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169">BitOffset64</a>(pos)] &amp;= ~<a class="code" href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee">OneBit64</a>(<a class="code" href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090">BitPos64</a>(pos));</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;}</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;} <span class="comment">// namespace internal</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html"> 38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1_bitmap.html">Bitmap</a> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="comment">// Constructor : This allocates on a uint32_t boundary.</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// fill: true = initialize with 1&#39;s, false = initialize with 0&#39;s.</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#a64e362d32d455611f702062757d2847a"> 42</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1_bitmap.html#a64e362d32d455611f702062757d2847a">Bitmap</a>(uint32_t size, <span class="keywordtype">bool</span> fill = <span class="keyword">false</span>)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; : max_size_(size),</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; array_size_(<a class="code" href="namespaceinternal.html">internal</a>::<a class="code" href="namespaceoperations__research.html#ade9a654d04b140bd2c2fbfb502c3999c">BitLength64</a>(size)),</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; map_(new uint64_t[array_size_]) {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="comment">// initialize all of the bits</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classoperations__research_1_1_bitmap.html#a10db0201e7852a4fb02286ff2020ae6b">SetAll</a>(fill);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// Destructor: clean up.</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#a674e993ff780ec078ec387614ba2a230"> 51</a></span>&#160; <a class="code" href="classoperations__research_1_1_bitmap.html#a674e993ff780ec078ec387614ba2a230">~Bitmap</a>() { <span class="keyword">delete</span>[] map_; }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="comment">// Resizes the bitmap.</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// If size &lt; bits(), the extra bits will be discarded.</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// If size &gt; bits(), the extra bits will be filled with the fill value.</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1_bitmap.html#a88561172cf4a3f2abc9356f0954db238">Resize</a>(uint32_t size, <span class="keywordtype">bool</span> fill = <span class="keyword">false</span>);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#a43b304e71f907e444336d2789aca1725"> 58</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1_bitmap.html#a43b304e71f907e444336d2789aca1725">Get</a>(uint32_t <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>)<span class="keyword"> const </span>{</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; assert(max_size_ == 0 || <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> &lt; max_size_);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research_1_1internal.html#a8254b0157656b65e18e2db918d462e5a">internal::IsBitSet64</a>(map_, <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#a1037652c6b6b9a3b5d2a356057285c0a"> 62</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1_bitmap.html#a1037652c6b6b9a3b5d2a356057285c0a">Set</a>(uint32_t <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>, <span class="keywordtype">bool</span> <a class="code" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; assert(max_size_ == 0 || <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> &lt; max_size_);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="namespaceoperations__research_1_1internal.html#a07743e286ce6ded2b13ed91d43158404">internal::SetBit64</a>(map_, <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="namespaceoperations__research_1_1internal.html#aa04bf52dc3de549e6ddc4c823bd5ab5e">internal::ClearBit64</a>(map_, <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="comment">// Sets all the bits to true or false</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#a10db0201e7852a4fb02286ff2020ae6b"> 72</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1_bitmap.html#a10db0201e7852a4fb02286ff2020ae6b">SetAll</a>(<span class="keywordtype">bool</span> <a class="code" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; memset(map_, (<a class="code" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> ? 0xFF : 0x00), array_size_ * <span class="keyword">sizeof</span>(*map_));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</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; <span class="comment">// Clears all bits in the bitmap</span></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_bitmap.html#aa71d36872f416feaa853788a7a7a7ef8"> 77</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1_bitmap.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a>() { <a class="code" href="classoperations__research_1_1_bitmap.html#a10db0201e7852a4fb02286ff2020ae6b">SetAll</a>(<span class="keyword">false</span>); }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; uint32_t max_size_; <span class="comment">// the upper bound of the bitmap</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; uint32_t array_size_;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; uint64_t* map_; <span class="comment">// the bitmap</span></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;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;} <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor">#endif // OR_TOOLS_BASE_BITMAP_H_</span></div><div class="ttc" id="namespaceoperations__research_html_ade9a654d04b140bd2c2fbfb502c3999c"><div class="ttname"><a href="namespaceoperations__research.html#ade9a654d04b140bd2c2fbfb502c3999c">operations_research::BitLength64</a></div><div class="ttdeci">uint64_t BitLength64(uint64_t size)</div><div class="ttdef"><b>Definition:</b> <a href="bitset_8h_source.html#l00338">bitset.h:338</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a1037652c6b6b9a3b5d2a356057285c0a"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a1037652c6b6b9a3b5d2a356057285c0a">operations_research::Bitmap::Set</a></div><div class="ttdeci">void Set(uint32_t index, bool value)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00062">bitmap.h:62</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_afcce32287e5f9346df470cc3a0e6c169"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#afcce32287e5f9346df470cc3a0e6c169">operations_research::internal::BitOffset64</a></div><div class="ttdeci">uint64_t BitOffset64(uint64_t pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00025">bitmap.h:25</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a88561172cf4a3f2abc9356f0954db238"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a88561172cf4a3f2abc9356f0954db238">operations_research::Bitmap::Resize</a></div><div class="ttdeci">void Resize(uint32_t size, bool fill=false)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8cc_source.html#l00022">bitmap.cc:22</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_a4276a61ac148b5e4009e2f515f1453ee"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#a4276a61ac148b5e4009e2f515f1453ee">operations_research::internal::OneBit64</a></div><div class="ttdeci">uint64_t OneBit64(int pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00023">bitmap.h:23</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_a8254b0157656b65e18e2db918d462e5a"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#a8254b0157656b65e18e2db918d462e5a">operations_research::internal::IsBitSet64</a></div><div class="ttdeci">bool IsBitSet64(const uint64_t *const bitset, uint64_t pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00027">bitmap.h:27</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a10db0201e7852a4fb02286ff2020ae6b"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a10db0201e7852a4fb02286ff2020ae6b">operations_research::Bitmap::SetAll</a></div><div class="ttdeci">void SetAll(bool value)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00072">bitmap.h:72</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_a1b41253a72594759082e0c72eaa1e284"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#a1b41253a72594759082e0c72eaa1e284">operations_research::internal::BitLength64</a></div><div class="ttdeci">uint64_t BitLength64(uint64_t size)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00026">bitmap.h:26</a></div></div>
<div class="ttc" id="pack_8cc_html_a750b5d744c39a06bfb13e6eb010e35d0"><div class="ttname"><a href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> <a href="pack_8cc_source.html#l00509">pack.cc:509</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a674e993ff780ec078ec387614ba2a230"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a674e993ff780ec078ec387614ba2a230">operations_research::Bitmap::~Bitmap</a></div><div class="ttdeci">~Bitmap()</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00051">bitmap.h:51</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_aa04bf52dc3de549e6ddc4c823bd5ab5e"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#aa04bf52dc3de549e6ddc4c823bd5ab5e">operations_research::internal::ClearBit64</a></div><div class="ttdeci">void ClearBit64(uint64_t *const bitset, uint64_t pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00033">bitmap.h:33</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_a07743e286ce6ded2b13ed91d43158404"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#a07743e286ce6ded2b13ed91d43158404">operations_research::internal::SetBit64</a></div><div class="ttdeci">void SetBit64(uint64_t *const bitset, uint64_t pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00030">bitmap.h:30</a></div></div>
<div class="ttc" id="namespaceinternal_html"><div class="ttname"><a href="namespaceinternal.html">internal</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__parameters_8pb_8h_source.html#l00039">bop_parameters.pb.h:39</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html">operations_research::Bitmap</a></div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00038">bitmap.h:38</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a43b304e71f907e444336d2789aca1725"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a43b304e71f907e444336d2789aca1725">operations_research::Bitmap::Get</a></div><div class="ttdeci">bool Get(uint32_t index) const</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00058">bitmap.h:58</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_a64e362d32d455611f702062757d2847a"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#a64e362d32d455611f702062757d2847a">operations_research::Bitmap::Bitmap</a></div><div class="ttdeci">Bitmap(uint32_t size, bool fill=false)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00042">bitmap.h:42</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1internal_html_a642d0ef30f0099a44aef96c27d84b090"><div class="ttname"><a href="namespaceoperations__research_1_1internal.html#a642d0ef30f0099a44aef96c27d84b090">operations_research::internal::BitPos64</a></div><div class="ttdeci">uint64_t BitPos64(uint64_t pos)</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00024">bitmap.h:24</a></div></div>
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<div class="ttc" id="classoperations__research_1_1_bitmap_html_aa71d36872f416feaa853788a7a7a7ef8"><div class="ttname"><a href="classoperations__research_1_1_bitmap.html#aa71d36872f416feaa853788a7a7a7ef8">operations_research::Bitmap::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="bitmap_8h_source.html#l00077">bitmap.h:77</a></div></div>
<div class="ttc" id="basictypes_8h_html"><div class="ttname"><a href="basictypes_8h.html">basictypes.h</a></div></div>
<div class="ttc" id="demon__profiler_8cc_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a></div><div class="ttdeci">int64_t value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00044">demon_profiler.cc:44</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_8f9dc966244f4c6e9b2fa0dee1e4ef1a.html">base</a></li><li class="navelem"><a class="el" href="bitmap_8h.html">bitmap.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>