|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
A stream of input tokens. More...
#include <StringStream.h>


Public Member Functions | |
| StringStream (const std::string &s) | |
| Constructor. More... | |
| virtual | ~StringStream () |
| virtual Token | readToken () |
| Read single token from file. 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 Member Functions | |
| StringStream () | |
| StringStream (const StringStream &) | |
| void | operator= (const StringStream &) |
| Token | readNumber () |
| Token | readString () |
| Token | readWord () |
Private Attributes | |
| const std::string | line |
| std::string::size_type | curr_char |
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 |
A stream of input tokens.
Definition at line 31 of file StringStream.h.
| StringStream::StringStream | ( | const std::string & | s | ) |
Constructor.
Definition at line 32 of file StringStream.cpp.
|
virtual |
Definition at line 39 of file StringStream.cpp.
|
private |
|
private |
|
private |
|
private |
Definition at line 108 of file StringStream.cpp.
References curr_char, Token::IS_ERROR, and line.
Referenced by readToken().
|
private |
Definition at line 195 of file StringStream.cpp.
References curr_char, Token::IS_STRING, and line.
Referenced by readToken().
|
virtual |
Read single token from file.
Implements TokenStream.
Definition at line 43 of file StringStream.cpp.
References curr_char, TokenStream::curr_line, Token::IS_DELIMITER, Token::IS_EOF, Token::IS_ERROR, line, TokenStream::put_back, TokenStream::put_back_flag, readNumber(), readString(), readWord(), and TokenStream::stream_name.

|
private |
Definition at line 223 of file StringStream.cpp.
References curr_char, Token::IS_WORD, and line.
Referenced by readToken().
|
private |
Definition at line 62 of file StringStream.h.
Referenced by readNumber(), readString(), readToken(), and readWord().
|
private |
Definition at line 61 of file StringStream.h.
Referenced by readNumber(), readString(), readToken(), and readWord().
1.8.5