SH::ShBlockList Class Reference

A list of generic blocks. More...

#include <ShBlock.hpp>

Inheritance diagram for SH::ShBlockList:

Inheritance graph
[legend]
Collaboration diagram for SH::ShBlockList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShBlockList (bool isArgument=false)
bool isArgument ()
 True iff this block list is an argument (e.g. to sh_IF).
void addStatement (const ShStatement &statement)
 Add a simple "three variable" statement.
void addBlock (const ShBlockPtr &statement)
 Add a generic block.
ShBlockPtr getFront () const
 Return the front block from the list (does not remove it).
ShBlockPtr removeFront ()
 Remove the front block from the list and return it.
bool empty () const
 Return true iff this list does not contain any blocks.
std::ostream & print (std::ostream &out, int indentation) const
 Output a token list at a given indentation.

Friends

SH_DLLEXPORT std::ostream & operator<< (std::ostream &out, const ShBlockList &blockList)
 Output a token list.

Detailed Description

A list of generic blocks.

Definition at line 48 of file ShBlock.hpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 9 15:34:29 2005 for Sh by  doxygen 1.4.5