| <!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.9.1"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>datasketches-cpp: theta/include/theta_sketch.hpp 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="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" /> |
| </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">datasketches-cpp |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.9.1 --> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); |
| /* @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&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> |
| <!-- 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 id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_e96b5dfe115c13cdeb36484e37aec42e.html">theta</a></li><li class="navelem"><a class="el" href="dir_3f8742d40c9573c3b90638004faf146b.html">include</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">theta_sketch.hpp</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> |
| <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> |
| <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> |
| <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * distributed with this work for additional information</span></div> |
| <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> |
| <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> |
| <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div> |
| <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div> |
| <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> |
| <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> |
| <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *</span></div> |
| <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> |
| <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * software distributed under the License is distributed on an</span></div> |
| <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> |
| <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div> |
| <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * specific language governing permissions and limitations</span></div> |
| <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * under the License.</span></div> |
| <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div> |
| <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div> |
| <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef THETA_SKETCH_HPP_</span></div> |
| <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define THETA_SKETCH_HPP_</span></div> |
| <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div> |
| <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "theta_update_sketch_base.hpp"</span></div> |
| <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "compact_theta_sketch_parser.hpp"</span></div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div> |
| <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a class="code" href="namespacedatasketches.html">datasketches</a> {</div> |
| <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div> |
| <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// forward declarations</span></div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">template</span><<span class="keyword">typename</span> A> <span class="keyword">class </span>theta_sketch_alloc;</div> |
| <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">template</span><<span class="keyword">typename</span> A> <span class="keyword">class </span>update_theta_sketch_alloc;</div> |
| <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">template</span><<span class="keyword">typename</span> A> <span class="keyword">class </span>compact_theta_sketch_alloc;</div> |
| <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">template</span><<span class="keyword">typename</span> A> <span class="keyword">class </span>wrapped_compact_theta_sketch_alloc;</div> |
| <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div> |
| <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespacedatasketches.html#af64cbe6dbddcc92a648ea50dd3e7d525"> 35</a></span> <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch</a> = <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc<std::allocator<uint64_t></a>>;</div> |
| <div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespacedatasketches.html#acf9e476bd4c4a803558121dcd504a231"> 37</a></span> <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch</a> = <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc<std::allocator<uint64_t></a>>;</div> |
| <div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespacedatasketches.html#afd40c94af655767e4e9c1c4e650d97ed"> 39</a></span> <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch</a> = <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc<std::allocator<uint64_t></a>>;</div> |
| <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="namespacedatasketches.html#aa3beeb0f7bcab82d98ea34a3bab848b6"> 41</a></span> <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch</a> = <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch_alloc<std::allocator<uint64_t></a>>;</div> |
| <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div> |
| <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator = std::allocator<u<span class="keywordtype">int</span>64_t>></div> |
| <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html"> 45</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html">base_theta_sketch_alloc</a> {</div> |
| <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div> |
| <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">virtual</span> ~<a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html">base_theta_sketch_alloc</a>() = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div> |
| <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#ae99d253473075b7c10569d4565d7ee90"> 53</a></span>  <span class="keyword">virtual</span> Allocator <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#ae99d253473075b7c10569d4565d7ee90">get_allocator</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div> |
| <div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#a501185051053fcccae5f73f324febcdf"> 58</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a501185051053fcccae5f73f324febcdf">is_empty</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div> |
| <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">double</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a2afb71f2ef2d82290be4c8eafc08f2a2">get_estimate</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div> |
| <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">double</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a2e5c990494331d901c3b38cd4eb316e6">get_lower_bound</a>(uint8_t num_std_devs) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div> |
| <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">double</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#aa408e90fef0f988eca7d132875c7c7e1">get_upper_bound</a>(uint8_t num_std_devs) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#ae95a04b1d7dccb3d9b3f3c3d087aa8e6">is_estimation_mode</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div> |
| <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">double</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#aa784d7f8ac02e9c4e26e7fe9f177a7aa">get_theta</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div> |
| <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#aef2e47ecd9c33fc2a6a9e905a2a0516a"> 96</a></span>  <span class="keyword">virtual</span> uint64_t <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#aef2e47ecd9c33fc2a6a9e905a2a0516a">get_theta64</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div> |
| <div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#a9c71f891e4b0d3d3dc6a6f4b30ed9261"> 101</a></span>  <span class="keyword">virtual</span> uint32_t <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a9c71f891e4b0d3d3dc6a6f4b30ed9261">get_num_retained</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div> |
| <div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#ab76bd6487f5a75a356083bfe163a7079"> 106</a></span>  <span class="keyword">virtual</span> uint16_t <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#ab76bd6487f5a75a356083bfe163a7079">get_seed_hash</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div> |
| <div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classdatasketches_1_1base__theta__sketch__alloc.html#a358923431da50e8d43651795e2515c01"> 111</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a358923431da50e8d43651795e2515c01">is_ordered</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div> |
| <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">virtual</span> string<Allocator> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html#a60a5fe73c86554c313705666f8fb227a">to_string</a>(<span class="keywordtype">bool</span> print_items = <span class="keyword">false</span>) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div> |
| <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">protected</span>:</div> |
| <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_specifics(std::ostringstream& os) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_items(std::ostringstream& os) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> };</div> |
| <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div> |
| <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator = std::allocator<u<span class="keywordtype">int</span>64_t>></div> |
| <div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classdatasketches_1_1theta__sketch__alloc.html"> 127</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc</a>: <span class="keyword">public</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html">base_theta_sketch_alloc</a><Allocator> {</div> |
| <div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">using</span> Entry = uint64_t;</div> |
| <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">using</span> ExtractKey = trivial_extract_key;</div> |
| <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">using</span> iterator = theta_iterator<Entry, ExtractKey>;</div> |
| <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">using</span> const_iterator = theta_const_iterator<Entry, ExtractKey>;</div> |
| <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div> |
| <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">virtual</span> ~<a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc</a>() = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div> |
| <div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classdatasketches_1_1theta__sketch__alloc.html#ad1d91335a83907ae2ef026786e12ba0c"> 140</a></span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html#ad1d91335a83907ae2ef026786e12ba0c">begin</a>() = 0;</div> |
| <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div> |
| <div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classdatasketches_1_1theta__sketch__alloc.html#aa7f5423261c0a178f37911746353c0b7"> 147</a></span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html#aa7f5423261c0a178f37911746353c0b7">end</a>() = 0;</div> |
| <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div> |
| <div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classdatasketches_1_1theta__sketch__alloc.html#a250dc1485aaf4ef61332af5c5fdb4715"> 153</a></span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html#a250dc1485aaf4ef61332af5c5fdb4715">begin</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div> |
| <div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classdatasketches_1_1theta__sketch__alloc.html#a47bfa611ed719e4b41ceb653376c1677"> 160</a></span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html#a47bfa611ed719e4b41ceb653376c1677">end</a>() <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div> |
| <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">protected</span>:</div> |
| <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_items(std::ostringstream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> };</div> |
| <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div> |
| <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// forward declaration</span></div> |
| <div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">template</span><<span class="keyword">typename</span> A> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>;</div> |
| <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div> |
| <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator = std::allocator<u<span class="keywordtype">int</span>64_t>></div> |
| <div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc.html"> 175</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>: <span class="keyword">public</span> <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc</a><Allocator> {</div> |
| <div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">Base</a> = <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc<Allocator></a>;</div> |
| <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">using</span> Entry = <span class="keyword">typename</span> Base::Entry;</div> |
| <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">using</span> ExtractKey = <span class="keyword">typename</span> Base::ExtractKey;</div> |
| <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">using</span> iterator = <span class="keyword">typename</span> Base::iterator;</div> |
| <div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">using</span> const_iterator = <span class="keyword">typename</span> Base::const_iterator;</div> |
| <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">using</span> theta_table = theta_update_sketch_base<Entry, ExtractKey, Allocator>;</div> |
| <div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">using</span> resize_factor = <span class="keyword">typename</span> theta_table::resize_factor;</div> |
| <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div> |
| <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// No constructor here. Use builder instead.</span></div> |
| <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">class </span><a class="code" href="classdatasketches_1_1update__theta__sketch__alloc_1_1builder.html">builder</a>;</div> |
| <div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div> |
| <div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc.html#af865582cdd7f9938251ecb41518ecb99"> 192</a></span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#af865582cdd7f9938251ecb41518ecb99">update_theta_sketch_alloc</a>(<span class="keyword">const</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div> |
| <div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc.html#a70a347dfef00f6b9fb18d8eabf1699c4"> 198</a></span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a70a347dfef00f6b9fb18d8eabf1699c4">update_theta_sketch_alloc</a>(<a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>&& other) noexcept = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div> |
| <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keyword">virtual</span> ~<a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>() = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div> |
| <div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc.html#a2b708b22ef45a422797c2c2da7ce4a9d"> 207</a></span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>& <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a2b708b22ef45a422797c2c2da7ce4a9d">operator=</a>(<span class="keyword">const</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div> |
| <div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc.html#af45f682d9e7adae485188d6abff8a360"> 214</a></span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>& <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#af45f682d9e7adae485188d6abff8a360">operator=</a>(<a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a>&& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div> |
| <div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">virtual</span> Allocator <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">get_allocator</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">is_empty</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">is_ordered</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">virtual</span> uint16_t <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">get_seed_hash</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keyword">virtual</span> uint64_t <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">get_theta64</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">virtual</span> uint32_t <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">get_num_retained</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div> |
| <div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  uint8_t <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a8f8b2691781d682411a6de23996a8be2">get_lg_k</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div> |
| <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  resize_factor <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a36c928e86272441d56f794cc596fd598">get_rf</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div> |
| <div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(<span class="keyword">const</span> std::string& value);</div> |
| <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div> |
| <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(uint64_t value);</div> |
| <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  </div> |
| <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(int64_t value);</div> |
| <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div> |
| <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(uint32_t value);</div> |
| <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  </div> |
| <div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(int32_t value);</div> |
| <div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  </div> |
| <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(uint16_t value);</div> |
| <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div> |
| <div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(int16_t value);</div> |
| <div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div> |
| <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(uint8_t value);</div> |
| <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div> |
| <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(int8_t value);</div> |
| <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  </div> |
| <div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(<span class="keywordtype">double</span> value);</div> |
| <div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  </div> |
| <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(<span class="keywordtype">float</span> value);</div> |
| <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  </div> |
| <div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">update</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* data, <span class="keywordtype">size_t</span> length);</div> |
| <div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  </div> |
| <div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a268ae12a22c9f97b84833e4c39fb2278">trim</a>();</div> |
| <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div> |
| <div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div> |
| <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  </div> |
| <div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc<Allocator></a> <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#af2a874b603390c143ecd4e6814ecbe3b">compact</a>(<span class="keywordtype">bool</span> ordered = <span class="keyword">true</span>) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  </div> |
| <div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">begin</a>();</div> |
| <div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">end</a>();</div> |
| <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">begin</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">end</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  </div> |
| <div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  theta_table table_;</div> |
| <div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  </div> |
| <div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="comment">// for builder</span></div> |
| <div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html#af865582cdd7f9938251ecb41518ecb99">update_theta_sketch_alloc</a>(uint8_t lg_cur_size, uint8_t lg_nom_size, resize_factor rf, <span class="keywordtype">float</span> p,</div> |
| <div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  uint64_t theta, uint64_t seed, <span class="keyword">const</span> Allocator& allocator);</div> |
| <div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  </div> |
| <div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_specifics(std::ostringstream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00352"></a><span class="lineno"> 352</span> };</div> |
| <div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  </div> |
| <div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator = std::allocator<u<span class="keywordtype">int</span>64_t>></div> |
| <div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html"> 359</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>: <span class="keyword">public</span> <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc</a><Allocator> {</div> |
| <div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keyword">using</span> <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">Base</a> = <a class="code" href="classdatasketches_1_1theta__sketch__alloc.html">theta_sketch_alloc<Allocator></a>;</div> |
| <div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keyword">using</span> iterator = <span class="keyword">typename</span> Base::iterator;</div> |
| <div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keyword">using</span> const_iterator = <span class="keyword">typename</span> Base::const_iterator;</div> |
| <div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keyword">using</span> AllocBytes = <span class="keyword">typename</span> std::allocator_traits<Allocator>::template rebind_alloc<uint8_t>;</div> |
| <div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keyword">using</span> vector_bytes = std::vector<uint8_t, AllocBytes>;</div> |
| <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  </div> |
| <div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keyword">static</span> <span class="keyword">const</span> uint8_t UNCOMPRESSED_SERIAL_VERSION = 3;</div> |
| <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keyword">static</span> <span class="keyword">const</span> uint8_t COMPRESSED_SERIAL_VERSION = 4;</div> |
| <div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keyword">static</span> <span class="keyword">const</span> uint8_t SKETCH_TYPE = 3;</div> |
| <div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  </div> |
| <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="comment">// Instances of this type can be obtained:</span></div> |
| <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="comment">// - by compacting an update_theta_sketch_alloc</span></div> |
| <div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="comment">// - as a result of a set operation</span></div> |
| <div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="comment">// - by deserializing a previously serialized compact sketch</span></div> |
| <div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  </div> |
| <div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other></div> |
| <div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0eaea2a9894acb7b92f5c3f3224c618c">compact_theta_sketch_alloc</a>(<span class="keyword">const</span> Other& other, <span class="keywordtype">bool</span> ordered);</div> |
| <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  </div> |
| <div class="line"><a name="l00389"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0f097d346334e1ad237b64133d0adf94"> 389</a></span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0f097d346334e1ad237b64133d0adf94">compact_theta_sketch_alloc</a>(<span class="keyword">const</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div> |
| <div class="line"><a name="l00395"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ab261a20e0595a67b16f2fc542443fa45"> 395</a></span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ab261a20e0595a67b16f2fc542443fa45">compact_theta_sketch_alloc</a>(<a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>&& other) noexcept = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  </div> |
| <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keyword">virtual</span> ~<a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>() = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  </div> |
| <div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ada3a2bda671ddcc3dd65db48a978251d"> 404</a></span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>& <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ada3a2bda671ddcc3dd65db48a978251d">operator=</a>(<span class="keyword">const</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  </div> |
| <div class="line"><a name="l00411"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad0d038d5ac22cd84233efba29156b07e"> 411</a></span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>& <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad0d038d5ac22cd84233efba29156b07e">operator=</a>(<a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a>&& other) = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  </div> |
| <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keyword">virtual</span> Allocator <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">get_allocator</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">is_empty</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">is_ordered</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keyword">virtual</span> uint64_t <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">get_theta64</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keyword">virtual</span> uint32_t <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">get_num_retained</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keyword">virtual</span> uint16_t <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">get_seed_hash</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  </div> |
| <div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a7fcd4a0f58526cadbf7557c5c7f540dc">get_max_serialized_size_bytes</a>(uint8_t lg_k);</div> |
| <div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  </div> |
| <div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordtype">size_t</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#aabbdd1b62df5221fa0a17753beee9abc">get_serialized_size_bytes</a>(<span class="keywordtype">bool</span> compressed = <span class="keyword">false</span>) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  </div> |
| <div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a1bcdd98ee6e6eb9b501b8dc5de5e8924">serialize</a>(std::ostream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  </div> |
| <div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  vector_bytes <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a1bcdd98ee6e6eb9b501b8dc5de5e8924">serialize</a>(<span class="keywordtype">unsigned</span> header_size_bytes = 0) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  </div> |
| <div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <span class="keywordtype">void</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad340191a312ae81cd5aa18e4e0145460">serialize_compressed</a>(std::ostream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  </div> |
| <div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  vector_bytes <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad340191a312ae81cd5aa18e4e0145460">serialize_compressed</a>(<span class="keywordtype">unsigned</span> header_size_bytes = 0) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  </div> |
| <div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">begin</a>();</div> |
| <div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keyword">virtual</span> iterator <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">end</a>();</div> |
| <div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">begin</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keyword">virtual</span> const_iterator <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">end</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  </div> |
| <div class="line"><a name="l00480"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a8fd020f8f0f495f6adee994e872b9883"> 480</a></span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a8fd020f8f0f495f6adee994e872b9883">deserialize</a>(std::istream& is,</div> |
| <div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  uint64_t seed = DEFAULT_SEED, <span class="keyword">const</span> Allocator& allocator = Allocator());</div> |
| <div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  </div> |
| <div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a2ee872dc2dadbb9244dcae2631c8fc2d"> 491</a></span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a2ee872dc2dadbb9244dcae2631c8fc2d">deserialize</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* bytes, <span class="keywordtype">size_t</span> size,</div> |
| <div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  uint64_t seed = DEFAULT_SEED, <span class="keyword">const</span> Allocator& allocator = Allocator());</div> |
| <div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  </div> |
| <div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keyword">enum</span> flags { IS_BIG_ENDIAN, IS_READ_ONLY, IS_EMPTY, IS_COMPACT, IS_ORDERED };</div> |
| <div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  </div> |
| <div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordtype">bool</span> is_empty_;</div> |
| <div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keywordtype">bool</span> is_ordered_;</div> |
| <div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  uint16_t seed_hash_;</div> |
| <div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  uint64_t theta_;</div> |
| <div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  std::vector<uint64_t, Allocator> entries_;</div> |
| <div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  </div> |
| <div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  uint8_t get_preamble_longs(<span class="keywordtype">bool</span> compressed) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keywordtype">bool</span> is_suitable_for_compression() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  uint8_t compute_entry_bits() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  uint8_t get_num_entries_bytes() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <span class="keywordtype">size_t</span> get_compressed_serialized_size_bytes(uint8_t entry_bits, uint8_t num_entries_bytes) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordtype">void</span> serialize_version_4(std::ostream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  vector_bytes serialize_version_4(<span class="keywordtype">unsigned</span> header_size_bytes = 0) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  </div> |
| <div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> deserialize_v1(uint8_t preamble_longs, std::istream& is, uint64_t seed, <span class="keyword">const</span> Allocator& allocator);</div> |
| <div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> deserialize_v2(uint8_t preamble_longs, std::istream& is, uint64_t seed, <span class="keyword">const</span> Allocator& allocator);</div> |
| <div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> deserialize_v3(uint8_t preamble_longs, std::istream& is, uint64_t seed, <span class="keyword">const</span> Allocator& allocator);</div> |
| <div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keyword">static</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html">compact_theta_sketch_alloc</a> deserialize_v4(uint8_t preamble_longs, std::istream& is, uint64_t seed, <span class="keyword">const</span> Allocator& allocator);</div> |
| <div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  </div> |
| <div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_specifics(std::ostringstream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  </div> |
| <div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E, <span class="keyword">typename</span> EK, <span class="keyword">typename</span> P, <span class="keyword">typename</span> S, <span class="keyword">typename</span> CS, <span class="keyword">typename</span> A> <span class="keyword">friend</span> <span class="keyword">class </span>theta_union_base;</div> |
| <div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E, <span class="keyword">typename</span> EK, <span class="keyword">typename</span> P, <span class="keyword">typename</span> S, <span class="keyword">typename</span> CS, <span class="keyword">typename</span> A> <span class="keyword">friend</span> <span class="keyword">class </span>theta_intersection_base;</div> |
| <div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E, <span class="keyword">typename</span> EK, <span class="keyword">typename</span> CS, <span class="keyword">typename</span> A> <span class="keyword">friend</span> <span class="keyword">class </span>theta_set_difference_base;</div> |
| <div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0eaea2a9894acb7b92f5c3f3224c618c">compact_theta_sketch_alloc</a>(<span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">is_empty</a>, <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">is_ordered</a>, uint16_t seed_hash, uint64_t theta, std::vector<uint64_t, Allocator>&& entries);</div> |
| <div class="line"><a name="l00522"></a><span class="lineno"> 522</span> };</div> |
| <div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  </div> |
| <div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator></div> |
| <div class="line"><a name="l00526"></a><span class="lineno"><a class="line" href="classdatasketches_1_1update__theta__sketch__alloc_1_1builder.html"> 526</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a><Allocator>::<a class="code" href="classdatasketches_1_1update__theta__sketch__alloc_1_1builder.html">builder</a>: <span class="keyword">public</span> <a class="code" href="classdatasketches_1_1theta__base__builder.html">theta_base_builder</a><builder, Allocator> {</div> |
| <div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc_1_1builder.html">builder</a>(<span class="keyword">const</span> Allocator& allocator = Allocator());</div> |
| <div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <a class="code" href="classdatasketches_1_1update__theta__sketch__alloc.html">update_theta_sketch_alloc</a> build() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00535"></a><span class="lineno"> 535</span> };</div> |
| <div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  </div> |
| <div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator = std::allocator<u<span class="keywordtype">int</span>64_t>></div> |
| <div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html"> 543</a></span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch_alloc</a>: <span class="keyword">public</span> <a class="code" href="classdatasketches_1_1base__theta__sketch__alloc.html">base_theta_sketch_alloc</a><Allocator> {</div> |
| <div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keyword">class </span>const_iterator;</div> |
| <div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  </div> |
| <div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  Allocator <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">get_allocator</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">is_empty</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keywordtype">bool</span> <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">is_ordered</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  uint64_t <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">get_theta64</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  uint32_t <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">get_num_retained</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  uint16_t <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">get_seed_hash</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  </div> |
| <div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  const_iterator <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#ad5c959a538216a09ab28c5283585956c">begin</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  </div> |
| <div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  const_iterator <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#ae11e60e117300685401961e36f196f7a">end</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  </div> |
| <div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch_alloc</a> <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a7c8fcc5351cb17b746aef835e65b403a">wrap</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* bytes, <span class="keywordtype">size_t</span> size, uint64_t seed = DEFAULT_SEED, <span class="keywordtype">bool</span> dump_on_error = <span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  </div> |
| <div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="keyword">protected</span>:</div> |
| <div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_specifics(std::ostringstream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> print_items(std::ostringstream& os) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  </div> |
| <div class="line"><a name="l00581"></a><span class="lineno"> 581</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keyword">using</span> data_type = compact_theta_sketch_parser<true>::compact_theta_sketch_data;</div> |
| <div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  data_type data_;</div> |
| <div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  </div> |
| <div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch_alloc</a>(<span class="keyword">const</span> data_type& data);</div> |
| <div class="line"><a name="l00586"></a><span class="lineno"> 586</span> };</div> |
| <div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  </div> |
| <div class="line"><a name="l00588"></a><span class="lineno"> 588</span> <span class="keyword">template</span><<span class="keyword">typename</span> Allocator></div> |
| <div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <span class="keyword">class </span><a class="code" href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">wrapped_compact_theta_sketch_alloc</a><Allocator>::const_iterator {</div> |
| <div class="line"><a name="l00590"></a><span class="lineno"> 590</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keyword">using</span> iterator_category = std::input_iterator_tag;</div> |
| <div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="keyword">using</span> value_type = <span class="keyword">const</span> uint64_t;</div> |
| <div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <span class="keyword">using</span> difference_type = void;</div> |
| <div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <span class="keyword">using</span> pointer = value_type*;</div> |
| <div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keyword">using</span> reference = uint64_t;</div> |
| <div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  </div> |
| <div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  const_iterator(<span class="keyword">const</span> <span class="keywordtype">void</span>* ptr, uint8_t entry_bits, uint32_t num_entries, uint32_t index);</div> |
| <div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  const_iterator& operator++();</div> |
| <div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  const_iterator operator++(<span class="keywordtype">int</span>);</div> |
| <div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> const_iterator& other) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> const_iterator& other) <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  reference operator*() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  pointer operator->() <span class="keyword">const</span>;</div> |
| <div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  </div> |
| <div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keyword">const</span> <span class="keywordtype">void</span>* ptr_;</div> |
| <div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  uint8_t entry_bits_;</div> |
| <div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  uint32_t num_entries_;</div> |
| <div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  uint32_t index_;</div> |
| <div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  uint64_t previous_;</div> |
| <div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <span class="keywordtype">bool</span> is_block_mode_;</div> |
| <div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  uint8_t buf_i_;</div> |
| <div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  uint8_t offset_;</div> |
| <div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  uint64_t buffer_[8];</div> |
| <div class="line"><a name="l00615"></a><span class="lineno"> 615</span> };</div> |
| <div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  </div> |
| <div class="line"><a name="l00617"></a><span class="lineno"> 617</span> } <span class="comment">/* namespace datasketches */</span></div> |
| <div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  </div> |
| <div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <span class="preprocessor">#include "theta_sketch_impl.hpp"</span></div> |
| <div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  </div> |
| <div class="line"><a name="l00621"></a><span class="lineno"> 621</span> <span class="preprocessor">#endif</span></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html">datasketches::base_theta_sketch_alloc</a></div><div class="ttdoc">Abstract base class for Theta sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch.hpp:45</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a2afb71f2ef2d82290be4c8eafc08f2a2"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a2afb71f2ef2d82290be4c8eafc08f2a2">datasketches::base_theta_sketch_alloc::get_estimate</a></div><div class="ttdeci">double get_estimate() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:47</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a2e5c990494331d901c3b38cd4eb316e6"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a2e5c990494331d901c3b38cd4eb316e6">datasketches::base_theta_sketch_alloc::get_lower_bound</a></div><div class="ttdeci">double get_lower_bound(uint8_t num_std_devs) const</div><div class="ttdoc">Returns the approximate lower error bound given a number of standard deviations.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:52</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a358923431da50e8d43651795e2515c01"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a358923431da50e8d43651795e2515c01">datasketches::base_theta_sketch_alloc::is_ordered</a></div><div class="ttdeci">virtual bool is_ordered() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a501185051053fcccae5f73f324febcdf"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a501185051053fcccae5f73f324febcdf">datasketches::base_theta_sketch_alloc::is_empty</a></div><div class="ttdeci">virtual bool is_empty() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a60a5fe73c86554c313705666f8fb227a"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a60a5fe73c86554c313705666f8fb227a">datasketches::base_theta_sketch_alloc::to_string</a></div><div class="ttdeci">virtual string< Allocator > to_string(bool print_items=false) const</div><div class="ttdoc">Provides a human-readable summary of this sketch as a string.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:64</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_a9c71f891e4b0d3d3dc6a6f4b30ed9261"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#a9c71f891e4b0d3d3dc6a6f4b30ed9261">datasketches::base_theta_sketch_alloc::get_num_retained</a></div><div class="ttdeci">virtual uint32_t get_num_retained() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_aa408e90fef0f988eca7d132875c7c7e1"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#aa408e90fef0f988eca7d132875c7c7e1">datasketches::base_theta_sketch_alloc::get_upper_bound</a></div><div class="ttdeci">double get_upper_bound(uint8_t num_std_devs) const</div><div class="ttdoc">Returns the approximate upper error bound given a number of standard deviations.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:58</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_aa784d7f8ac02e9c4e26e7fe9f177a7aa"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#aa784d7f8ac02e9c4e26e7fe9f177a7aa">datasketches::base_theta_sketch_alloc::get_theta</a></div><div class="ttdeci">double get_theta() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:41</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_ab76bd6487f5a75a356083bfe163a7079"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#ab76bd6487f5a75a356083bfe163a7079">datasketches::base_theta_sketch_alloc::get_seed_hash</a></div><div class="ttdeci">virtual uint16_t get_seed_hash() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_ae95a04b1d7dccb3d9b3f3c3d087aa8e6"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#ae95a04b1d7dccb3d9b3f3c3d087aa8e6">datasketches::base_theta_sketch_alloc::is_estimation_mode</a></div><div class="ttdeci">bool is_estimation_mode() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:36</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_ae99d253473075b7c10569d4565d7ee90"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#ae99d253473075b7c10569d4565d7ee90">datasketches::base_theta_sketch_alloc::get_allocator</a></div><div class="ttdeci">virtual Allocator get_allocator() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1base__theta__sketch__alloc_html_aef2e47ecd9c33fc2a6a9e905a2a0516a"><div class="ttname"><a href="classdatasketches_1_1base__theta__sketch__alloc.html#aef2e47ecd9c33fc2a6a9e905a2a0516a">datasketches::base_theta_sketch_alloc::get_theta64</a></div><div class="ttdeci">virtual uint64_t get_theta64() const =0</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html">datasketches::compact_theta_sketch_alloc</a></div><div class="ttdoc">Compact Theta sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch.hpp:359</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a0eaea2a9894acb7b92f5c3f3224c618c"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0eaea2a9894acb7b92f5c3f3224c618c">datasketches::compact_theta_sketch_alloc::compact_theta_sketch_alloc</a></div><div class="ttdeci">compact_theta_sketch_alloc(const Other &other, bool ordered)</div><div class="ttdoc">Copy constructor.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:267</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a0f097d346334e1ad237b64133d0adf94"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a0f097d346334e1ad237b64133d0adf94">datasketches::compact_theta_sketch_alloc::compact_theta_sketch_alloc</a></div><div class="ttdeci">compact_theta_sketch_alloc(const compact_theta_sketch_alloc &other)=default</div><div class="ttdoc">Copy constructor.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a1bcdd98ee6e6eb9b501b8dc5de5e8924"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a1bcdd98ee6e6eb9b501b8dc5de5e8924">datasketches::compact_theta_sketch_alloc::serialize</a></div><div class="ttdeci">void serialize(std::ostream &os) const</div><div class="ttdoc">This method serializes the sketch into a given stream in a binary form.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:378</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a2b072fe55377eb51a6ee477827fc3b95"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">datasketches::compact_theta_sketch_alloc::get_theta64</a></div><div class="ttdeci">virtual uint64_t get_theta64() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:307</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a2ee872dc2dadbb9244dcae2631c8fc2d"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a2ee872dc2dadbb9244dcae2631c8fc2d">datasketches::compact_theta_sketch_alloc::deserialize</a></div><div class="ttdeci">static compact_theta_sketch_alloc deserialize(const void *bytes, size_t size, uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())</div><div class="ttdoc">This method deserializes a sketch from a given array of bytes.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a31fa76458d81a17dbebfcb828e531f14"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">datasketches::compact_theta_sketch_alloc::get_num_retained</a></div><div class="ttdeci">virtual uint32_t get_num_retained() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:312</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a5a2b7a58dc85678d08752945ff655362"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">datasketches::compact_theta_sketch_alloc::is_empty</a></div><div class="ttdeci">virtual bool is_empty() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:297</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a5f5b393314c0c1819f79b73232a506e8"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">datasketches::compact_theta_sketch_alloc::is_ordered</a></div><div class="ttdeci">virtual bool is_ordered() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:302</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a6f69b50bc13da11d255d0e583e2376ba"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">datasketches::compact_theta_sketch_alloc::get_seed_hash</a></div><div class="ttdeci">virtual uint16_t get_seed_hash() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:317</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a7727305d5e1ec66a181e22c43af9a581"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">datasketches::compact_theta_sketch_alloc::end</a></div><div class="ttdeci">virtual iterator end()</div><div class="ttdoc">Iterator pointing past the valid range.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:327</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a7fcd4a0f58526cadbf7557c5c7f540dc"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a7fcd4a0f58526cadbf7557c5c7f540dc">datasketches::compact_theta_sketch_alloc::get_max_serialized_size_bytes</a></div><div class="ttdeci">static size_t get_max_serialized_size_bytes(uint8_t lg_k)</div><div class="ttdoc">Computes maximum serialized size in bytes.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:353</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a8fd020f8f0f495f6adee994e872b9883"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a8fd020f8f0f495f6adee994e872b9883">datasketches::compact_theta_sketch_alloc::deserialize</a></div><div class="ttdeci">static compact_theta_sketch_alloc deserialize(std::istream &is, uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())</div><div class="ttdoc">This method deserializes a sketch from a given stream.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_a9d85cf47c4ecd0580ec623c42006dd1b"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">datasketches::compact_theta_sketch_alloc::get_allocator</a></div><div class="ttdeci">virtual Allocator get_allocator() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:292</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_aabbdd1b62df5221fa0a17753beee9abc"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#aabbdd1b62df5221fa0a17753beee9abc">datasketches::compact_theta_sketch_alloc::get_serialized_size_bytes</a></div><div class="ttdeci">size_t get_serialized_size_bytes(bool compressed=false) const</div><div class="ttdoc">Computes size in bytes required to serialize the current state of the sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:358</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_ab261a20e0595a67b16f2fc542443fa45"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#ab261a20e0595a67b16f2fc542443fa45">datasketches::compact_theta_sketch_alloc::compact_theta_sketch_alloc</a></div><div class="ttdeci">compact_theta_sketch_alloc(compact_theta_sketch_alloc &&other) noexcept=default</div><div class="ttdoc">Move constructor.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_ad0d038d5ac22cd84233efba29156b07e"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad0d038d5ac22cd84233efba29156b07e">datasketches::compact_theta_sketch_alloc::operator=</a></div><div class="ttdeci">compact_theta_sketch_alloc & operator=(compact_theta_sketch_alloc &&other)=default</div><div class="ttdoc">Move assignment.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_ad340191a312ae81cd5aa18e4e0145460"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad340191a312ae81cd5aa18e4e0145460">datasketches::compact_theta_sketch_alloc::serialize_compressed</a></div><div class="ttdeci">void serialize_compressed(std::ostream &os) const</div><div class="ttdoc">This method serializes the sketch into a given stream in a compressed binary form.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:435</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_ad950587c89b4306f927b08b5e5cb7e89"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">datasketches::compact_theta_sketch_alloc::begin</a></div><div class="ttdeci">virtual iterator begin()</div><div class="ttdoc">Iterator over hash values in this sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:322</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1compact__theta__sketch__alloc_html_ada3a2bda671ddcc3dd65db48a978251d"><div class="ttname"><a href="classdatasketches_1_1compact__theta__sketch__alloc.html#ada3a2bda671ddcc3dd65db48a978251d">datasketches::compact_theta_sketch_alloc::operator=</a></div><div class="ttdeci">compact_theta_sketch_alloc & operator=(const compact_theta_sketch_alloc &other)=default</div><div class="ttdoc">Copy assignment.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__base__builder_html"><div class="ttname"><a href="classdatasketches_1_1theta__base__builder.html">datasketches::theta_base_builder</a></div><div class="ttdoc">Theta base builder.</div><div class="ttdef"><b>Definition:</b> theta_update_sketch_base.hpp:97</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__sketch__alloc_html"><div class="ttname"><a href="classdatasketches_1_1theta__sketch__alloc.html">datasketches::theta_sketch_alloc< std::allocator< uint64_t > ></a></div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__sketch__alloc_html_a250dc1485aaf4ef61332af5c5fdb4715"><div class="ttname"><a href="classdatasketches_1_1theta__sketch__alloc.html#a250dc1485aaf4ef61332af5c5fdb4715">datasketches::theta_sketch_alloc::begin</a></div><div class="ttdeci">virtual const_iterator begin() const =0</div><div class="ttdoc">Const iterator over hash values in this sketch.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__sketch__alloc_html_a47bfa611ed719e4b41ceb653376c1677"><div class="ttname"><a href="classdatasketches_1_1theta__sketch__alloc.html#a47bfa611ed719e4b41ceb653376c1677">datasketches::theta_sketch_alloc::end</a></div><div class="ttdeci">virtual const_iterator end() const =0</div><div class="ttdoc">Const iterator pointing past the valid range.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__sketch__alloc_html_aa7f5423261c0a178f37911746353c0b7"><div class="ttname"><a href="classdatasketches_1_1theta__sketch__alloc.html#aa7f5423261c0a178f37911746353c0b7">datasketches::theta_sketch_alloc::end</a></div><div class="ttdeci">virtual iterator end()=0</div><div class="ttdoc">Iterator pointing past the valid range.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1theta__sketch__alloc_html_ad1d91335a83907ae2ef026786e12ba0c"><div class="ttname"><a href="classdatasketches_1_1theta__sketch__alloc.html#ad1d91335a83907ae2ef026786e12ba0c">datasketches::theta_sketch_alloc::begin</a></div><div class="ttdeci">virtual iterator begin()=0</div><div class="ttdoc">Iterator over hash values in this sketch.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_1_1builder_html"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc_1_1builder.html">datasketches::update_theta_sketch_alloc::builder</a></div><div class="ttdoc">Update Theta sketch builder.</div><div class="ttdef"><b>Definition:</b> theta_sketch.hpp:526</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html">datasketches::update_theta_sketch_alloc</a></div><div class="ttdoc">Update Theta sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch.hpp:175</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a268ae12a22c9f97b84833e4c39fb2278"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a268ae12a22c9f97b84833e4c39fb2278">datasketches::update_theta_sketch_alloc::trim</a></div><div class="ttdeci">void trim()</div><div class="ttdoc">Remove retained entries in excess of the nominal size k (if any)</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:212</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a2b072fe55377eb51a6ee477827fc3b95"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">datasketches::update_theta_sketch_alloc::get_theta64</a></div><div class="ttdeci">virtual uint64_t get_theta64() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:121</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a2b708b22ef45a422797c2c2da7ce4a9d"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a2b708b22ef45a422797c2c2da7ce4a9d">datasketches::update_theta_sketch_alloc::operator=</a></div><div class="ttdeci">update_theta_sketch_alloc & operator=(const update_theta_sketch_alloc &other)=default</div><div class="ttdoc">Copy assignment.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a31fa76458d81a17dbebfcb828e531f14"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">datasketches::update_theta_sketch_alloc::get_num_retained</a></div><div class="ttdeci">virtual uint32_t get_num_retained() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:126</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a36c928e86272441d56f794cc596fd598"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a36c928e86272441d56f794cc596fd598">datasketches::update_theta_sketch_alloc::get_rf</a></div><div class="ttdeci">resize_factor get_rf() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:141</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a58c0f2372495a3163616cb0f539395ea"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a58c0f2372495a3163616cb0f539395ea">datasketches::update_theta_sketch_alloc::update</a></div><div class="ttdeci">void update(const std::string &value)</div><div class="ttdoc">Update this sketch with a given string.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:196</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a5a2b7a58dc85678d08752945ff655362"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">datasketches::update_theta_sketch_alloc::is_empty</a></div><div class="ttdeci">virtual bool is_empty() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:111</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a5f5b393314c0c1819f79b73232a506e8"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">datasketches::update_theta_sketch_alloc::is_ordered</a></div><div class="ttdeci">virtual bool is_ordered() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:116</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a6f69b50bc13da11d255d0e583e2376ba"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">datasketches::update_theta_sketch_alloc::get_seed_hash</a></div><div class="ttdeci">virtual uint16_t get_seed_hash() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:131</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a70a347dfef00f6b9fb18d8eabf1699c4"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a70a347dfef00f6b9fb18d8eabf1699c4">datasketches::update_theta_sketch_alloc::update_theta_sketch_alloc</a></div><div class="ttdeci">update_theta_sketch_alloc(update_theta_sketch_alloc &&other) noexcept=default</div><div class="ttdoc">Move constructor.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a7727305d5e1ec66a181e22c43af9a581"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a7727305d5e1ec66a181e22c43af9a581">datasketches::update_theta_sketch_alloc::end</a></div><div class="ttdeci">virtual iterator end()</div><div class="ttdoc">Iterator pointing past the valid range.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:227</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a8f8b2691781d682411a6de23996a8be2"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a8f8b2691781d682411a6de23996a8be2">datasketches::update_theta_sketch_alloc::get_lg_k</a></div><div class="ttdeci">uint8_t get_lg_k() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:136</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_a9d85cf47c4ecd0580ec623c42006dd1b"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">datasketches::update_theta_sketch_alloc::get_allocator</a></div><div class="ttdeci">virtual Allocator get_allocator() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:106</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#ad20897c5c8bd47f5d4005989bead0e55">datasketches::update_theta_sketch_alloc::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Reset the sketch to the initial empty state.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:217</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_ad950587c89b4306f927b08b5e5cb7e89"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#ad950587c89b4306f927b08b5e5cb7e89">datasketches::update_theta_sketch_alloc::begin</a></div><div class="ttdeci">virtual iterator begin()</div><div class="ttdoc">Iterator over hash values in this sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:222</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_af2a874b603390c143ecd4e6814ecbe3b"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#af2a874b603390c143ecd4e6814ecbe3b">datasketches::update_theta_sketch_alloc::compact</a></div><div class="ttdeci">compact_theta_sketch_alloc< Allocator > compact(bool ordered=true) const</div><div class="ttdoc">Converts this sketch to a compact sketch (ordered or unordered).</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:242</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_af45f682d9e7adae485188d6abff8a360"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#af45f682d9e7adae485188d6abff8a360">datasketches::update_theta_sketch_alloc::operator=</a></div><div class="ttdeci">update_theta_sketch_alloc & operator=(update_theta_sketch_alloc &&other)=default</div><div class="ttdoc">Move assignment.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1update__theta__sketch__alloc_html_af865582cdd7f9938251ecb41518ecb99"><div class="ttname"><a href="classdatasketches_1_1update__theta__sketch__alloc.html#af865582cdd7f9938251ecb41518ecb99">datasketches::update_theta_sketch_alloc::update_theta_sketch_alloc</a></div><div class="ttdeci">update_theta_sketch_alloc(const update_theta_sketch_alloc &other)=default</div><div class="ttdoc">Copy constructor.</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html">datasketches::wrapped_compact_theta_sketch_alloc</a></div><div class="ttdoc">Wrapped Compact Theta sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch.hpp:543</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a2b072fe55377eb51a6ee477827fc3b95"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a2b072fe55377eb51a6ee477827fc3b95">datasketches::wrapped_compact_theta_sketch_alloc::get_theta64</a></div><div class="ttdeci">uint64_t get_theta64() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:773</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a31fa76458d81a17dbebfcb828e531f14"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a31fa76458d81a17dbebfcb828e531f14">datasketches::wrapped_compact_theta_sketch_alloc::get_num_retained</a></div><div class="ttdeci">uint32_t get_num_retained() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:778</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a5a2b7a58dc85678d08752945ff655362"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a5a2b7a58dc85678d08752945ff655362">datasketches::wrapped_compact_theta_sketch_alloc::is_empty</a></div><div class="ttdeci">bool is_empty() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:763</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a5f5b393314c0c1819f79b73232a506e8"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a5f5b393314c0c1819f79b73232a506e8">datasketches::wrapped_compact_theta_sketch_alloc::is_ordered</a></div><div class="ttdeci">bool is_ordered() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:768</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a6f69b50bc13da11d255d0e583e2376ba"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a6f69b50bc13da11d255d0e583e2376ba">datasketches::wrapped_compact_theta_sketch_alloc::get_seed_hash</a></div><div class="ttdeci">uint16_t get_seed_hash() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:783</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a7c8fcc5351cb17b746aef835e65b403a"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a7c8fcc5351cb17b746aef835e65b403a">datasketches::wrapped_compact_theta_sketch_alloc::wrap</a></div><div class="ttdeci">static const wrapped_compact_theta_sketch_alloc wrap(const void *bytes, size_t size, uint64_t seed=DEFAULT_SEED, bool dump_on_error=false)</div><div class="ttdoc">This method wraps a serialized compact sketch as an array of bytes.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:753</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_a9d85cf47c4ecd0580ec623c42006dd1b"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#a9d85cf47c4ecd0580ec623c42006dd1b">datasketches::wrapped_compact_theta_sketch_alloc::get_allocator</a></div><div class="ttdeci">Allocator get_allocator() const</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:758</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_ad5c959a538216a09ab28c5283585956c"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#ad5c959a538216a09ab28c5283585956c">datasketches::wrapped_compact_theta_sketch_alloc::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdoc">Const iterator over hash values in this sketch.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:788</div></div> |
| <div class="ttc" id="aclassdatasketches_1_1wrapped__compact__theta__sketch__alloc_html_ae11e60e117300685401961e36f196f7a"><div class="ttname"><a href="classdatasketches_1_1wrapped__compact__theta__sketch__alloc.html#ae11e60e117300685401961e36f196f7a">datasketches::wrapped_compact_theta_sketch_alloc::end</a></div><div class="ttdeci">const_iterator end() const</div><div class="ttdoc">Const iterator pointing past the valid range.</div><div class="ttdef"><b>Definition:</b> theta_sketch_impl.hpp:793</div></div> |
| <div class="ttc" id="anamespacedatasketches_html"><div class="ttname"><a href="namespacedatasketches.html">datasketches</a></div><div class="ttdoc">DataSketches namespace.</div><div class="ttdef"><b>Definition:</b> binomial_bounds.hpp:38</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 |
| </small></address> |
| </body> |
| </html> |