Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 560

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_974d432048ef135a7d3fc83794dbf3e9.html">binners</a>
  </div>
</div>
<div class="contents">
<h1>BinsBase.cxx</h1><a href="BinsBase_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="BinsBase_8h.html" title="hippodraw::BinsBase class interface">BinsBase.h</a>&quot;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifdef ITERATOR_MEMBER_DEFECT</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="keyword">using namespace </span>std;
<a name="l00022"></a>00022 <span class="preprocessor">#else</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="keyword">using</span> std::list;
<a name="l00024"></a>00024 <span class="keyword">using</span> std::string;
<a name="l00025"></a>00025 <span class="keyword">using</span> std::vector;
<a name="l00026"></a>00026 <span class="preprocessor">#endif</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="keyword">namespace </span>hippodraw {
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a5c32c15e92af2ec3d1991061da4f597b">00030</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a5c32c15e92af2ec3d1991061da4f597b" title="The constructor taking the bins container name as argument.">BinsBase::BinsBase</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span> * name )
<a name="l00031"></a>00031   : m_name ( name ),
<a name="l00032"></a>00032     m_scale_factor ( 1.0 ),
<a name="l00033"></a>00033     m_is_scaling ( false ),
<a name="l00034"></a>00034     m_values_dirty ( true ),
<a name="l00035"></a>00035     m_empty ( true )
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a2633c4cb7607e0fc54b75f032d1093e6">00039</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a5c32c15e92af2ec3d1991061da4f597b" title="The constructor taking the bins container name as argument.">BinsBase::BinsBase</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinsBase.html" title="The base class for the binner hierarchy.">BinsBase</a> &amp; binner )
<a name="l00040"></a>00040   : m_name ( binner.m_name ),
<a name="l00041"></a>00041     m_scale_factor ( binner.m_scale_factor ),
<a name="l00042"></a>00042     m_is_scaling ( binner.m_is_scaling ),
<a name="l00043"></a>00043     m_values_dirty ( binner.m_values_dirty ),
<a name="l00044"></a>00044     m_empty ( binner.m_empty )
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046 }
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a321a6848e16676aa2cb8ce03e07b059d">00048</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a321a6848e16676aa2cb8ce03e07b059d" title="The virtual destructor.">BinsBase::~BinsBase</a> ()
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;
<a name="l00053"></a>00053 <a class="code" href="classhippodraw_1_1BinsBase.html#a11c23a386abb9eb8a42f0c2c2835d640" title="Returns the name of the Bins container object.">BinsBase::</a>
<a name="l00054"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a11c23a386abb9eb8a42f0c2c2835d640">00054</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a11c23a386abb9eb8a42f0c2c2835d640" title="Returns the name of the Bins container object.">name</a> ()<span class="keyword"> const</span>
<a name="l00055"></a>00055 <span class="keyword"></span>{
<a name="l00056"></a>00056   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1BinsBase.html#a6f9e296fcf5c68222c08850e8279025e" title="The name of the object in the Factory.">m_name</a>;
<a name="l00057"></a>00057 }
<a name="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="classhippodraw_1_1BinsBase.html#afc891d3aea2a4eb5b44bd544d9699ace">00059</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1BinsBase.html#afc891d3aea2a4eb5b44bd544d9699ace" title="Returns true if the re-accumulation is needed.">BinsBase::isDirty</a> ()
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1BinsBase.html#aae63ef60775a9645568646b6a033f905" title="A flag to indicate that the objects in m_values are not correct.">m_values_dirty</a>;
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a92a590790db6444ca7a79eaf5fbcb0d9">00064</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1BinsBase.html#a92a590790db6444ca7a79eaf5fbcb0d9" title="Sets a flag to indicate that re-binning needs to be done.">BinsBase::setDirty</a>()
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066   <a class="code" href="classhippodraw_1_1BinsBase.html#aae63ef60775a9645568646b6a033f905" title="A flag to indicate that the objects in m_values are not correct.">m_values_dirty</a> = <span class="keyword">true</span>;
<a name="l00067"></a>00067 }
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="classhippodraw_1_1BinsBase.html#afebca028c690c69ec5991c41c6994bcb">00069</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1BinsBase.html#afebca028c690c69ec5991c41c6994bcb" title="Returns the scale factor.">BinsBase::scaleFactor</a> ()<span class="keyword"> const</span>
<a name="l00070"></a>00070 <span class="keyword"></span>{
<a name="l00071"></a>00071   <span class="keywordflow">return</span> 1.0;
<a name="l00072"></a>00072 }
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a6d8a76cf5463d7850ba13bec75873deb">00074</a> <span class="keywordtype">double</span> <a class="code" href="classhippodraw_1_1BinsBase.html#a6d8a76cf5463d7850ba13bec75873deb" title="Get the z value at the specified point (x,y).">BinsBase::getZValue</a> ( <span class="keywordtype">double</span>, <span class="keywordtype">double</span> )<span class="keyword"> const</span>
<a name="l00075"></a>00075 <span class="keyword"></span>{
<a name="l00076"></a>00076   <span class="keywordflow">return</span> 0;
<a name="l00077"></a>00077 }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="keywordtype">bool</span>
<a name="l00080"></a>00080 <a class="code" href="classhippodraw_1_1BinsBase.html#a479432127ee77145cc19d6a2d1590821" title="Returns true if no accumulation has yet occurred, otherwise returns false.">BinsBase::</a>
<a name="l00081"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a479432127ee77145cc19d6a2d1590821">00081</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a479432127ee77145cc19d6a2d1590821" title="Returns true if no accumulation has yet occurred, otherwise returns false.">isEmpty</a> ( )<span class="keyword"> const</span>
<a name="l00082"></a>00082 <span class="keyword"></span>{
<a name="l00083"></a>00083   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1BinsBase.html#ac21f18624d637a3e48f64730fb79c479" title="A flag set to true, when no accumulation has yet occurred, otherwise is set false...">m_empty</a>;
<a name="l00084"></a>00084 }
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="keywordtype">void</span>
<a name="l00087"></a>00087 <a class="code" href="classhippodraw_1_1BinsBase.html#a2e702f332b1b1d726126ad233830117e" title="Sets a scale factor on the output so that the number of entries appears to be number...">BinsBase::</a>
<a name="l00088"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a2e702f332b1b1d726126ad233830117e">00088</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a2e702f332b1b1d726126ad233830117e" title="Sets a scale factor on the output so that the number of entries appears to be number...">scaleNumberOfEntries</a> ( <span class="keywordtype">double</span> number )
<a name="l00089"></a>00089 {
<a name="l00090"></a>00090   <a class="code" href="classhippodraw_1_1BinsBase.html#a3fba3a52c08a77ff1127828800f5c8a3" title="The scale factor.">m_scale_factor</a> = number;
<a name="l00091"></a>00091 }
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="keywordtype">void</span>
<a name="l00094"></a>00094 <a class="code" href="classhippodraw_1_1BinsBase.html#afc26cc484a33e946cf3452d990c926aa" title="Sets the scaling number of entries on if on is true, otherwise turns if off.">BinsBase::</a>
<a name="l00095"></a><a class="code" href="classhippodraw_1_1BinsBase.html#afc26cc484a33e946cf3452d990c926aa">00095</a> <a class="code" href="classhippodraw_1_1BinsBase.html#afc26cc484a33e946cf3452d990c926aa" title="Sets the scaling number of entries on if on is true, otherwise turns if off.">setEntriesScaling</a> ( <span class="keywordtype">bool</span> on )
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097   <a class="code" href="classhippodraw_1_1BinsBase.html#aa3fe89c038fc4349d4d9f41d20b2fe01" title="A flag which is set true to enable scaling the output.">m_is_scaling</a> = on;
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099  
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="keywordtype">void</span>
<a name="l00102"></a>00102 <a class="code" href="classhippodraw_1_1BinsBase.html#a7ef0deb6705372d450df66efae4b2d19" title="Set the minimum entries/bin.">BinsBase::</a>
<a name="l00103"></a><a class="code" href="classhippodraw_1_1BinsBase.html#a7ef0deb6705372d450df66efae4b2d19">00103</a> <a class="code" href="classhippodraw_1_1BinsBase.html#a7ef0deb6705372d450df66efae4b2d19" title="Set the minimum entries/bin.">setMinEntries</a> ( <span class="keywordtype">int</span> entries )
<a name="l00104"></a>00104 {
<a name="l00105"></a>00105 }
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="keywordtype">int</span>
<a name="l00108"></a>00108 <a class="code" href="classhippodraw_1_1BinsBase.html#af96954b4d284f563f634f877a97d6fef" title="Get the minimum entries/bin.">BinsBase::</a>
<a name="l00109"></a><a class="code" href="classhippodraw_1_1BinsBase.html#af96954b4d284f563f634f877a97d6fef">00109</a> <a class="code" href="classhippodraw_1_1BinsBase.html#af96954b4d284f563f634f877a97d6fef" title="Get the minimum entries/bin.">getMinEntries</a> ()
<a name="l00110"></a>00110 {
<a name="l00111"></a>00111   <span class="keywordflow">return</span> -1;
<a name="l00112"></a>00112 }
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 }<span class="comment">// namespace hippodraw</span>
<a name="l00115"></a>00115 
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>