Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 68c0c2ff89d8bf9051ff1b9773ed48e4 > files > 148

libzypp-doc-17.9.0-1.1.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libzypp: zypp/ByteCount.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="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">libzypp
   &#160;<span id="projectnumber">17.9.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ByteCount_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ByteCount.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ByteCount_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">|                          ____ _   __ __ ___                          |</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">|                         |__  / \ / / . \ . \                         |</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">|                           / / \ V /|  _/  _/                         |</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">|                          / /__ | | | | | |                           |</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">|                         /_____||_| |_| |_|                           |</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">|                                                                      |</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifndef ZYPP_BYTECOUNT_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#define ZYPP_BYTECOUNT_H</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;iosfwd&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Unit_8h.html">zypp/base/Unit.h</a>&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{ </div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;  <span class="comment">//</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;  <span class="comment">//    CLASS NAME : ByteCount</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="comment">//</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html">   30</a></span>&#160;<span class="comment"></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">friend</span> std::ostream &amp; <a class="code" href="classzypp_1_1ByteCount.html#aea2dba283dcafa89cdf637aac59deab0">operator&lt;&lt;</a>( std::ostream &amp; <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; obj );</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a8292caca6e63da60199a7ada729e4d7c">   36</a></span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">base::Unit</a>      <a class="code" href="classzypp_1_1ByteCount.html#a8292caca6e63da60199a7ada729e4d7c">Unit</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">   37</a></span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classzypp_1_1base_1_1Unit.html#aed43d42ec8eeb1a05e17917815ec6d02">Unit::ValueType</a> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#ac48ad8b90da0e3d237114691b8a5bf82">   42</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#ac48ad8b90da0e3d237114691b8a5bf82">B</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">   45</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">K</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#ad0b5c8d777d8d8f36cb9fdb713feea9d">   46</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#ad0b5c8d777d8d8f36cb9fdb713feea9d">KiB</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#aeac8eca81223b70b0ac03111315abc54">   48</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#aeac8eca81223b70b0ac03111315abc54">M</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a0035e826e2780bbdd98319ad990f1a3b">   49</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a0035e826e2780bbdd98319ad990f1a3b">MiB</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a15f643bce0231fca828f094010d8f4ba">   51</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a15f643bce0231fca828f094010d8f4ba">G</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#ae3fd29d58ea9bda38d494df23dc31873">   52</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#ae3fd29d58ea9bda38d494df23dc31873">GiB</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#afe5fdb534fa2285d95858ba746417281">   54</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#afe5fdb534fa2285d95858ba746417281">T</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a0dd8d5f6b31ed3e1f4c28bc72244c032">   55</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a0dd8d5f6b31ed3e1f4c28bc72244c032">TiB</a>;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a4f8f87b80ca56c7a177559e20d7d9074">   58</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a4f8f87b80ca56c7a177559e20d7d9074">kB</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">   60</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">MB</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#aed056a242730607b786db74931ee756e">   62</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#aed056a242730607b786db74931ee756e">GB</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#aaccd7e32c3179aeaf6e7b3a690c2c871">   64</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> <a class="code" href="classzypp_1_1ByteCount.html#aaccd7e32c3179aeaf6e7b3a690c2c871">TB</a>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a2e61836e0b4ffdf3f801be9f51436812">   70</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html#a2e61836e0b4ffdf3f801be9f51436812">ByteCount</a>()</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    : <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>( 0 )</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    {}</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a840869184a16a4c139051bdc2db16b55">   74</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html#a840869184a16a4c139051bdc2db16b55">ByteCount</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> &amp; unit_r )</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    : <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>( unit_r.factor() )</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    {}</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a5dc004bcb252ae4e1f88fac0352a3468">   78</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html#a5dc004bcb252ae4e1f88fac0352a3468">ByteCount</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> count_r, <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> &amp; unit_r = <a class="code" href="classzypp_1_1ByteCount.html#ac48ad8b90da0e3d237114691b8a5bf82">B</a> )</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    : <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>( count_r * unit_r.factor() )</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    {}</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a10a97b319b607891d5a63a241a602957">   85</a></span>&#160;    <span class="keyword">operator</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>; }</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a9fef2eaab85195a614b0addcdf240189">   92</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a9fef2eaab85195a614b0addcdf240189">operator+=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> rhs ) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> += rhs; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a1f182775ab49c4f3887a1ac8fd0a11e6">   93</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a1f182775ab49c4f3887a1ac8fd0a11e6">operator-=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> rhs ) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> -= rhs; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#ae355c3b15ecc85a287d942558177521f">   94</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#ae355c3b15ecc85a287d942558177521f">operator*=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> rhs ) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> *= rhs; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a6bb7c6b990f68b095a8d9c05d46f092c">   95</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a6bb7c6b990f68b095a8d9c05d46f092c">operator/=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> rhs ) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> /= rhs; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a0462ade32ace0d22e7340408e0de7a8c">   97</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a0462ade32ace0d22e7340408e0de7a8c">operator++</a>(<span class="comment">/*prefix*/</span>) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> += 1; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a7f493e0fb08c74c465c33d72f9003d3f">   98</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a7f493e0fb08c74c465c33d72f9003d3f">operator--</a>(<span class="comment">/*prefix*/</span>) { <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a> -= 1; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#adce680fb5a14bbc7ef556aa86cb099fd">  100</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> <a class="code" href="classzypp_1_1ByteCount.html#adce680fb5a14bbc7ef556aa86cb099fd">operator++</a>(<span class="keywordtype">int</span><span class="comment">/*postfix*/</span>) { <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>++; }</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a4f94baecaf5c9078a7c58092f7c60fae">  101</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> <a class="code" href="classzypp_1_1ByteCount.html#a4f94baecaf5c9078a7c58092f7c60fae">operator--</a>(<span class="keywordtype">int</span><span class="comment">/*postfix*/</span>) { <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>--; }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a6db698562bdf4a3baadbc8a18cc3dbaf">fillBlock</a>( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> blocksize_r = <a class="code" href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">K</a> );</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#adde404c2bfa17cbbd0a427c9d93092ac">  110</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> <a class="code" href="classzypp_1_1ByteCount.html#adde404c2bfa17cbbd0a427c9d93092ac">fullBlocks</a>( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> blocksize_r = <a class="code" href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">K</a> )<span class="keyword"> const</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#a2e61836e0b4ffdf3f801be9f51436812">ByteCount</a>(*this).fillBlock( blocksize_r ); }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a5ee7f380fa1916eb57364033a11d8f5d">  114</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> <a class="code" href="classzypp_1_1ByteCount.html#a5ee7f380fa1916eb57364033a11d8f5d">blocks</a>( <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> blocksize_r = <a class="code" href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">K</a> )<span class="keyword"> const</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#adde404c2bfa17cbbd0a427c9d93092ac">fullBlocks</a>( blocksize_r ) / blocksize_r; }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keyword">public</span>:</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#a8292caca6e63da60199a7ada729e4d7c">Unit</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a6ecd3ab3b5d597c8d512de6e0c0307ca">bestUnit</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html#a8292caca6e63da60199a7ada729e4d7c">Unit</a> &amp; <a class="code" href="classzypp_1_1ByteCount.html#a25dfd74c26d6a0e5522e9b8b7a4de064">bestUnit1000</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">  133</a></span>&#160;    std::string <a class="code" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">asString</a>( <span class="keywordtype">unsigned</span> field_width_r = 0,</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                          <span class="keywordtype">unsigned</span> unit_width_r  = 1 )<span class="keyword"> const</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">asString</a>( <a class="code" href="classzypp_1_1ByteCount.html#a6ecd3ab3b5d597c8d512de6e0c0307ca">bestUnit</a>(), field_width_r, unit_width_r ); }</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a1109fb680609695295d5a53e69edce8f">  137</a></span>&#160;    std::string <a class="code" href="classzypp_1_1ByteCount.html#a1109fb680609695295d5a53e69edce8f">asString</a>( <span class="keywordtype">unsigned</span> field_width_r,</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                          <span class="keywordtype">unsigned</span> unit_width_r,</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                          <span class="keywordtype">unsigned</span> prec_r )<span class="keyword"> const</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">asString</a>( <a class="code" href="classzypp_1_1ByteCount.html#a6ecd3ab3b5d597c8d512de6e0c0307ca">bestUnit</a>(), field_width_r, unit_width_r, prec_r ); }</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a45f478ab520000b10f98ac524c00d808">  142</a></span>&#160;    std::string <a class="code" href="classzypp_1_1ByteCount.html#a45f478ab520000b10f98ac524c00d808">asString</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> &amp; unit_r,</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                          <span class="keywordtype">unsigned</span> field_width_r = 0,</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                          <span class="keywordtype">unsigned</span> unit_width_r  = 1 )<span class="keyword"> const</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">asString</a>( unit_r, field_width_r, unit_width_r, unit_r.<a class="code" href="classzypp_1_1base_1_1Unit.html#ada1945bc21eff0d4e0a514e0e2894266">prec</a>() ); }</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a33cbde347b9e482ffe7df8eac8033a38">  147</a></span>&#160;    std::string <a class="code" href="classzypp_1_1ByteCount.html#a33cbde347b9e482ffe7df8eac8033a38">asString</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1base_1_1Unit.html">Unit</a> &amp; unit_r,</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                          <span class="keywordtype">unsigned</span> field_width_r,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                          <span class="keywordtype">unsigned</span> unit_width_r,</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                          <span class="keywordtype">unsigned</span> prec_r )<span class="keyword"> const</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword">    </span>{ <span class="keywordflow">return</span> unit_r.<a class="code" href="classzypp_1_1base_1_1Unit.html#a42854e46517a14d1096a7f77ffa63566">form</a>( <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>, field_width_r, unit_width_r, prec_r ); }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  <span class="keyword">private</span>:</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">  155</a></span>&#160;    <a class="code" href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">SizeType</a> <a class="code" href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">_count</a>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  };</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classzypp_1_1ByteCount.html#a698476cabd59b2c3bc8bdef649679c61">  160</a></span>&#160;  <span class="keyword">inline</span> std::ostream &amp; <a class="code" href="classzypp_1_1ByteCount.html#a698476cabd59b2c3bc8bdef649679c61">operator&lt;&lt;</a>( std::ostream &amp; <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ByteCount.html">ByteCount</a> &amp; obj )</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  { <span class="keywordflow">return</span> <a class="code" href="namespacestr.html">str</a> &lt;&lt; obj.<a class="code" href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">asString</a>(); }</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;} <span class="comment">// namespace zypp</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment"></span><span class="preprocessor">#endif // ZYPP_BYTECOUNT_H</span></div><div class="ttc" id="classzypp_1_1ByteCount_html_adce680fb5a14bbc7ef556aa86cb099fd"><div class="ttname"><a href="classzypp_1_1ByteCount.html#adce680fb5a14bbc7ef556aa86cb099fd">zypp::ByteCount::operator++</a></div><div class="ttdeci">ByteCount operator++(int)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00100">ByteCount.h:100</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a698476cabd59b2c3bc8bdef649679c61"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a698476cabd59b2c3bc8bdef649679c61">zypp::ByteCount::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;str, const ByteCount &amp;obj)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00160">ByteCount.h:160</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_af65a9a6a0ac4bc45b73c52a4c9f66179"><div class="ttname"><a href="classzypp_1_1ByteCount.html#af65a9a6a0ac4bc45b73c52a4c9f66179">zypp::ByteCount::_count</a></div><div class="ttdeci">SizeType _count</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00155">ByteCount.h:155</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a1f182775ab49c4f3887a1ac8fd0a11e6"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a1f182775ab49c4f3887a1ac8fd0a11e6">zypp::ByteCount::operator-=</a></div><div class="ttdeci">ByteCount &amp; operator-=(const SizeType rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00093">ByteCount.h:93</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_ad982e0b14c7962c0bbea6a4c154d5144"><div class="ttname"><a href="classzypp_1_1ByteCount.html#ad982e0b14c7962c0bbea6a4c154d5144">zypp::ByteCount::SizeType</a></div><div class="ttdeci">Unit::ValueType SizeType</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00037">ByteCount.h:37</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a0462ade32ace0d22e7340408e0de7a8c"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a0462ade32ace0d22e7340408e0de7a8c">zypp::ByteCount::operator++</a></div><div class="ttdeci">ByteCount &amp; operator++()</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00097">ByteCount.h:97</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a6bb7c6b990f68b095a8d9c05d46f092c"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a6bb7c6b990f68b095a8d9c05d46f092c">zypp::ByteCount::operator/=</a></div><div class="ttdeci">ByteCount &amp; operator/=(const SizeType rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00095">ByteCount.h:95</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html"><div class="ttname"><a href="classzypp_1_1ByteCount.html">zypp::ByteCount</a></div><div class="ttdoc">Store and operate with byte count.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00030">ByteCount.h:30</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_aed056a242730607b786db74931ee756e"><div class="ttname"><a href="classzypp_1_1ByteCount.html#aed056a242730607b786db74931ee756e">zypp::ByteCount::GB</a></div><div class="ttdeci">static const Unit GB</div><div class="ttdoc">1000^3 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00062">ByteCount.h:62</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a0dd8d5f6b31ed3e1f4c28bc72244c032"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a0dd8d5f6b31ed3e1f4c28bc72244c032">zypp::ByteCount::TiB</a></div><div class="ttdeci">static const Unit TiB</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00055">ByteCount.h:55</a></div></div>
