/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

SimUnobservableStatisticsHeader.h
Go to the documentation of this file.
00001 
00002 //   **************************************************************************
00003 //   *                                                                        *
00004 //   *                      ! ! ! A T T E N T I O N ! ! !                     *
00005 //   *                                                                        *
00006 //   *  This file was created automatically by GaudiObjDesc, please do not    *
00007 //   *  delete it or edit it by hand.                                         *
00008 //   *                                                                        *
00009 //   *  If you want to change this file, first change the corresponding       *
00010 //   *  xml-file and rerun the tools from GaudiObjDesc (or run make if you    *
00011 //   *  are using it from inside a Gaudi-package).                            *
00012 //   *                                                                        *
00013 //   **************************************************************************
00014 
00015 #ifndef SimEvent_SimUnobservableStatisticsHeader_H
00016 #define SimEvent_SimUnobservableStatisticsHeader_H 1
00017 
00018 // Include files
00019 #include "SimStatistic.h"
00020 #include "GaudiKernel/boost_allocator.h"
00021 #include <map>
00022 #include <string>
00023 #include <ostream>
00024 
00025 // Forward declarations
00026 
00027 namespace DayaBay 
00028 {
00029 
00030   // Forward declarations
00031 
00041   class SimUnobservableStatisticsHeader
00042   {
00043   public:
00044 
00046     typedef std::map<std::string,DayaBay::SimStatistic> stat_map;
00047   
00049     SimUnobservableStatisticsHeader() : m_stats() {}
00050   
00052     virtual ~SimUnobservableStatisticsHeader() {}
00053   
00055     stat_map& stats();
00056   
00058     std::ostream& fillStream(std::ostream& s) const;
00059   
00062   const stat_map& stats() const;
00063   
00066   void setStats(const stat_map& value);
00067   
00068   
00069   #ifndef GOD_NOALLOC
00070 
00071     static void* operator new ( size_t size )
00072     {
00073       return ( sizeof(SimUnobservableStatisticsHeader) == size ? 
00074                boost::singleton_pool<SimUnobservableStatisticsHeader, sizeof(SimUnobservableStatisticsHeader)>::malloc() :
00075                ::operator new(size) );
00076     }
00077   
00081     static void* operator new ( size_t size, void* pObj )
00082     {
00083       return ::operator new (size,pObj);
00084     }
00085   
00087     static void operator delete ( void* p )
00088     {
00089       boost::singleton_pool<SimUnobservableStatisticsHeader, sizeof(SimUnobservableStatisticsHeader)>::is_from(p) ?
00090       boost::singleton_pool<SimUnobservableStatisticsHeader, sizeof(SimUnobservableStatisticsHeader)>::free(p) :
00091       ::operator delete(p);
00092     }
00093   
00096     static void operator delete ( void* p, void* pObj )
00097     {
00098       ::operator delete (p, pObj);
00099     }
00100   #endif
00101   protected:
00102 
00103   private:
00104 
00105     stat_map m_stats; 
00106   
00107   }; // class SimUnobservableStatisticsHeader
00108 
00109   inline std::ostream& operator<< (std::ostream& str, const SimUnobservableStatisticsHeader& obj)
00110   {
00111     return obj.fillStream(str);
00112   }
00113   
00114 } // namespace DayaBay;
00115 
00116 // -----------------------------------------------------------------------------
00117 // end of class
00118 // -----------------------------------------------------------------------------
00119 
00120 // Including forward declarations
00121 
00122 inline const DayaBay::SimUnobservableStatisticsHeader::stat_map& DayaBay::SimUnobservableStatisticsHeader::stats() const 
00123 {
00124   return m_stats;
00125 }
00126 
00127 inline void DayaBay::SimUnobservableStatisticsHeader::setStats(const stat_map& value) 
00128 {
00129   m_stats = value;
00130 }
00131 
00132 inline DayaBay::SimUnobservableStatisticsHeader::stat_map& DayaBay::SimUnobservableStatisticsHeader::stats() 
00133 {
00134 return m_stats;
00135 }
00136 
00137 
00138 #endif ///SimEvent_SimUnobservableStatisticsHeader_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:05:28 for SimEvent by doxygen 1.7.4