OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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...
 
virtual Token readToken ()=0
 Read single token from 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

◆ TokenList

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

Definition at line 58 of file MacroStream.h.

Constructor & Destructor Documentation

◆ MacroStream() [1/3]

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

Constructor.

Definition at line 27 of file MacroStream.cpp.

◆ ~MacroStream()

MacroStream::~MacroStream ( )
virtual

Definition at line 32 of file MacroStream.cpp.

◆ MacroStream() [2/3]

MacroStream::MacroStream ( )
private

◆ MacroStream() [3/3]

MacroStream::MacroStream ( const MacroStream )
private

Member Function Documentation

◆ append()

void MacroStream::append ( Token token)

◆ operator=()

void MacroStream::operator= ( const MacroStream )
private

◆ readToken()

Token MacroStream::readToken ( )
virtual

◆ start()

void MacroStream::start ( )

Member Data Documentation

◆ body

TokenList MacroStream::body
private

Definition at line 59 of file MacroStream.h.

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

◆ curr

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: