Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShStatement Class Reference

A single statement. More...

#include <ShStatement.hpp>

Collaboration diagram for SH::ShStatement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 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)
 ShStatement (const ShStatement &other)
ShStatementoperator= (const ShStatement &other)
template<typename T>
T * get_info ()
template<typename T>
void destroy_info ()
void add_info (ShStatementInfo *new_info)
void remove_info (ShStatementInfo *old_info)

Public Attributes

ShVariable dest
ShVariable src [3]
ShOperation op
std::list< ShStatementInfo * > info
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 63 of file ShStatement.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 18:38:19 2005 for Sh by  doxygen 1.4.1