|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
An input buffer for macro commands. More...
#include <MacroStream.h>


Public Member Functions | |
| MacroStream (const std::string &) | |
| Constructor. More... | |
| virtual | ~MacroStream () |
| void | append (Token &) |
| Append a token to the stream. More... | |
| virtual Token | readToken () |
| Read a token from the stream. More... | |
| void | start () |
| Reset stream to start. More... | |
Public Member Functions inherited from TokenStream | |
| TokenStream (const std::string &name) | |
| Constructor. More... | |
| virtual | ~TokenStream () |
| void | putBack (const Token &token) |
| Put token back to stream. More... | |
| const std::string & | getName () const |
| Return stream name. More... | |
| int | getLine () const |
| Return line number. More... | |
Public Member Functions inherited from RCObject | |
| int | addReference () const |
| Increment reference count. More... | |
| int | removeReference () const |
| Decrement the reference count. More... | |
| bool | isShared () const |
| Test for sharing. More... | |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from RCObject | |
| RCObject () | |
| Default constructor. More... | |
| RCObject (const RCObject &) | |
| Copy constructor. More... | |
| virtual | ~RCObject ()=0 |
| RCObject & | operator= (const RCObject &right) |
Protected Attributes inherited from TokenStream | |
| std::string | stream_name |
| int | curr_line |
| bool | put_back_flag |
| Token | put_back |
An input buffer for macro commands.
Definition at line 31 of file MacroStream.h.
|
private |
Definition at line 58 of file MacroStream.h.
| MacroStream::MacroStream | ( | const std::string & | macName | ) |
Constructor.
Definition at line 27 of file MacroStream.cpp.
|
virtual |
Definition at line 32 of file MacroStream.cpp.
|
private |
|
private |
| void MacroStream::append | ( | Token & | token | ) |
Append a token to the stream.
Definition at line 36 of file MacroStream.cpp.
References body.
Referenced by CompoundStatement::CompoundStatement(), MacroCmd::makeInstance(), SequenceTemplate::makeInstance(), MacroCmd::makeTemplate(), LineTemplate::parseTemplate(), and SequenceTemplate::parseTemplate().
|
private |
|
virtual |
Read a token from the stream.
Implements TokenStream.
Definition at line 41 of file MacroStream.cpp.
References body, curr, Token::IS_EOF, TokenStream::put_back, TokenStream::put_back_flag, and TokenStream::stream_name.
Referenced by LineTemplate::makeInstance().
| void MacroStream::start | ( | ) |
Reset stream to start.
Definition at line 53 of file MacroStream.cpp.
References body, curr, and TokenStream::put_back_flag.
Referenced by MacroCmd::execute(), CompoundStatement::execute(), LineTemplate::makeInstance(), and SequenceTemplate::makeInstance().
|
private |
Definition at line 59 of file MacroStream.h.
Referenced by append(), readToken(), and start().
|
private |
Definition at line 60 of file MacroStream.h.
Referenced by readToken(), and start().
1.8.5