OpenMD  2.5
Molecular Dynamics in the Open
MDTreeParser Class Reference

#include <MDTreeParser.hpp>

Inheritance diagram for MDTreeParser:

Public Member Functions

GlobalswalkTree (antlr ::RefAST tree)
 
 MDTreeParser ()
 
int getNumTokens () const
 
const char * getTokenName (int type) const
 
const char *const * getTokenNames () const
 
void mdfile (antlr ::RefAST _t)
 
void statement (antlr ::RefAST _t)
 
void assignment (antlr ::RefAST _t)
 
void componentblock (antlr ::RefAST _t)
 
void moleculeblock (antlr ::RefAST _t)
 
void zconstraintblock (antlr ::RefAST _t)
 
void restraintblock (antlr ::RefAST _t)
 
void flucqblock (antlr ::RefAST _t)
 
void rnemdblock (antlr ::RefAST _t)
 
void minimizerblock (antlr ::RefAST _t)
 
void constant (antlr ::RefAST _t, antlr ::RefAST id)
 
vector< RealType > doubleNumberTuple (antlr ::RefAST _t)
 
void moleculestatement (antlr ::RefAST _t)
 
void atomblock (antlr ::RefAST _t)
 
void bondblock (antlr ::RefAST _t)
 
void bendblock (antlr ::RefAST _t)
 
void torsionblock (antlr ::RefAST _t)
 
void inversionblock (antlr ::RefAST _t)
 
void rigidbodyblock (antlr ::RefAST _t)
 
void cutoffgroupblock (antlr ::RefAST _t)
 
void fragmentblock (antlr ::RefAST _t)
 
void constraintblock (antlr ::RefAST _t)
 
void atomstatement (antlr ::RefAST _t)
 
void bondstatement (antlr ::RefAST _t)
 
vector< int > inttuple (antlr ::RefAST _t)
 
void bendstatement (antlr ::RefAST _t)
 
void torsionstatement (antlr ::RefAST _t)
 
void inversionstatement (antlr ::RefAST _t)
 
void rigidbodystatement (antlr ::RefAST _t)
 
void cutoffgroupstatement (antlr ::RefAST _t)
 
void fragmentstatement (antlr ::RefAST _t)
 
void constraintstatement (antlr ::RefAST _t)
 
antlr ::RefAST getAST ()
 

Static Public Member Functions

static void initializeASTFactory (antlr ::ASTFactory &factory)
 

Protected Member Functions

int intConst (antlr ::RefAST _t)
 
RealType floatConst (antlr ::RefAST _t)
 
RealType doubleNumber (antlr ::RefAST _t)
 

Protected Attributes

antlr ::RefAST returnAST
 
antlr ::RefAST _retTree
 

Private Attributes

GlobalscurrConf
 
stack< DataHolder * > blockStack
 

Static Private Attributes

static const char * tokenNames []
 
static const int NUM_TOKENS = 78
 
