OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | List of all members
SimpleStatement Class Reference

A simple input statement in token form. More...

#include <SimpleStatement.h>

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

Public Member Functions

 SimpleStatement (const std::string &streamName, int streamLine)
 Constructor. More...
 
 SimpleStatement (const std::string &streamName, TokenList &list)
 Constructor. More...
 
virtual ~SimpleStatement ()
 Destructor. More...
 
virtual void execute (const Parser &)
 Execute statement. More...
 
- Public Member Functions inherited from Statement
 Statement (const std::string &name, int line)
 Constructor. More...
 
 Statement (const std::string &name, TokenList &)
 Constructor. More...
 
virtual ~Statement ()
 
void append (const Token &)
 Append a token. More...
 
bool atEnd () const
 Test for end of command. More...
 
bool boolean (bool &value)
 Return boolean value. More...
 
bool delimiter (char c)
 Test for delimiter. More...
 
bool delimiter (const char *s)
 Test for delimiter choice. More...
 
TokengetCurrent ()
 Return current token and skip it. More...
 
bool integer (int &value)
 Return signed integer. More...
 
bool integer (unsigned &value)
 Return unsigned integer. More...
 
bool keyword (const char *s)
 Test for keyword. More...
 
bool real (double &value)
 Return real value. More...
 
bool str (std::string &value)
 Return string value. More...
 
bool word (std::string &value)
 Return word value. More...
 
void mark ()
 Mark position in command. More...
 
void restore ()
 Return to marked position. More...
 
void start ()
 Return to start. More...
 
void skip ()
 Skip. More...
 
unsigned int position () const
 Return current character number in line. More...
 
virtual void print (std::ostream &os) const
 Print statement. More...
 
virtual void printWhere (Inform &msg, bool withToken) const
 Print position. More...
 

Additional Inherited Members

- Public Types inherited from Statement
typedef std::list< TokenTokenList
 The type of the enclosed token list. More...
 
- Protected Attributes inherited from Statement
int stat_line
 
std::string buffer_name
 
TokenList tokens
 
TokenList::iterator curr
 
TokenList::iterator keep
 

Detailed Description

A simple input statement in token form.

Definition at line 31 of file SimpleStatement.h.

Constructor & Destructor Documentation

SimpleStatement::SimpleStatement ( const std::string &  streamName,
int  streamLine 
)

Constructor.

Definition at line 30 of file SimpleStatement.cpp.

SimpleStatement::SimpleStatement ( const std::string &  streamName,
TokenList list 
)

Constructor.

Definition at line 35 of file SimpleStatement.cpp.

SimpleStatement::~SimpleStatement ( )
virtual

Destructor.

Definition at line 40 of file SimpleStatement.cpp.

Member Function Documentation

void SimpleStatement::execute ( const Parser parser)
virtual

Execute statement.

Implements Statement.

Definition at line 44 of file SimpleStatement.cpp.

References Statement::curr, Statement::keep, Parser::parse(), and Statement::tokens.

Here is the call graph for this function:


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