<div class="ttc" id="namespacestr_html"><div class="ttname"><a href="namespacestr.html">str</a></div><div class="ttdoc">String related utilities and Regular expression matching.</div></div>
<div class="ttc" id="classzypp_1_1base_1_1Unit_html_a42854e46517a14d1096a7f77ffa63566"><div class="ttname"><a href="classzypp_1_1base_1_1Unit.html#a42854e46517a14d1096a7f77ffa63566">zypp::base::Unit::form</a></div><div class="ttdeci">std::string form(ValueType val_r, unsigned field_width_r=0, unsigned unit_width_r=1) const</div><div class="ttdoc">Build string representation of val_r.</div><div class="ttdef"><b>Definition:</b> <a href="Unit_8h_source.html#l00070">Unit.h:70</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a45f478ab520000b10f98ac524c00d808"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a45f478ab520000b10f98ac524c00d808">zypp::ByteCount::asString</a></div><div class="ttdeci">std::string asString(const Unit &amp;unit_r, unsigned field_width_r=0, unsigned unit_width_r=1) const</div><div class="ttdoc">Auto selected precision.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00142">ByteCount.h:142</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a0cbf2655b16ae9018e712f7f8d1d57e4"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a0cbf2655b16ae9018e712f7f8d1d57e4">zypp::ByteCount::MB</a></div><div class="ttdeci">static const Unit MB</div><div class="ttdoc">1000^2 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00060">ByteCount.h:60</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a8292caca6e63da60199a7ada729e4d7c"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a8292caca6e63da60199a7ada729e4d7c">zypp::ByteCount::Unit</a></div><div class="ttdeci">base::Unit Unit</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00036">ByteCount.h:36</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a9fef2eaab85195a614b0addcdf240189"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a9fef2eaab85195a614b0addcdf240189">zypp::ByteCount::operator+=</a></div><div class="ttdeci">ByteCount &amp; operator+=(const SizeType rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00092">ByteCount.h:92</a></div></div>
<div class="ttc" id="classzypp_1_1base_1_1Unit_html_ada1945bc21eff0d4e0a514e0e2894266"><div class="ttname"><a href="classzypp_1_1base_1_1Unit.html#ada1945bc21eff0d4e0a514e0e2894266">zypp::base::Unit::prec</a></div><div class="ttdeci">unsigned prec() const</div><div class="ttdef"><b>Definition:</b> <a href="Unit_8h_source.html#l00066">Unit.h:66</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a6db698562bdf4a3baadbc8a18cc3dbaf"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a6db698562bdf4a3baadbc8a18cc3dbaf">zypp::ByteCount::fillBlock</a></div><div class="ttdeci">ByteCount &amp; fillBlock(ByteCount blocksize_r=K)</div><div class="ttdoc">Adjust count to multiple of blocksize_r (default 1K).</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8cc_source.html#l00043">ByteCount.cc:43</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a15f643bce0231fca828f094010d8f4ba"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a15f643bce0231fca828f094010d8f4ba">zypp::ByteCount::G</a></div><div class="ttdeci">static const Unit G</div><div class="ttdoc">1024^3 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00051">ByteCount.h:51</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a6ecd3ab3b5d597c8d512de6e0c0307ca"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a6ecd3ab3b5d597c8d512de6e0c0307ca">zypp::ByteCount::bestUnit</a></div><div class="ttdeci">const Unit &amp; bestUnit() const</div><div class="ttdoc">Return the best Unit (B,K,M,G,T) for count.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8cc_source.html#l00070">ByteCount.cc:70</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a33cbde347b9e482ffe7df8eac8033a38"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a33cbde347b9e482ffe7df8eac8033a38">zypp::ByteCount::asString</a></div><div class="ttdeci">std::string asString(const Unit &amp;unit_r, unsigned field_width_r, unsigned unit_width_r, unsigned prec_r) const</div><div class="ttdoc">Nothing auto selected.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00147">ByteCount.h:147</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_af111efae8b0b041bbfbe835ba1a56d9b"><div class="ttname"><a href="classzypp_1_1ByteCount.html#af111efae8b0b041bbfbe835ba1a56d9b">zypp::ByteCount::asString</a></div><div class="ttdeci">std::string asString(unsigned field_width_r=0, unsigned unit_width_r=1) const</div><div class="ttdoc">Auto selected Unit and precision.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00133">ByteCount.h:133</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_ae355c3b15ecc85a287d942558177521f"><div class="ttname"><a href="classzypp_1_1ByteCount.html#ae355c3b15ecc85a287d942558177521f">zypp::ByteCount::operator*=</a></div><div class="ttdeci">ByteCount &amp; operator*=(const SizeType rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00094">ByteCount.h:94</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_ae3fd29d58ea9bda38d494df23dc31873"><div class="ttname"><a href="classzypp_1_1ByteCount.html#ae3fd29d58ea9bda38d494df23dc31873">zypp::ByteCount::GiB</a></div><div class="ttdeci">static const Unit GiB</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00052">ByteCount.h:52</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_aea2dba283dcafa89cdf637aac59deab0"><div class="ttname"><a href="classzypp_1_1ByteCount.html#aea2dba283dcafa89cdf637aac59deab0">zypp::ByteCount::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;str, const ByteCount &amp;obj)</div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a5ee7f380fa1916eb57364033a11d8f5d"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a5ee7f380fa1916eb57364033a11d8f5d">zypp::ByteCount::blocks</a></div><div class="ttdeci">SizeType blocks(ByteCount blocksize_r=K) const</div><div class="ttdoc">Return number of blocks of size blocksize_r (default 1K).</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00114">ByteCount.h:114</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a25dfd74c26d6a0e5522e9b8b7a4de064"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a25dfd74c26d6a0e5522e9b8b7a4de064">zypp::ByteCount::bestUnit1000</a></div><div class="ttdeci">const Unit &amp; bestUnit1000() const</div><div class="ttdoc">Return the best Unit (B,kB,MB,GB,TB) for count.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8cc_source.html#l00089">ByteCount.cc:89</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a2e61836e0b4ffdf3f801be9f51436812"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a2e61836e0b4ffdf3f801be9f51436812">zypp::ByteCount::ByteCount</a></div><div class="ttdeci">ByteCount()</div><div class="ttdoc">Default ctor.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00070">ByteCount.h:70</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_ac48ad8b90da0e3d237114691b8a5bf82"><div class="ttname"><a href="classzypp_1_1ByteCount.html#ac48ad8b90da0e3d237114691b8a5bf82">zypp::ByteCount::B</a></div><div class="ttdeci">static const Unit B</div><div class="ttdoc">1 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00042">ByteCount.h:42</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a840869184a16a4c139051bdc2db16b55"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a840869184a16a4c139051bdc2db16b55">zypp::ByteCount::ByteCount</a></div><div class="ttdeci">ByteCount(const Unit &amp;unit_r)</div><div class="ttdoc">Ctor taking 1 Unit.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00074">ByteCount.h:74</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a4f94baecaf5c9078a7c58092f7c60fae"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a4f94baecaf5c9078a7c58092f7c60fae">zypp::ByteCount::operator--</a></div><div class="ttdeci">ByteCount operator--(int)</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00101">ByteCount.h:101</a></div></div>
<div class="ttc" id="Unit_8h_html"><div class="ttname"><a href="Unit_8h.html">Unit.h</a></div></div>
<div class="ttc" id="classzypp_1_1base_1_1Unit_html"><div class="ttname"><a href="classzypp_1_1base_1_1Unit.html">zypp::base::Unit</a></div><div class="ttdoc">Simple handling of Units.</div><div class="ttdef"><b>Definition:</b> <a href="Unit_8h_source.html#l00042">Unit.h:42</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_aeac8eca81223b70b0ac03111315abc54"><div class="ttname"><a href="classzypp_1_1ByteCount.html#aeac8eca81223b70b0ac03111315abc54">zypp::ByteCount::M</a></div><div class="ttdeci">static const Unit M</div><div class="ttdoc">1024^2 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00048">ByteCount.h:48</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a5dc004bcb252ae4e1f88fac0352a3468"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a5dc004bcb252ae4e1f88fac0352a3468">zypp::ByteCount::ByteCount</a></div><div class="ttdeci">ByteCount(const SizeType count_r, const Unit &amp;unit_r=B)</div><div class="ttdoc">Ctor taking a count and optinal Unit.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00078">ByteCount.h:78</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a81b42fa75ec8376ffaa683c79b7cf2d9"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a81b42fa75ec8376ffaa683c79b7cf2d9">zypp::ByteCount::K</a></div><div class="ttdeci">static const Unit K</div><div class="ttdoc">1024 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00045">ByteCount.h:45</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a0035e826e2780bbdd98319ad990f1a3b"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a0035e826e2780bbdd98319ad990f1a3b">zypp::ByteCount::MiB</a></div><div class="ttdeci">static const Unit MiB</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00049">ByteCount.h:49</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_afe5fdb534fa2285d95858ba746417281"><div class="ttname"><a href="classzypp_1_1ByteCount.html#afe5fdb534fa2285d95858ba746417281">zypp::ByteCount::T</a></div><div class="ttdeci">static const Unit T</div><div class="ttdoc">1024^4 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00054">ByteCount.h:54</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_aaccd7e32c3179aeaf6e7b3a690c2c871"><div class="ttname"><a href="classzypp_1_1ByteCount.html#aaccd7e32c3179aeaf6e7b3a690c2c871">zypp::ByteCount::TB</a></div><div class="ttdeci">static const Unit TB</div><div class="ttdoc">1000^4 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00064">ByteCount.h:64</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a4f8f87b80ca56c7a177559e20d7d9074"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a4f8f87b80ca56c7a177559e20d7d9074">zypp::ByteCount::kB</a></div><div class="ttdeci">static const Unit kB</div><div class="ttdoc">1000 Byte</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00058">ByteCount.h:58</a></div></div>
<div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a1109fb680609695295d5a53e69edce8f"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a1109fb680609695295d5a53e69edce8f">zypp::ByteCount::asString</a></div><div class="ttdeci">std::string asString(unsigned field_width_r, unsigned unit_width_r, unsigned prec_r) const</div><div class="ttdoc">Auto selected Unit.</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00137">ByteCount.h:137</a></div></div>
<div class="ttc" id="classzypp_1_1base_1_1Unit_html_aed43d42ec8eeb1a05e17917815ec6d02"><div class="ttname"><a href="classzypp_1_1base_1_1Unit.html#aed43d42ec8eeb1a05e17917815ec6d02">zypp::base::Unit::ValueType</a></div><div class="ttdeci">long long ValueType</div><div class="ttdef"><b>Definition:</b> <a href="Unit_8h_source.html#l00045">Unit.h:45</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_adde404c2bfa17cbbd0a427c9d93092ac"><div class="ttname"><a href="classzypp_1_1ByteCount.html#adde404c2bfa17cbbd0a427c9d93092ac">zypp::ByteCount::fullBlocks</a></div><div class="ttdeci">ByteCount fullBlocks(ByteCount blocksize_r=K) const</div><div class="ttdoc">Return count adjusted to multiple of blocksize_r (default 1K).</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00110">ByteCount.h:110</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_a7f493e0fb08c74c465c33d72f9003d3f"><div class="ttname"><a href="classzypp_1_1ByteCount.html#a7f493e0fb08c74c465c33d72f9003d3f">zypp::ByteCount::operator--</a></div><div class="ttdeci">ByteCount &amp; operator--()</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00098">ByteCount.h:98</a></div></div>
<div class="ttc" id="classzypp_1_1ByteCount_html_ad0b5c8d777d8d8f36cb9fdb713feea9d"><div class="ttname"><a href="classzypp_1_1ByteCount.html#ad0b5c8d777d8d8f36cb9fdb713feea9d">zypp::ByteCount::KiB</a></div><div class="ttdeci">static const Unit KiB</div><div class="ttdef"><b>Definition:</b> <a href="ByteCount_8h_source.html#l00046">ByteCount.h:46</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="ByteCount_8h.html">ByteCount.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>