Sophie

Sophie

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

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>BinsFactory.cxx</h1><a href="BinsFactory_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="comment">// for truncation warning in debug mode</span>
<a name="l00013"></a>00013 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="BinsFactory_8h.html">BinsFactory.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">// List of default Bins container objects</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="Bins1DHist_8h.html" title="hippodraw::Bins1DHist class interface">Bins1DHist.h</a>&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="Bins1DProfile_8h.html" title="hippodraw::Bins1DProfile class interface">Bins1DProfile.h</a>&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="Bins2DHist_8h.html" title="hippodraw::Bins2DHist class interface">Bins2DHist.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="Bins2DProfile_8h.html" title="hippodraw::Bins2DProfile class interface">Bins2DProfile.h</a>&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">namespace </span>hippodraw {
<a name="l00026"></a><a class="code" href="classhippodraw_1_1BinsFactory.html#aa13c4b059557452a9649824f96a461c7">00026</a> 
<a name="l00027"></a>00027 <a class="code" href="classhippodraw_1_1BinsFactory.html" title="A Factory singleton class for creating objects whose class derives from BinsBase...">BinsFactory</a> * <a class="code" href="classhippodraw_1_1BinsFactory.html#abe058cac2ce543f1ab67f0331140b2be" title="A pointer to the singleton object.">BinsFactory::s_instance</a> = 0;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <a class="code" href="classhippodraw_1_1BinsFactory.html#aa13c4b059557452a9649824f96a461c7" title="A default constructor for prevent creation except by the itself or the derived classes...">BinsFactory::BinsFactory</a> ()
<a name="l00030"></a><a class="code" href="classhippodraw_1_1BinsFactory.html#a3dc39ad0ac5ece92aa734eb4d979ddb1">00030</a> {
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <a class="code" href="classhippodraw_1_1BinsFactory.html" title="A Factory singleton class for creating objects whose class derives from BinsBase...">BinsFactory</a> * <a class="code" href="classhippodraw_1_1BinsFactory.html#a3dc39ad0ac5ece92aa734eb4d979ddb1" title="Returns a pointer to the singleton instance.">BinsFactory::instance</a> ()
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1BinsFactory.html#abe058cac2ce543f1ab67f0331140b2be" title="A pointer to the singleton object.">s_instance</a> == 0 ) {
<a name="l00036"></a>00036     <a class="code" href="classhippodraw_1_1BinsFactory.html#abe058cac2ce543f1ab67f0331140b2be" title="A pointer to the singleton object.">s_instance</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1BinsFactory.html#aa13c4b059557452a9649824f96a461c7" title="A default constructor for prevent creation except by the itself or the derived classes...">BinsFactory</a> ();
<a name="l00037"></a>00037     <a class="code" href="classhippodraw_1_1BinsFactory.html#abe058cac2ce543f1ab67f0331140b2be" title="A pointer to the singleton object.">s_instance</a>-&gt;<a class="code" href="classhippodraw_1_1BinsFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default functions.">initialize</a> ();
<a name="l00038"></a>00038   }
<a name="l00039"></a><a class="code" href="classhippodraw_1_1BinsFactory.html#a25a40b6614565f755233080a384c35f1">00039</a>   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1BinsFactory.html#abe058cac2ce543f1ab67f0331140b2be" title="A pointer to the singleton object.">s_instance</a>;
<a name="l00040"></a>00040 }
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1BinsFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default functions.">BinsFactory::initialize</a> ()
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> () );
<a name="l00045"></a>00045   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Bins1DProfile.html" title="The class for the 1D profile binner hierarchy.">Bins1DProfile</a> () );
<a name="l00046"></a>00046   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Bins2DHist.html" title="The class for the 2D histogram binning.">Bins2DHist</a> () );
<a name="l00047"></a>00047   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1Bins2DProfile.html" title="The class for the 2D profile binner hierarchy.">Bins2DProfile</a> () );
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 } <span class="comment">// namespace hippodraw</span>
</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>