|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
An input buffer for macro commands. More...
#include <MacroStream.h>


Public Member Functions | |
| MacroStream (const std::string &) | |
| Constructor. | |
| virtual | ~MacroStream () |
| void | append (Token &) |
| Append a token to the stream. | |
| virtual Token | readToken () |
| Read a token from the stream. | |
| void | start () |
| Reset stream to start. | |
| void | putBack (const Token &token) |
| Put token back to stream. | |
| const std::string & | getName () const |
| Return stream name. | |
| int | getLine () const |
| Return line number. | |
Protected Attributes | |
| std::string | stream_name |
| int | curr_line |
| bool | put_back_flag |
| Token | put_back |
Private Types | |
| typedef std::list< Token > | TokenList |
Private Member Functions | |
| MacroStream () | |
| MacroStream (const MacroStream &) | |
| void | operator= (const MacroStream &) |
Private Attributes | |
| TokenList | body |
| TokenList::iterator | curr |
An input buffer for macro commands.
Definition at line 30 of file MacroStream.h.
|
private |
Definition at line 54 of file MacroStream.h.
| MacroStream::MacroStream | ( | const std::string & | macName | ) |
Constructor.
Definition at line 26 of file MacroStream.cpp.
|
virtual |
Definition at line 29 of file MacroStream.cpp.
|
private |
|
private |
| void MacroStream::append | ( | Token & | token | ) |
Append a token to the stream.
Definition at line 31 of file MacroStream.cpp.
References body.
Referenced by SequenceTemplate::makeInstance(), SequenceTemplate::parseTemplate(), and LineTemplate::parseTemplate().
|
inherited |
Return line number.
Definition at line 42 of file TokenStream.cpp.
References TokenStream::curr_line.
|
inherited |
Return stream name.
Definition at line 44 of file TokenStream.cpp.
References TokenStream::stream_name.
|
private |
|
inherited |
Put token back to stream.
Definition at line 33 of file TokenStream.cpp.
References TokenStream::put_back, and TokenStream::put_back_flag.
Referenced by IfStatement::IfStatement().
|
virtual |
Read a token from the stream.
Implements TokenStream.
Definition at line 33 of file MacroStream.cpp.
References body, curr, Token::IS_EOF, TokenStream::put_back, TokenStream::put_back_flag, and TokenStream::stream_name.
Referenced by SequenceTemplate::makeInstance(), and LineTemplate::makeInstance().
| void MacroStream::start | ( | ) |
Reset stream to start.
Definition at line 44 of file MacroStream.cpp.
References body, curr, and TokenStream::put_back_flag.
Referenced by SequenceTemplate::makeInstance(), and LineTemplate::makeInstance().
|
private |
Definition at line 55 of file MacroStream.h.
Referenced by append(), readToken(), and start().
|
private |
Definition at line 56 of file MacroStream.h.
Referenced by readToken(), and start().
|
protectedinherited |
Definition at line 56 of file TokenStream.h.
Referenced by FileStream::fillLine(), TokenStream::getLine(), AbsFileStream::readNumber(), AbsFileStream::readString(), AbsFileStream::readToken(), StringStream::readToken(), and AbsFileStream::readWord().
|
protectedinherited |
Definition at line 60 of file TokenStream.h.
Referenced by TokenStream::putBack(), AbsFileStream::readToken(), readToken(), and StringStream::readToken().
|
protectedinherited |
Definition at line 59 of file TokenStream.h.
Referenced by TokenStream::putBack(), AbsFileStream::readToken(), readToken(), StringStream::readToken(), and start().
|
protectedinherited |
Definition at line 53 of file TokenStream.h.
Referenced by FileStream::fillLine(), TokenStream::getName(), AbsFileStream::readNumber(), AbsFileStream::readString(), AbsFileStream::readToken(), readToken(), StringStream::readToken(), and AbsFileStream::readWord().