Definition at line 253 of file Iterable.h. Referenced by Impala::Core::Training::ParameterSearcher::ParameterSearcher(). 00254 { 00255 if(s[0]!='[' || s[s.size()-1]!=']') 00256 return false; 00257 int left = 1; 00258 int right = s.size()-2; 00259 if(s.substr(left,3) == "log") 00260 left += 3; 00261 if(s.substr(left,4) == "2log") 00262 left += 4; 00263 std::istringstream iss(s.substr(left, right-left)); 00264 double start, stop; 00265 char c1, c2; 00266 iss >> start >> c1 >> stop >> c2; 00267 if(c1 != ':') 00268 return false; 00269 if(!iss.eof()) 00270 if(c2 != ':') 00271 return true; 00272 return true; 00273 }
|