SurfInvGaConfParser.hpp

Go to the documentation of this file.
00001 #ifndef INC_SurfInvGaConfParser_hpp_
00002 #define INC_SurfInvGaConfParser_hpp_
00003 
00004 #include <antlr/config.hpp>
00005 /* $ANTLR 2.7.6 (20070220): "SurfInvGaConf.g" -> "SurfInvGaConfParser.hpp"$ */
00006 #include <antlr/TokenStream.hpp>
00007 #include <antlr/TokenBuffer.hpp>
00008 #include "SurfInvGaConfParserTokenTypes.hpp"
00009 #include <antlr/LLkParser.hpp>
00010 
00011 #line 1 "SurfInvGaConf.g"
00012 
00013         #include <string>
00014         #include <vector>
00015         #include <iostream>
00016 
00017 #line 18 "SurfInvGaConfParser.hpp"
00018 class CUSTOM_API SurfInvGaConfParser : public antlr::LLkParser, public SurfInvGaConfParserTokenTypes
00019 {
00020 #line 20 "SurfInvGaConf.g"
00021 
00022 private: 
00023 int i; double dtemp; int itemp; std::string stemp; bool btemp;
00024 public: 
00025 bool verbose;
00026 bool usevrefmodel;
00027 std::string vrefmodel;
00028 int fitexponent;
00029 int popsize;
00030 double inittemp;
00031 double coolingratio;
00032 int generations;
00033 double mutationprob;
00034 double crossoverprob;
00035 double poisson;
00036 int threads;
00037 double errorlevel;
00038 std::string gatype;
00039 std::string outputbase;
00040 std::string inputdata;
00041 int annealinggeneration;
00042 bool elitist;
00043 std::vector< double > thickbase;
00044 std::vector< double > thickstep;
00045 std::vector< int > thicksizes;
00046 std::vector< double > svelbase;
00047 std::vector< double > svelstep;
00048 std::vector< int > svelsizes;
00049 std::vector< double > weights;
00050 #line 22 "SurfInvGaConfParser.hpp"
00051 public:
00052         void initializeASTFactory( antlr::ASTFactory& factory );
00053 protected:
00054         SurfInvGaConfParser(antlr::TokenBuffer& tokenBuf, int k);
00055 public:
00056         SurfInvGaConfParser(antlr::TokenBuffer& tokenBuf);
00057 protected:
00058         SurfInvGaConfParser(antlr::TokenStream& lexer, int k);
00059 public:
00060         SurfInvGaConfParser(antlr::TokenStream& lexer);
00061         SurfInvGaConfParser(const antlr::ParserSharedInputState& state);
00062         int getNumTokens() const
00063         {
00064                 return SurfInvGaConfParser::NUM_TOKENS;
00065         }
00066         const char* getTokenName( int type ) const
00067         {
00068                 if( type > getNumTokens() ) return 0;
00069                 return SurfInvGaConfParser::tokenNames[type];
00070         }
00071         const char* const* getTokenNames() const
00072         {
00073                 return SurfInvGaConfParser::tokenNames;
00074         }
00075         public: void configentry();
00076         public: bool  boolvalue();
00077         public: std::string  stringvalue();
00078         public: double  numvalue();
00079         public: void configfile();
00080 public:
00081         antlr::RefAST getAST()
00082         {
00083                 return returnAST;
00084         }
00085         
00086 protected:
00087         antlr::RefAST returnAST;
00088 private:
00089         static const char* tokenNames[];
00090 #ifndef NO_STATIC_CONSTS
00091         static const int NUM_TOKENS = 42;
00092 #else
00093         enum {
00094                 NUM_TOKENS = 42
00095         };
00096 #endif
00097         
00098         static const unsigned long _tokenSet_0_data_[];
00099         static const antlr::BitSet _tokenSet_0;
00100         static const unsigned long _tokenSet_1_data_[];
00101         static const antlr::BitSet _tokenSet_1;
00102         static const unsigned long _tokenSet_2_data_[];
00103         static const antlr::BitSet _tokenSet_2;
00104         static const unsigned long _tokenSet_3_data_[];
00105         static const antlr::BitSet _tokenSet_3;
00106         static const unsigned long _tokenSet_4_data_[];
00107         static const antlr::BitSet _tokenSet_4;
00108         static const unsigned long _tokenSet_5_data_[];
00109         static const antlr::BitSet _tokenSet_5;
00110         static const unsigned long _tokenSet_6_data_[];
00111         static const antlr::BitSet _tokenSet_6;
00112 };
00113 
00114 #endif /*INC_SurfInvGaConfParser_hpp_*/

Generated on Thu Nov 22 13:58:27 2007 for GPLIB++ by  doxygen 1.5.1