static const unsigned long _tokenSet_0_data_ [] = { 58720496UL, 16384UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_0
 
static const unsigned long _tokenSet_1_data_ [] = { 196352UL, 16384UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_1
 
static const unsigned long _tokenSet_2_data_ [] = { 6291456UL, 18432UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_2
 
static const unsigned long _tokenSet_3_data_ [] = { 4228120576UL, 16384UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_3
 
static const unsigned long _tokenSet_4_data_ [] = { 2013528064UL, 16391UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_4
 
static const unsigned long _tokenSet_5_data_ [] = { 2013528064UL, 16504UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_5
 
static const unsigned long _tokenSet_6_data_ [] = { 135790592UL, 18304UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_6
 

Detailed Description

Definition at line 18 of file MDTreeParser.hpp.

Constructor & Destructor Documentation

◆ MDTreeParser()

MDTreeParser::MDTreeParser ( )

Definition at line 11 of file MDTreeParser.cpp.

Member Function Documentation

◆ assignment()

◆ atomblock()

void MDTreeParser::atomblock ( antlr ::RefAST  _t)

◆ atomstatement()

◆ bendblock()

void MDTreeParser::bendblock ( antlr ::RefAST  _t)

◆ bendstatement()

◆ bondblock()

void MDTreeParser::bondblock ( antlr ::RefAST  _t)

◆ bondstatement()

◆ componentblock()

void MDTreeParser::componentblock ( antlr ::RefAST  _t)

◆ constant()

void MDTreeParser::constant ( antlr ::RefAST  _t,
antlr ::RefAST  id 
)

◆ constraintblock()

void MDTreeParser::constraintblock ( antlr ::RefAST  _t)

◆ constraintstatement()

void MDTreeParser::constraintstatement ( antlr ::RefAST  _t)

◆ cutoffgroupblock()

void MDTreeParser::cutoffgroupblock ( antlr ::RefAST  _t)

◆ cutoffgroupstatement()

void MDTreeParser::cutoffgroupstatement ( antlr ::RefAST  _t)

◆ doubleNumber()

RealType MDTreeParser::doubleNumber ( antlr ::RefAST  _t)
protected

◆ doubleNumberTuple()

vector< RealType > MDTreeParser::doubleNumberTuple ( antlr ::RefAST  _t)

◆ floatConst()

RealType MDTreeParser::floatConst ( antlr ::RefAST  _t)
protected

◆ flucqblock()

void MDTreeParser::flucqblock ( antlr ::RefAST  _t)

◆ fragmentblock()

void MDTreeParser::fragmentblock ( antlr ::RefAST  _t)

◆ fragmentstatement()

void MDTreeParser::fragmentstatement ( antlr ::RefAST  _t)

Definition at line 2073 of file MDTreeParser.cpp.

References _retTree, ANTLR_USE_NAMESPACE, assignment(), and antlr::nullAST.

Referenced by fragmentblock().

◆ getAST()

antlr ::RefAST MDTreeParser::getAST ( )
inline

Definition at line 88 of file MDTreeParser.hpp.

◆ getNumTokens()

int MDTreeParser::getNumTokens ( ) const
inline

Definition at line 37 of file MDTreeParser.hpp.

References NUM_TOKENS.

◆ getTokenName()

const char* MDTreeParser::getTokenName ( int  type) const
inline

Definition at line 41 of file MDTreeParser.hpp.

References tokenNames.

◆ getTokenNames()

const char* const* MDTreeParser::getTokenNames ( ) const
inline

Definition at line 46 of file MDTreeParser.hpp.

References ANTLR_USE_NAMESPACE, and tokenNames.

◆ initializeASTFactory()

◆ intConst()

int MDTreeParser::intConst ( antlr ::RefAST  _t)
protected

◆ inttuple()

vector< int > MDTreeParser::inttuple ( antlr ::RefAST  _t)

◆ inversionblock()

void MDTreeParser::inversionblock ( antlr ::RefAST  _t)

◆ inversionstatement()

◆ mdfile()

void MDTreeParser::mdfile ( antlr ::RefAST  _t)

◆ minimizerblock()

void MDTreeParser::minimizerblock ( antlr ::RefAST  _t)

◆ moleculeblock()

void MDTreeParser::moleculeblock ( antlr ::RefAST  _t)

◆ moleculestatement()

◆ restraintblock()

void MDTreeParser::restraintblock ( antlr ::RefAST  _t)

◆ rigidbodyblock()

void MDTreeParser::rigidbodyblock ( antlr ::RefAST  _t)

◆ rigidbodystatement()

void MDTreeParser::rigidbodystatement ( antlr ::RefAST  _t)

◆ rnemdblock()

void MDTreeParser::rnemdblock ( antlr ::RefAST  _t)

◆ statement()

◆ torsionblock()

void MDTreeParser::torsionblock ( antlr ::RefAST  _t)

◆ torsionstatement()

◆ walkTree()

Globals* MDTreeParser::walkTree ( antlr ::RefAST  tree)
inline

Definition at line 23 of file MDTreeParser.hpp.

Referenced by OpenMD::SimCreator::parseFile().

◆ zconstraintblock()

void MDTreeParser::zconstraintblock ( antlr ::RefAST  _t)

Member Data Documentation

◆ _retTree

◆ _tokenSet_0

const antlr::BitSet MDTreeParser::_tokenSet_0
staticprivate

Definition at line 107 of file MDTreeParser.hpp.

Referenced by initializeASTFactory(), and mdfile().

◆ _tokenSet_0_data_

const unsigned long MDTreeParser::_tokenSet_0_data_ = { 58720496UL, 16384UL, 0UL, 0UL }
staticprivate

Definition at line 106 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_1

const antlr::BitSet MDTreeParser::_tokenSet_1
staticprivate

Definition at line 109 of file MDTreeParser.hpp.

Referenced by initializeASTFactory(), and moleculeblock().

◆ _tokenSet_1_data_

const unsigned long MDTreeParser::_tokenSet_1_data_ = { 196352UL, 16384UL, 0UL, 0UL }
staticprivate

Definition at line 108 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_2

const antlr::BitSet MDTreeParser::_tokenSet_2
staticprivate

Definition at line 111 of file MDTreeParser.hpp.

Referenced by atomblock(), and initializeASTFactory().

◆ _tokenSet_2_data_

const unsigned long MDTreeParser::_tokenSet_2_data_ = { 6291456UL, 18432UL, 0UL, 0UL }
staticprivate

Definition at line 110 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_3

const antlr::BitSet MDTreeParser::_tokenSet_3
staticprivate

Definition at line 113 of file MDTreeParser.hpp.

Referenced by bondblock(), and initializeASTFactory().

◆ _tokenSet_3_data_

const unsigned long MDTreeParser::_tokenSet_3_data_ = { 4228120576UL, 16384UL, 0UL, 0UL }
staticprivate

Definition at line 112 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_4

const antlr::BitSet MDTreeParser::_tokenSet_4
staticprivate

Definition at line 115 of file MDTreeParser.hpp.

Referenced by bendblock(), and initializeASTFactory().

◆ _tokenSet_4_data_

const unsigned long MDTreeParser::_tokenSet_4_data_ = { 2013528064UL, 16391UL, 0UL, 0UL }
staticprivate

Definition at line 114 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_5

const antlr::BitSet MDTreeParser::_tokenSet_5
staticprivate

Definition at line 117 of file MDTreeParser.hpp.

Referenced by initializeASTFactory(), and torsionblock().

◆ _tokenSet_5_data_

const unsigned long MDTreeParser::_tokenSet_5_data_ = { 2013528064UL, 16504UL, 0UL, 0UL }
staticprivate

Definition at line 116 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_6

const antlr::BitSet MDTreeParser::_tokenSet_6
staticprivate

Definition at line 119 of file MDTreeParser.hpp.

Referenced by initializeASTFactory(), and inversionblock().

◆ _tokenSet_6_data_

const unsigned long MDTreeParser::_tokenSet_6_data_ = { 135790592UL, 18304UL, 0UL, 0UL }
staticprivate

Definition at line 118 of file MDTreeParser.hpp.

Referenced by initializeASTFactory().

◆ blockStack

◆ currConf

Globals* MDTreeParser::currConf
private

◆ NUM_TOKENS

const int MDTreeParser::NUM_TOKENS = 78
staticprivate

Definition at line 99 of file MDTreeParser.hpp.

Referenced by getNumTokens().

◆ returnAST

antlr ::RefAST MDTreeParser::returnAST
protected

Definition at line 94 of file MDTreeParser.hpp.

◆ tokenNames

const char * MDTreeParser::tokenNames
staticprivate

Definition at line 97 of file MDTreeParser.hpp.

Referenced by getTokenName(), getTokenNames(), and initializeASTFactory().


The documentation for this class was generated from the following files: