inlib
1.2.0
|
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved. 00002 // See the file inlib.license for terms. 00003 00004 #ifndef inlib_histo_h3d 00005 #define inlib_histo_h3d 00006 00007 #include "h3" 00008 00009 namespace inlib { 00010 namespace histo { 00011 00012 class h3d : public h3<double,unsigned int,double,double> { 00013 typedef h3<double,unsigned int,double,double> parent; 00014 public: 00015 static const std::string& s_class() { 00016 static const std::string s_v("inlib::histo::h3d"); 00017 return s_v; 00018 } 00019 public: 00020 h3d(const std::string& a_title, 00021 bn_t aXnumber,double aXmin,double aXmax, 00022 bn_t aYnumber,double aYmin,double aYmax, 00023 bn_t aZnumber,double aZmin,double aZmax) 00024 : parent(a_title,aXnumber,aXmin,aXmax, 00025 aYnumber,aYmin,aYmax, 00026 aZnumber,aZmin,aZmax) 00027 {} 00028 00029 h3d(const std::string& a_title, 00030 const std::vector<double>& aEdgesX, 00031 const std::vector<double>& aEdgesY, 00032 const std::vector<double>& aEdgesZ) 00033 : parent(a_title,aEdgesX,aEdgesY,aEdgesZ) 00034 {} 00035 00036 virtual ~h3d(){} 00037 public: 00038 h3d(const h3d& a_from): parent(a_from){} 00039 h3d& operator=(const h3d& a_from){ 00040 parent::operator=(a_from); 00041 return *this; 00042 } 00043 }; 00044 00045 inline void h3d_check_instantiation() {h3d dummy("",10,0,1,10,0,1,10,0,1);} 00046 00047 }} 00048 00049 #endif 00050 00051 00052 00053