Polaris: ReturnStarExpr Class Reference

ReturnStarExpr Class Reference

An expression specifying which alternate return to take. More...

#include <ReturnStarExpr.h>

Inheritance diagram for ReturnStarExpr:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ReturnStarExpr ()
 ReturnStarExpr (Expression *arg_exp)
 ReturnStarExpr (const ReturnStarExpr &e)
virtual ~ReturnStarExpr ()
 ReturnStarExpr code:.
virtual ReturnStarExproperator= (const ReturnStarExpr &)
virtual Expressionclone () const
 Return a copy of myself.
virtual int structures_OK () const
 Return 1 if my structures are in a valid state.
virtual void convert (BinRep &exprSet, Symtab &symtab)
 Read in the values of my fields and my subexpressions from the given BinRep object.
virtual void print_debug (ostream &o, Boolean debug) const
 See Expression.h.
virtual int exchange_expr (VDL &vdl)
 Create a node in the "expression" member and return the index.

Detailed Description

An expression specifying which alternate return to take.

Polaris Expression

See also:
Expression/ReturnStarExpr.h

Expression/ReturnStarExpr.h

Expression/Expression.cc

Description

A ReturnStarExpr is the expression holding an integer, which specifies which of possibly several alternate returns to take from a subroutine. Its single argument is accessed through the method expr(). See UnaryExpr.h for more information about this methos. The single argument is optional.

Definition at line 30 of file ReturnStarExpr.h.


Constructor & Destructor Documentation

ReturnStarExpr::ReturnStarExpr  )  [inline]
 

< nothing to do

Definition at line 53 of file ReturnStarExpr.h.

References make_type(), RETURN_OP, and VOID_TYPE.

Referenced by clone().

ReturnStarExpr::ReturnStarExpr Expression arg_exp  )  [inline]
 

< nothing to do

Definition at line 60 of file ReturnStarExpr.h.

References make_type(), RETURN_OP, and VOID_TYPE.

ReturnStarExpr::ReturnStarExpr const ReturnStarExpr e  )  [inline]
 

< nothing to do

Definition at line 67 of file ReturnStarExpr.h.

References e.

ReturnStarExpr::~ReturnStarExpr  )  [virtual]
 

ReturnStarExpr code:.

... nothing to do

Definition at line 6417 of file Expression.cc.


Member Function Documentation

ReturnStarExpr & ReturnStarExpr::operator= const ReturnStarExpr  )  [virtual]
 

Definition at line 6429 of file Expression.cc.

References e, and UnaryExpr::operator=().

Expression * ReturnStarExpr::clone  )  const [virtual]
 

Return a copy of myself.

Reimplemented from UnaryExpr.

Definition at line 6423 of file Expression.cc.

References ReturnStarExpr().

int ReturnStarExpr::structures_OK  )  const [virtual]
 

Return 1 if my structures are in a valid state.

Reimplemented from UnaryExpr.

Definition at line 6436 of file Expression.cc.

References True.

virtual void ReturnStarExpr::convert BinRep exprSet,
Symtab symtab
[virtual]
 

Read in the values of my fields and my subexpressions from the given BinRep object.

Convert(BinRep) expects the BinRep to be referencing an expression set of the same type as the expression. On return, all data from the expression set has been inserted into the appropriate fields in the expression object. NOTE that this converts the expression to an intermediate form which may contain TableExpr objects.

Reimplemented from UnaryExpr.

virtual void ReturnStarExpr::print_debug ostream &  o,
Boolean  debug
const [virtual]
 

See Expression.h.

Reimplemented from UnaryExpr.

int ReturnStarExpr::exchange_expr VDL vdl  )  [virtual]
 

Create a node in the "expression" member and return the index.

Reimplemented from UnaryExpr.

Definition at line 6443 of file Expression.cc.

References Expression::exchange_expr(), BinRep::find_ref(), Set< T >::ins(), List< T >::ins_last(), and BinRep::to_tuple().


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:08:09 2005