OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Member Functions | List of all members
TerminalStream Class Reference

#include <TerminalStream.h>

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

Public Member Functions

 TerminalStream (const char program[])
 Constructor. More...
 
virtual ~TerminalStream ()
 
virtual bool fillLine ()
 Read next input line. More...
 
- Public Member Functions inherited from AbsFileStream
 AbsFileStream (const std::string &name)
 Constructor. More...
 
virtual ~AbsFileStream ()
 
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

 TerminalStream (const TerminalStream &)
 
void operator= (const TerminalStream &)
 

Additional Inherited Members

- Protected Member Functions inherited from AbsFileStream
Token readNumber ()
 
Token readString ()
 
Token readWord ()
 
bool skipComments ()
 
- 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 AbsFileStream
std::string line
 
int curr_char
 
- Protected Attributes inherited from TokenStream
std::string stream_name
 
int curr_line
 
bool put_back_flag
 
Token put_back
 

Detailed Description

Definition at line 24 of file TerminalStream.h.

Constructor & Destructor Documentation

◆ TerminalStream() [1/2]

TerminalStream::TerminalStream ( const char  program[])

Constructor.

Definition at line 24 of file TerminalStream.cpp.

◆ ~TerminalStream()

TerminalStream::~TerminalStream ( )
virtual

Definition at line 30 of file TerminalStream.cpp.

◆ TerminalStream() [2/2]

TerminalStream::TerminalStream ( const TerminalStream )
private

Member Function Documentation

◆ fillLine()

bool TerminalStream::fillLine ( )
virtual

Read next input line.

Implements AbsFileStream.

Definition at line 34 of file TerminalStream.cpp.

References AbsFileStream::curr_char, TokenStream::curr_line, and AbsFileStream::line.

◆ operator=()

void TerminalStream::operator= ( const TerminalStream )
private

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