OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MatchParser Class Reference

The parser used in the OPAL match module. More...

#include <MatchParser.h>

Inheritance diagram for MatchParser:
Inheritance graph
[legend]
Collaboration diagram for MatchParser:
Collaboration graph
[legend]

Public Member Functions

 MatchParser ()
 
virtual ~MatchParser ()
 
- Public Member Functions inherited from OpalParser
 OpalParser ()
 
virtual ~OpalParser ()
 
virtual void parse (Statement &) const
 Parse and execute current statement. More...
 
virtual StatementreadStatement (TokenStream *) const
 Read complete statement from a token stream. More...
 
virtual void run () const
 Read current stream. More...
 
virtual void run (TokenStream *) const
 Read given stream. More...
 
void stop () const
 Set stop flag. More...
 
- Public Member Functions inherited from Parser
 Parser ()
 
virtual ~Parser ()
 

Protected Member Functions

virtual Objectfind (const std::string &) const
 Find object by name in the match command directory. More...
 
- Protected Member Functions inherited from OpalParser
void execute (Object *, const std::string &) const
 Execute or check the current command. More...
 
virtual void parseAction (Statement &) const
 Parse executable command. More...
 
virtual void parseAssign (Statement &) const
 Parse assignment statement. More...
 
virtual void parseDefine (Statement &) const
 Parse definition. More...
 
virtual void parseEnd (Statement &) const
 Check for end of statement. More...
 
virtual void parseMacro (const std::string &name, Statement &) const
 Parse macro definition or call. More...
 
virtual void printHelp (const std::string &) const
 Print help on named command. More...
 

Private Member Functions

 MatchParser (const MatchParser &)
 
void operator= (const MatchParser &)
 

Private Attributes

Directory MatchDirectory
 

Additional Inherited Members

- Static Public Member Functions inherited from OpalParser
static Token readToken ()
 Return next input token. More...
 

Detailed Description

The parser used in the OPAL match module.

Definition at line 32 of file MatchParser.h.

Constructor & Destructor Documentation

MatchParser::MatchParser ( )

Definition at line 36 of file MatchParser.cpp.

References OpalData::find(), OpalData::getInstance(), Directory::insert(), and MatchDirectory.

Here is the call graph for this function:

MatchParser::~MatchParser ( )
virtual

Definition at line 60 of file MatchParser.cpp.

MatchParser::MatchParser ( const MatchParser )
private

Member Function Documentation

Object * MatchParser::find ( const std::string &  name) const
protectedvirtual

Find object by name in the match command directory.

Reimplemented from OpalParser.

Definition at line 64 of file MatchParser.cpp.

References Directory::find(), and MatchDirectory.

Here is the call graph for this function:

void MatchParser::operator= ( const MatchParser )
private

Member Data Documentation

Directory MatchParser::MatchDirectory
private

Definition at line 51 of file MatchParser.h.

Referenced by find(), and MatchParser().


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