00001
00002
00003
00004 #ifndef MHWidthOne_h
00005 #define MHWidthOne_h
00006
00007 #include "MHWidth.h"
00008
00009 #include "Serializable.h"
00010
00011
00012 using namespace std;
00013
00014 namespace BIE {
00015
00016
00020 class MHWidthOne : public MHWidth
00021 {
00022 private:
00023
00025 vector<double> w;
00026
00027 public:
00028
00033 MHWidthOne(int M, int N, vector<double>* W);
00034
00035
00040 MHWidthOne(int M, int N, string file);
00041
00043 double width(int M, int j) { return w[j]; }
00044
00045
00046 protected:
00047 MHWidthOne() {}
00048 private:
00049 friend class boost::serialization::access;
00050 template<class Archive>
00051 void serialize(Archive & ar, const unsigned int version) {
00052 this->pre_serialize(ar, version);
00053 try {
00054 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(MHWidth);
00055 BIE_CATCH_BOOST_SERIALIZATION_EXCEPTION;
00056 }
00057 try {
00058 ar & BOOST_SERIALIZATION_NVP(w);
00059 BIE_CATCH_BOOST_SERIALIZATION_EXCEPTION;
00060 }
00061 this->post_serialize(ar, version);
00062 }
00063
00064 };
00065 }
00066
00067 BIE_CLASS_TYPE_INFO(BIE::MHWidthOne)
00068 BIE_CLASS_EXPORT_KEY(BIE::MHWidthOne)
00069 #endif