SH::ShStatement Class Reference

A single statement. More...

#include <ShStatement.hpp>

Inheritance diagram for SH::ShStatement:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< ShVariableShVariableVec

Public Member Functions

 ShStatement (ShOperation op)
 Constructs a statement with the given operator, src(s), and dest variables.
 ShStatement (ShVariable dest, ShOperation op)
 ShStatement (ShVariable dest, ShOperation op, ShVariable src)
 ShStatement (ShVariable dest, ShVariable src0, ShOperation op, ShVariable src1)
 ShStatement (ShVariable dest, ShOperation op, ShVariable src0, ShVariable src1, ShVariable src2)

Public Attributes

ShVariable dest
ShVariableVec src
ShOperation op
bool marked

Friends

SH_DLLEXPORT std::ostream & operator<< (std::ostream &out, const SH::ShStatement &stmt)

Detailed Description

A single statement.

Represent a statement of the form

dest := src[0] op src[1]
or, for unary operators:
dest := op src[0]
or, for op == SH_OP_ASN:
dest := src[0]

Definition at line 42 of file ShStatement.hpp.


Constructor & Destructor Documentation

SH::ShStatement::ShStatement ShOperation  op  ) 
 

Constructs a statement with the given operator, src(s), and dest variables.

Sets marked to false.

Definition at line 25 of file ShStatement.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 14:56:49 2006 for Sh by  doxygen 1.4.6