X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/44862121803df9a22a5b88b8df2167f5f4afe6b1..e46233799c25067188549528947ae980579a5e8c:/paraq.h?ds=inline diff --git a/paraq.h b/paraq.h index 7108974..6dc582d 100644 --- a/paraq.h +++ b/paraq.h @@ -14,16 +14,26 @@ class paraq { int nextParas(); double& operator[] (string paraid); void addRange(const string& paraid, double range[3]) { addRange(paraid, range[0], range[1], range[2]); } - void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; } + void addRange(const string& paraid, char *range); + void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; uniqueAllParaIdsAdd(paraid); } + int getTotalJobs(); + string rangeString(); + vector allParaIds; + string getParaNames(); + string getParaVals(); private: int nprocs, rank; int thisjob; map defaultPara; map< string, vector > paraMap; + map< string, vector > rangeMap; vector< map > jobList; + void initJobList(); bool inParas(vector& paraVec, double& tofind); double masterdefault; + bool jobListInitialized; + void uniqueAllParaIdsAdd(const string& paraid); }; #endif