X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b57bffe30e8f531f21f0d50e4dc5f58275d8522e..94af0f788c0a84b3494723adfa3e5ce55edc1b43:/paraq.h diff --git a/paraq.h b/paraq.h index ef4376b..0167bcb 100644 --- a/paraq.h +++ b/paraq.h @@ -15,9 +15,14 @@ class paraq { double& operator[] (string paraid); void addRange(const string& paraid, double range[3]) { addRange(paraid, range[0], range[1], range[2]); } void addRange(const string& paraid, char *range); - void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; } + void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; uniqueAllParaIdsAdd(paraid); } + + void linkParas(const string& paraid1, const string ¶id2) { linkedParas.push_back( make_pair(paraid1,paraid2) ); } int getTotalJobs(); string rangeString(); + vector allParaIds; + string getParaNames(); + string getParaVals(); private: int nprocs, rank; @@ -25,11 +30,13 @@ class paraq { map defaultPara; map< string, vector > paraMap; map< string, vector > rangeMap; + vector< pair > linkedParas; vector< map > jobList; void initJobList(); bool inParas(vector& paraVec, double& tofind); double masterdefault; bool jobListInitialized; + void uniqueAllParaIdsAdd(const string& paraid); }; #endif