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

An input buffer for macro commands. More...

#include <MacroStream.h>

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

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< TokenTokenList
 

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
 
RCObjectoperator= (const RCObject &right)
 
- Protected Attributes inherited from TokenStream
std::string stream_name
 
int curr_line
 
bool put_back_flag
 
Token put_back
 

Detailed Description

An input buffer for macro commands.

Definition at line 31 of file MacroStream.h.

Member Typedef Documentation

typedef std::list<Token> MacroStream::TokenList
private

Definition at line 58 of file MacroStream.h.

Constructor & Destructor Documentation

MacroStream::MacroStream ( const std::string &  macName)

Constructor.

Definition at line 27 of file MacroStream.cpp.

MacroStream::~MacroStream ( )
virtual

Definition at line 32 of file MacroStream.cpp.

MacroStream::MacroStream ( )
private
MacroStream::MacroStream ( const MacroStream )
private

Member Function Documentation

void MacroStream::append ( Token token)
void MacroStream::operator= ( const MacroStream )
private
Token MacroStream::readToken ( )
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 ( )

Member Data Documentation

TokenList MacroStream::body
private

Definition at line 59 of file MacroStream.h.

Referenced by append(), readToken(), and start().

TokenList::iterator MacroStream::curr
private

Definition at line 60 of file MacroStream.h.

Referenced by readToken(), and start().


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