inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/histo/p2d
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_histo_p2d
00005 #define inlib_histo_p2d
00006 
00007 #include "p2"
00008 
00009 namespace inlib {
00010 namespace histo {
00011 
00012 class p2d : public p2<double,unsigned int,double,double,double> {
00013   typedef p2<double,unsigned int,double,double,double> parent;
00014 public:
00015   static const std::string& s_class() {
00016     static const std::string s_v("inlib::histo::p2d");
00017     return s_v;
00018   }
00019 public:
00020   p2d(const std::string& a_title,
00021                    int aXnumber,double aXmin,double aXmax,
00022                    int aYnumber,double aYmin,double aYmax)
00023   : parent(a_title,aXnumber,aXmin,aXmax,
00024                    aYnumber,aYmin,aYmax)
00025   {}
00026 
00027   p2d(const std::string& a_title,
00028                    int aXnumber,double aXmin,double aXmax,
00029                    int aYnumber,double aYmin,double aYmax,
00030                    double aVmin,double aVmax)
00031   : parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax,aVmin,aVmax)
00032   {}
00033 
00034   p2d(const std::string& a_title,
00035                    const std::vector<double>& aEdgesX,
00036                    const std::vector<double>& aEdgesY)
00037   : parent(a_title,aEdgesX,aEdgesY)
00038   {}
00039 
00040   p2d(const std::string& a_title,
00041                    const std::vector<double>& aEdgesX,
00042                    const std::vector<double>& aEdgesY,
00043                    double aVmin,double aVmax)
00044   : parent(a_title,aEdgesX,aEdgesY,aVmin,aVmax)
00045   {}
00046 
00047   virtual ~p2d(){}
00048 public:
00049   p2d(const p2d& a_from): parent(a_from){}
00050   p2d& operator=(const p2d& a_from){
00051     parent::operator=(a_from);
00052     return *this;
00053   }
00054 };
00055 
00056 inline void p2d_check_instantiation() {p2d dummy("",10,0,1,10,0,1);}
00057 
00058 }}
00059 
00060 #endif
00061 
00062 
00063 
00064 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines