#include <C1dInvGaConfParser.hpp>
Inheritance diagram for C1dInvGaConfParser:


Public Member Functions | |
| void | initializeASTFactory (antlr::ASTFactory &factory) |
| C1dInvGaConfParser (antlr::TokenBuffer &tokenBuf) | |
| C1dInvGaConfParser (antlr::TokenStream &lexer) | |
| C1dInvGaConfParser (const antlr::ParserSharedInputState &state) | |
| int | getNumTokens () const |
| const char * | getTokenName (int type) const |
| const char *const * | getTokenNames () const |
| void | configentry () |
| bool | boolvalue () |
| std::string | stringvalue () |
| double | numvalue () |
| void | configfile () |
| antlr::RefAST | getAST () |
Public Attributes | |
| bool | verbose |
| bool | usevrefmodel |
| std::string | vrefmodel |
| int | mtfitexponent |
| int | recfitexponent |
| int | popsize |
| double | inittemp |
| double | coolingratio |
| int | generations |
| double | mutationprob |
| double | crossoverprob |
| double | slowness |
| double | omega |
| double | sigma |
| int | shift |
| double | cc |
| double | poisson |
| int | threads |
| double | starttime |
| double | endtime |
| double | tensorerror |
| double | reserror |
| double | phaseerror |
| double | recerror |
| std::string | recmethod |
| std::string | gatype |
| std::string | outputbase |
| std::string | mode |
| std::string | mtfit |
| std::string | mtinputdata |
| std::string | recinputdata |
| std::string | rfabsveldata |
| int | annealinggeneration |
| bool | elitist |
| std::vector< double > | thickbase |
| std::vector< double > | thickstep |
| std::vector< int > | thicksizes |
| std::vector< double > | resbase |
| std::vector< double > | resstep |
| std::vector< int > | ressizes |
| std::vector< double > | svelbase |
| std::vector< double > | svelstep |
| std::vector< int > | svelsizes |
| std::vector< double > | weights |
| double | recweight |
| double | absvelweight |
Protected Member Functions | |
| C1dInvGaConfParser (antlr::TokenBuffer &tokenBuf, int k) | |
| C1dInvGaConfParser (antlr::TokenStream &lexer, int k) | |
Protected Attributes | |
| antlr::RefAST | returnAST |
Definition at line 18 of file C1dInvGaConfParser.hpp.
| C1dInvGaConfParser::C1dInvGaConfParser | ( | antlr::TokenBuffer & | tokenBuf, | |
| int | k | |||
| ) | [protected] |
| C1dInvGaConfParser::C1dInvGaConfParser | ( | antlr::TokenBuffer & | tokenBuf | ) |
| C1dInvGaConfParser::C1dInvGaConfParser | ( | antlr::TokenStream & | lexer, | |
| int | k | |||
| ) | [protected] |
| C1dInvGaConfParser::C1dInvGaConfParser | ( | antlr::TokenStream & | lexer | ) |
| C1dInvGaConfParser::C1dInvGaConfParser | ( | const antlr::ParserSharedInputState & | state | ) |
| void C1dInvGaConfParser::initializeASTFactory | ( | antlr::ASTFactory & | factory | ) |
| int C1dInvGaConfParser::getNumTokens | ( | ) | const [inline] |
| const char* C1dInvGaConfParser::getTokenName | ( | int | type | ) | const [inline] |
Definition at line 87 of file C1dInvGaConfParser.hpp.
00088 { 00089 if( type > getNumTokens() ) return 0; 00090 return C1dInvGaConfParser::tokenNames[type]; 00091 }
| const char* const* C1dInvGaConfParser::getTokenNames | ( | ) | const [inline] |
| void C1dInvGaConfParser::configentry | ( | ) |
Definition at line 33 of file C1dInvGaConfParser.cpp.
References annealinggeneration, ANNEALINGGENERATIONT, boolvalue(), cc, CCT, coolingratio, COOLINGRATIOT, crossoverprob, CROSSOVERPROBT, elitist, ELITISTT, endtime, ENDTIMET, EQUAL, gatype, GATYPET, generations, GENERATIONST, inittemp, INITTEMPT, mode, MODET, mtfit, mtfitexponent, MTFITEXPONENTT, MTFITT, mtinputdata, MTINPUTDATAT, mutationprob, MUTATIONPROBT, NUMBER, numvalue(), omega, OMEGAT, outputbase, OUTPUTBASET, phaseerror, PHASEERRORT, poisson, POISSONT, popsize, POPSIZET, recerror, RECERRORT, recfitexponent, RECFITEXPONENTT, recinputdata, RECINPUTDATAT, recmethod, RECMETHODT, resbase, RESBASET, reserror, RESERRORT, rfabsveldata, RFABSVELDATAT, shift, SHIFTT, sigma, SIGMAT, slowness, SLOWNESST, starttime, STARTTIMET, stringvalue(), tensorerror, TENSORERRORT, thickbase, THICKBASET, thicksizes, THICKSIZEST, thickstep, THICKSTEPT, threads, THREADST, usevrefmodel, USEVREFMODELT, verbose, VERBOSET, vrefmodel, and VREFMODELT.
Referenced by configfile().
00033 { 00034 00035 try { // for error handling 00036 { 00037 switch ( LA(1)) { 00038 case VERBOSET: 00039 { 00040 match(VERBOSET); 00041 match(EQUAL); 00042 verbose=boolvalue(); 00043 break; 00044 } 00045 case USEVREFMODELT: 00046 { 00047 match(USEVREFMODELT); 00048 match(EQUAL); 00049 usevrefmodel=boolvalue(); 00050 break; 00051 } 00052 case VREFMODELT: 00053 { 00054 match(VREFMODELT); 00055 match(EQUAL); 00056 vrefmodel=stringvalue(); 00057 break; 00058 } 00059 case MTFITEXPONENTT: 00060 { 00061 match(MTFITEXPONENTT); 00062 match(EQUAL); 00063 mtfitexponent=numvalue(); 00064 break; 00065 } 00066 case RECFITEXPONENTT: 00067 { 00068 match(RECFITEXPONENTT); 00069 match(EQUAL); 00070 recfitexponent=numvalue(); 00071 break; 00072 } 00073 case POPSIZET: 00074 { 00075 match(POPSIZET); 00076 match(EQUAL); 00077 popsize=numvalue(); 00078 break; 00079 } 00080 case INITTEMPT: 00081 { 00082 match(INITTEMPT); 00083 match(EQUAL); 00084 inittemp=numvalue(); 00085 break; 00086 } 00087 case COOLINGRATIOT: 00088 { 00089 match(COOLINGRATIOT); 00090 match(EQUAL); 00091 coolingratio=numvalue(); 00092 break; 00093 } 00094 case GENERATIONST: 00095 { 00096 match(GENERATIONST); 00097 match(EQUAL); 00098 generations=numvalue(); 00099 break; 00100 } 00101 case MUTATIONPROBT: 00102 { 00103 match(MUTATIONPROBT); 00104 match(EQUAL); 00105 mutationprob=numvalue(); 00106 break; 00107 } 00108 case CROSSOVERPROBT: 00109 { 00110 match(CROSSOVERPROBT); 00111 match(EQUAL); 00112 crossoverprob=numvalue(); 00113 break; 00114 } 00115 case SLOWNESST: 00116 { 00117 match(SLOWNESST); 00118 match(EQUAL); 00119 slowness=numvalue(); 00120 break; 00121 } 00122 case OMEGAT: 00123 { 00124 match(OMEGAT); 00125 match(EQUAL); 00126 omega=numvalue(); 00127 break; 00128 } 00129 case SIGMAT: 00130 { 00131 match(SIGMAT); 00132 match(EQUAL); 00133 sigma=numvalue(); 00134 break; 00135 } 00136 case SHIFTT: 00137 { 00138 match(SHIFTT); 00139 match(EQUAL); 00140 shift=numvalue(); 00141 break; 00142 } 00143 case CCT: 00144 { 00145 match(CCT); 00146 match(EQUAL); 00147 cc=numvalue(); 00148 break; 00149 } 00150 case POISSONT: 00151 { 00152 match(POISSONT); 00153 match(EQUAL); 00154 poisson=numvalue(); 00155 break; 00156 } 00157 case THREADST: 00158 { 00159 match(THREADST); 00160 match(EQUAL); 00161 threads=numvalue(); 00162 break; 00163 } 00164 case STARTTIMET: 00165 { 00166 match(STARTTIMET); 00167 match(EQUAL); 00168 starttime=numvalue(); 00169 break; 00170 } 00171 case ENDTIMET: 00172 { 00173 match(ENDTIMET); 00174 match(EQUAL); 00175 endtime=numvalue(); 00176 break; 00177 } 00178 case TENSORERRORT: 00179 { 00180 match(TENSORERRORT); 00181 match(EQUAL); 00182 tensorerror=numvalue(); 00183 break; 00184 } 00185 case RESERRORT: 00186 { 00187 match(RESERRORT); 00188 match(EQUAL); 00189 reserror=numvalue(); 00190 break; 00191 } 00192 case PHASEERRORT: 00193 { 00194 match(PHASEERRORT); 00195 match(EQUAL); 00196 phaseerror=numvalue(); 00197 break; 00198 } 00199 case RECERRORT: 00200 { 00201 match(RECERRORT); 00202 match(EQUAL); 00203 recerror=numvalue(); 00204 break; 00205 } 00206 case RECMETHODT: 00207 { 00208 match(RECMETHODT); 00209 match(EQUAL); 00210 recmethod=stringvalue(); 00211 break; 00212 } 00213 case GATYPET: 00214 { 00215 match(GATYPET); 00216 match(EQUAL); 00217 gatype=stringvalue(); 00218 break; 00219 } 00220 case OUTPUTBASET: 00221 { 00222 match(OUTPUTBASET); 00223 match(EQUAL); 00224 outputbase=stringvalue(); 00225 break; 00226 } 00227 case MODET: 00228 { 00229 match(MODET); 00230 match(EQUAL); 00231 mode=stringvalue(); 00232 break; 00233 } 00234 case MTFITT: 00235 { 00236 match(MTFITT); 00237 match(EQUAL); 00238 mtfit=stringvalue(); 00239 break; 00240 } 00241 case MTINPUTDATAT: 00242 { 00243 match(MTINPUTDATAT); 00244 match(EQUAL); 00245 mtinputdata=stringvalue(); 00246 break; 00247 } 00248 case RECINPUTDATAT: 00249 { 00250 match(RECINPUTDATAT); 00251 match(EQUAL); 00252 recinputdata=stringvalue(); 00253 break; 00254 } 00255 case RFABSVELDATAT: 00256 { 00257 match(RFABSVELDATAT); 00258 match(EQUAL); 00259 rfabsveldata=stringvalue(); 00260 break; 00261 } 00262 case ANNEALINGGENERATIONT: 00263 { 00264 match(ANNEALINGGENERATIONT); 00265 match(EQUAL); 00266 annealinggeneration=numvalue(); 00267 break; 00268 } 00269 case ELITISTT: 00270 { 00271 match(ELITISTT); 00272 match(EQUAL); 00273 elitist=boolvalue(); 00274 break; 00275 } 00276 case THICKBASET: 00277 { 00278 match(THICKBASET); 00279 match(EQUAL); 00280 if ( inputState->guessing==0 ) { 00281 #line 107 "C1dInvGaConf.g" 00282 i = 0; dtemp = 0; stemp = ""; btemp = false; 00283 #line 284 "C1dInvGaConfParser.cpp" 00284 } 00285 { // ( ... )+ 00286 int _cnt138=0; 00287 for (;;) { 00288 if ((LA(1) == NUMBER)) { 00289 dtemp=numvalue(); 00290 if ( inputState->guessing==0 ) { 00291 #line 108 "C1dInvGaConf.g" 00292 if (i < thickbase.size()) {thickbase.at(i) = dtemp;} else{thickbase.push_back(dtemp);}++i; 00293 #line 294 "C1dInvGaConfParser.cpp" 00294 } 00295 } 00296 else { 00297 if ( _cnt138>=1 ) { goto _loop138; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00298 } 00299 00300 _cnt138++; 00301 } 00302 _loop138:; 00303 } // ( ... )+ 00304 break; 00305 } 00306 case THICKSTEPT: 00307 { 00308 match(THICKSTEPT); 00309 match(EQUAL); 00310 if ( inputState->guessing==0 ) { 00311 #line 109 "C1dInvGaConf.g" 00312 i = 0; dtemp = 0; stemp = ""; btemp = false; 00313 #line 314 "C1dInvGaConfParser.cpp" 00314 } 00315 { // ( ... )+ 00316 int _cnt144=0; 00317 for (;;) { 00318 if ((LA(1) == NUMBER)) { 00319 dtemp=numvalue(); 00320 if ( inputState->guessing==0 ) { 00321 #line 110 "C1dInvGaConf.g" 00322 if (i < thickstep.size()) {thickstep.at(i) = dtemp;} else{thickstep.push_back(dtemp);}++i; 00323 #line 324 "C1dInvGaConfParser.cpp" 00324 } 00325 } 00326 else { 00327 if ( _cnt144>=1 ) { goto _loop144; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00328 } 00329 00330 _cnt144++; 00331 } 00332 _loop144:; 00333 } // ( ... )+ 00334 break; 00335 } 00336 case THICKSIZEST: 00337 { 00338 match(THICKSIZEST); 00339 match(EQUAL); 00340 if ( inputState->guessing==0 ) { 00341 #line 111 "C1dInvGaConf.g" 00342 i = 0; dtemp = 0; stemp = ""; btemp = false; 00343 #line 344 "C1dInvGaConfParser.cpp" 00344 } 00345 { // ( ... )+ 00346 int _cnt150=0; 00347 for (;;) { 00348 if ((LA(1) == NUMBER)) { 00349 itemp=numvalue(); 00350 if ( inputState->guessing==0 ) { 00351 #line 112 "C1dInvGaConf.g" 00352 if (i < thicksizes.size()) {thicksizes.at(i) = itemp;} else{thicksizes.push_back(itemp);}++i; 00353 #line 354 "C1dInvGaConfParser.cpp" 00354 } 00355 } 00356 else { 00357 if ( _cnt150>=1 ) { goto _loop150; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00358 } 00359 00360 _cnt150++; 00361 } 00362 _loop150:; 00363 } // ( ... )+ 00364 break; 00365 } 00366 case RESBASET: 00367 { 00368 match(RESBASET); 00369 match(EQUAL); 00370 if ( inputState->guessing==0 ) { 00371 #line 113 "C1dInvGaConf.g" 00372 i = 0; dtemp = 0; stemp = ""; btemp = false; 00373 #line 374 "C1dInvGaConfParser.cpp" 00374 } 00375 { // ( ... )+ 00376 int _cnt156=0; 00377 for (;;) { 00378 if ((LA(1) == NUMBER)) { 00379 dtemp=numvalue(); 00380 if ( inputState->guessing==0 ) { 00381 #line 114 "C1dInvGaConf.g" 00382 if (i < resbase.size()) {resbase.at(i) = dtemp;} else{resbase.push_back(dtemp);}++i; 00383 #line 384 "C1dInvGaConfParser.cpp" 00384 } 00385 } 00386 else { 00387 if ( _cnt156>=1 ) { goto _loop156; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00388 } 00389 00390 _cnt156++; 00391 } 00392 _loop156:; 00393 } // ( ... )+ 00394 break; 00395 } 00396 case RESSTEPT: 00397 { 00398 match(RESSTEPT); 00399 match(EQUAL); 00400 if ( inputState->guessing==0 ) { 00401 #line 115 "C1dInvGaConf.g" 00402 i = 0; dtemp = 0; stemp = ""; btemp = false; 00403 #line 404 "C1dInvGaConfParser.cpp" 00404 } 00405 { // ( ... )+ 00406 int _cnt162=0; 00407 for (;;) { 00408 if ((LA(1) == NUMBER)) { 00409 dtemp=numvalue(); 00410 if ( inputState->guessing==0 ) { 00411 #line 116 "C1dInvGaConf.g" 00412 if (i < resstep.size()) {resstep.at(i) = dtemp;} else{resstep.push_back(dtemp);}++i; 00413 #line 414 "C1dInvGaConfParser.cpp" 00414 } 00415 } 00416 else { 00417 if ( _cnt162>=1 ) { goto _loop162; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00418 } 00419 00420 _cnt162++; 00421 } 00422 _loop162:; 00423 } // ( ... )+ 00424 break; 00425 } 00426 case RESSIZEST: 00427 { 00428 match(RESSIZEST); 00429 match(EQUAL); 00430 if ( inputState->guessing==0 ) { 00431 #line 117 "C1dInvGaConf.g" 00432 i = 0; dtemp = 0; stemp = ""; btemp = false; 00433 #line 434 "C1dInvGaConfParser.cpp" 00434 } 00435 { // ( ... )+ 00436 int _cnt168=0; 00437 for (;;) { 00438 if ((LA(1) == NUMBER)) { 00439 itemp=numvalue(); 00440 if ( inputState->guessing==0 ) { 00441 #line 118 "C1dInvGaConf.g" 00442 if (i < ressizes.size()) {ressizes.at(i) = itemp;} else{ressizes.push_back(itemp);}++i; 00443 #line 444 "C1dInvGaConfParser.cpp" 00444 } 00445 } 00446 else { 00447 if ( _cnt168>=1 ) { goto _loop168; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00448 } 00449 00450 _cnt168++; 00451 } 00452 _loop168:; 00453 } // ( ... )+ 00454 break; 00455 } 00456 case SVELBASET: 00457 { 00458 match(SVELBASET); 00459 match(EQUAL); 00460 if ( inputState->guessing==0 ) { 00461 #line 119 "C1dInvGaConf.g" 00462 i = 0; dtemp = 0; stemp = ""; btemp = false; 00463 #line 464 "C1dInvGaConfParser.cpp" 00464 } 00465 { // ( ... )+ 00466 int _cnt174=0; 00467 for (;;) { 00468 if ((LA(1) == NUMBER)) { 00469 dtemp=numvalue(); 00470 if ( inputState->guessing==0 ) { 00471 #line 120 "C1dInvGaConf.g" 00472 if (i < svelbase.size()) {svelbase.at(i) = dtemp;} else{svelbase.push_back(dtemp);}++i; 00473 #line 474 "C1dInvGaConfParser.cpp" 00474 } 00475 } 00476 else { 00477 if ( _cnt174>=1 ) { goto _loop174; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00478 } 00479 00480 _cnt174++; 00481 } 00482 _loop174:; 00483 } // ( ... )+ 00484 break; 00485 } 00486 case SVELSTEPT: 00487 { 00488 match(SVELSTEPT); 00489 match(EQUAL); 00490 if ( inputState->guessing==0 ) { 00491 #line 121 "C1dInvGaConf.g" 00492 i = 0; dtemp = 0; stemp = ""; btemp = false; 00493 #line 494 "C1dInvGaConfParser.cpp" 00494 } 00495 { // ( ... )+ 00496 int _cnt180=0; 00497 for (;;) { 00498 if ((LA(1) == NUMBER)) { 00499 dtemp=numvalue(); 00500 if ( inputState->guessing==0 ) { 00501 #line 122 "C1dInvGaConf.g" 00502 if (i < svelstep.size()) {svelstep.at(i) = dtemp;} else{svelstep.push_back(dtemp);}++i; 00503 #line 504 "C1dInvGaConfParser.cpp" 00504 } 00505 } 00506 else { 00507 if ( _cnt180>=1 ) { goto _loop180; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00508 } 00509 00510 _cnt180++; 00511 } 00512 _loop180:; 00513 } // ( ... )+ 00514 break; 00515 } 00516 case SVELSIZEST: 00517 { 00518 match(SVELSIZEST); 00519 match(EQUAL); 00520 if ( inputState->guessing==0 ) { 00521 #line 123 "C1dInvGaConf.g" 00522 i = 0; dtemp = 0; stemp = ""; btemp = false; 00523 #line 524 "C1dInvGaConfParser.cpp" 00524 } 00525 { // ( ... )+ 00526 int _cnt186=0; 00527 for (;;) { 00528 if ((LA(1) == NUMBER)) { 00529 itemp=numvalue(); 00530 if ( inputState->guessing==0 ) { 00531 #line 124 "C1dInvGaConf.g" 00532 if (i < svelsizes.size()) {svelsizes.at(i) = itemp;} else{svelsizes.push_back(itemp);}++i; 00533 #line 534 "C1dInvGaConfParser.cpp" 00534 } 00535 } 00536 else { 00537 if ( _cnt186>=1 ) { goto _loop186; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00538 } 00539 00540 _cnt186++; 00541 } 00542 _loop186:; 00543 } // ( ... )+ 00544 break; 00545 } 00546 case WEIGHTST: 00547 { 00548 match(WEIGHTST); 00549 match(EQUAL); 00550 if ( inputState->guessing==0 ) { 00551 #line 125 "C1dInvGaConf.g" 00552 i = 0; dtemp = 0; stemp = ""; btemp = false; 00553 #line 554 "C1dInvGaConfParser.cpp" 00554 } 00555 { // ( ... )+ 00556 int _cnt192=0; 00557 for (;;) { 00558 if ((LA(1) == NUMBER)) { 00559 dtemp=numvalue(); 00560 if ( inputState->guessing==0 ) { 00561 #line 126 "C1dInvGaConf.g" 00562 if (i < weights.size()) {weights.at(i) = dtemp;} else{weights.push_back(dtemp);}++i; 00563 #line 564 "C1dInvGaConfParser.cpp" 00564 } 00565 } 00566 else { 00567 if ( _cnt192>=1 ) { goto _loop192; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00568 } 00569 00570 _cnt192++; 00571 } 00572 _loop192:; 00573 } // ( ... )+ 00574 break; 00575 } 00576 case RECWEIGHTT: 00577 { 00578 match(RECWEIGHTT); 00579 match(EQUAL); 00580 recweight=numvalue(); 00581 break; 00582 } 00583 case ABSVELWEIGHTT: 00584 { 00585 match(ABSVELWEIGHTT); 00586 match(EQUAL); 00587 absvelweight=numvalue(); 00588 break; 00589 } 00590 default: 00591 { 00592 throw antlr::NoViableAltException(LT(1), getFilename()); 00593 } 00594 } 00595 } 00596 } 00597 catch (antlr::RecognitionException& ex) { 00598 if( inputState->guessing == 0 ) { 00599 reportError(ex); 00600 recover(ex,_tokenSet_0); 00601 } else { 00602 throw; 00603 } 00604 } 00605 }
Here is the call graph for this function:

| bool C1dInvGaConfParser::boolvalue | ( | ) |
Definition at line 607 of file C1dInvGaConfParser.cpp.
Referenced by configentry().
00607 { 00608 #line 143 "C1dInvGaConf.g" 00609 bool r; 00610 #line 611 "C1dInvGaConfParser.cpp" 00611 00612 try { // for error handling 00613 { 00614 switch ( LA(1)) { 00615 case TRUE: 00616 { 00617 match(TRUE); 00618 if ( inputState->guessing==0 ) { 00619 #line 144 "C1dInvGaConf.g" 00620 r = true; 00621 #line 622 "C1dInvGaConfParser.cpp" 00622 } 00623 break; 00624 } 00625 case FALSE: 00626 { 00627 match(FALSE); 00628 if ( inputState->guessing==0 ) { 00629 #line 144 "C1dInvGaConf.g" 00630 r = false; 00631 #line 632 "C1dInvGaConfParser.cpp" 00632 } 00633 break; 00634 } 00635 default: 00636 { 00637 throw antlr::NoViableAltException(LT(1), getFilename()); 00638 } 00639 } 00640 } 00641 } 00642 catch (antlr::RecognitionException& ex) { 00643 if( inputState->guessing == 0 ) { 00644 reportError(ex); 00645 recover(ex,_tokenSet_0); 00646 } else { 00647 throw; 00648 } 00649 } 00650 return r; 00651 }
| std::string C1dInvGaConfParser::stringvalue | ( | ) |
Definition at line 653 of file C1dInvGaConfParser.cpp.
References STRING.
Referenced by configentry().
00653 { 00654 #line 147 "C1dInvGaConf.g" 00655 std::string r; 00656 #line 657 "C1dInvGaConfParser.cpp" 00657 antlr::RefToken currvalue = antlr::nullToken; 00658 00659 try { // for error handling 00660 currvalue = LT(1); 00661 match(STRING); 00662 if ( inputState->guessing==0 ) { 00663 #line 148 "C1dInvGaConf.g" 00664 r = currvalue->getText(); 00665 #line 666 "C1dInvGaConfParser.cpp" 00666 } 00667 } 00668 catch (antlr::RecognitionException& ex) { 00669 if( inputState->guessing == 0 ) { 00670 reportError(ex); 00671 recover(ex,_tokenSet_0); 00672 } else { 00673 throw; 00674 } 00675 } 00676 return r; 00677 }
| double C1dInvGaConfParser::numvalue | ( | ) |
Definition at line 679 of file C1dInvGaConfParser.cpp.
References NUMBER.
Referenced by configentry().
00679 { 00680 #line 139 "C1dInvGaConf.g" 00681 double r; 00682 #line 683 "C1dInvGaConfParser.cpp" 00683 antlr::RefToken currvalue = antlr::nullToken; 00684 00685 try { // for error handling 00686 currvalue = LT(1); 00687 match(NUMBER); 00688 if ( inputState->guessing==0 ) { 00689 #line 140 "C1dInvGaConf.g" 00690 r = atof(currvalue->getText().c_str()); 00691 #line 692 "C1dInvGaConfParser.cpp" 00692 } 00693 } 00694 catch (antlr::RecognitionException& ex) { 00695 if( inputState->guessing == 0 ) { 00696 reportError(ex); 00697 recover(ex,_tokenSet_1); 00698 } else { 00699 throw; 00700 } 00701 } 00702 return r; 00703 }
| void C1dInvGaConfParser::configfile | ( | ) |
Definition at line 705 of file C1dInvGaConfParser.cpp.
References COMMENT, configentry(), EQUAL, mtfitexponent, recfitexponent, usevrefmodel, and verbose.
Referenced by C1dInvGaConf::GetData().
00705 { 00706 #line 130 "C1dInvGaConf.g" 00707 00708 verbose = false; 00709 usevrefmodel = false; 00710 mtfitexponent = 2; 00711 recfitexponent = 2; 00712 00713 #line 714 "C1dInvGaConfParser.cpp" 00714 00715 try { // for error handling 00716 { // ( ... )+ 00717 int _cnt204=0; 00718 for (;;) { 00719 if ((_tokenSet_2.member(LA(1)))) { 00720 configentry(); 00721 { 00722 if ((LA(1) == COMMENT) && (_tokenSet_0.member(LA(2))) && (LA(3) == antlr::Token::EOF_TYPE || LA(3) == EQUAL || LA(3) == COMMENT) && (_tokenSet_3.member(LA(4))) && (_tokenSet_1.member(LA(5))) && (_tokenSet_4.member(LA(6))) && (_tokenSet_5.member(LA(7))) && (_tokenSet_5.member(LA(8))) && (_tokenSet_5.member(LA(9))) && (_tokenSet_5.member(LA(10)))) { 00723 match(COMMENT); 00724 } 00725 else if ((_tokenSet_0.member(LA(1))) && (LA(2) == antlr::Token::EOF_TYPE || LA(2) == EQUAL || LA(2) == COMMENT) && (_tokenSet_3.member(LA(3))) && (_tokenSet_1.member(LA(4))) && (_tokenSet_4.member(LA(5))) && (_tokenSet_5.member(LA(6))) && (_tokenSet_5.member(LA(7))) && (_tokenSet_5.member(LA(8))) && (_tokenSet_5.member(LA(9))) && (_tokenSet_5.member(LA(10)))) { 00726 } 00727 else { 00728 throw antlr::NoViableAltException(LT(1), getFilename()); 00729 } 00730 00731 } 00732 } 00733 else { 00734 if ( _cnt204>=1 ) { goto _loop204; } else {throw antlr::NoViableAltException(LT(1), getFilename());} 00735 } 00736 00737 _cnt204++; 00738 } 00739 _loop204:; 00740 } // ( ... )+ 00741 { // ( ... )* 00742 for (;;) { 00743 if ((LA(1) == COMMENT)) { 00744 match(COMMENT); 00745 } 00746 else { 00747 goto _loop206; 00748 } 00749 00750 } 00751 _loop206:; 00752 } // ( ... )* 00753 match(antlr::Token::EOF_TYPE); 00754 } 00755 catch (antlr::RecognitionException& ex) { 00756 if( inputState->guessing == 0 ) { 00757 reportError(ex); 00758 recover(ex,_tokenSet_6); 00759 } else { 00760 throw; 00761 } 00762 } 00763 }
Here is the call graph for this function:

| antlr::RefAST C1dInvGaConfParser::getAST | ( | ) | [inline] |
Definition at line 25 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), configfile(), and C1dInvGaConf::GetData().
Definition at line 26 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), configfile(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::vrefmodel |
Definition at line 27 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 28 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), configfile(), and C1dInvGaConf::GetData().
Definition at line 29 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), configfile(), and C1dInvGaConf::GetData().
Definition at line 30 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::inittemp |
Definition at line 31 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 32 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 33 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 34 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 35 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::slowness |
Definition at line 36 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::omega |
Definition at line 37 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::sigma |
Definition at line 38 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 39 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::cc |
Definition at line 40 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::poisson |
Definition at line 41 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 42 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 43 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::endtime |
Definition at line 44 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 45 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::reserror |
Definition at line 46 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 47 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| double C1dInvGaConfParser::recerror |
Definition at line 48 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::recmethod |
Definition at line 49 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::gatype |
Definition at line 50 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::outputbase |
Definition at line 51 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::mode |
Definition at line 52 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::mtfit |
Definition at line 53 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::mtinputdata |
Definition at line 54 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::recinputdata |
Definition at line 55 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::string C1dInvGaConfParser::rfabsveldata |
Definition at line 56 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 57 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
Definition at line 58 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::vector< double > C1dInvGaConfParser::thickbase |
Definition at line 59 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::vector< double > C1dInvGaConfParser::thickstep |
Definition at line 60 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::vector< int > C1dInvGaConfParser::thicksizes |
Definition at line 61 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::vector< double > C1dInvGaConfParser::resbase |
Definition at line 62 of file C1dInvGaConfParser.hpp.
Referenced by configentry(), and C1dInvGaConf::GetData().
| std::vector< double > C1dInvGaConfParser::resstep |
| std::vector< int > C1dInvGaConfParser::ressizes |
| std::vector< double > C1dInvGaConfParser::svelbase |
| std::vector< double > C1dInvGaConfParser::svelstep |
| std::vector< int > C1dInvGaConfParser::svelsizes |
| std::vector< double > C1dInvGaConfParser::weights |
antlr::RefAST C1dInvGaConfParser::returnAST [protected] |
Definition at line 108 of file C1dInvGaConfParser.hpp.
1.5.1