这篇教程C++ GetParameter函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetParameter函数的典型用法代码示例。如果您正苦于以下问题:C++ GetParameter函数的具体用法?C++ GetParameter怎么用?C++ GetParameter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetParameter函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: GetParameter void GenericModel::AddParameter(const RooRealVar& var, Int_t nbins) { // Define a named parameter for the model, with its associated range // of values and the number of 'bins' to be used to scan these values fParameters.addClone(var); GetParameter(var.GetName()).setBins(nbins); }
开发者ID:GiuseppePast,项目名称:kaliveda,代码行数:7,
示例2: CPLEXPrintFromSolverint CPLEXPrintFromSolver(int lpcount) { int Status = 0; if (CPLEXenv == NULL) { FErrorFile() << "Cannot print problem to file because CPLEX environment is not open." << endl; FlushErrorFile(); return FAIL; } if (CPLEXModel == NULL) { FErrorFile() << "Cannot print problem to file because no CPLEX model exists." << endl; FlushErrorFile(); return FAIL; } string Filename = CheckFilename(FOutputFilepath()+GetParameter("LP filename")+itoa(lpcount)); Status = CPXwriteprob (CPLEXenv, CPLEXModel,Filename.data(), "LP"); if (Status) { FErrorFile() << "Cannot print problem to file for unknown reason." << endl; FlushErrorFile(); return FAIL; } return SUCCESS;}
开发者ID:samseaver,项目名称:ProbModelSEED,代码行数:25,
示例3: GetParameterStrvoid GetParameterStr(const char* parameter, char* str){ if(str == NULL) fprintf(stderr, "Empty string passed to GetParameterStr/n"); else strcpy(str, GetParameter(parameter));}
开发者ID:ThomasHeegaard,项目名称:C_Game_Engine,代码行数:7,
|