Polaris: AllocateStmt Class Reference

AllocateStmt Class Reference

#include <AllocateStmt.h>

Inheritance diagram for AllocateStmt:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void build_refs ()
 methods which will retrieve data from common fields
const Expressionparameters_guarded () const
Expressionparameters_guarded ()
int parameters_valid () const
void parameters (Expression *e)
virtual int structures_OK () const
virtual void convert (BinRep &stmt, ExprTable &etable, Symtab &symtab, const NamelistDict &namelists, const FormatDB &formats, Dictionary< NextEntry > *next_table)
 AllocateStmt (const char *l, Expression *parameters_exp)
 AllocateStmt (const AllocateStmt &stmt)
virtual ~AllocateStmt ()
virtual AllocateStmtoperator= (const AllocateStmt &stmt)
virtual Statementclone () const
virtual void print_debug (ostream &o, int debug) const
virtual void fortran_write (ostream &o, int &indent, char *type="") const
virtual void exchange_convert (VDL &vdl)
 Convert the Statement into the exchange format.

Protected Member Functions

 AllocateStmt (const char *l)
 < Expression * _parameters; - Now _exprlist[ALLOC_PARAMS]

Friends

Statementmake_statement (const char *name, const BinRep &binstr)
 make_statement expects the statement name ("S10") and a binstr containing the statement set.

Constructor & Destructor Documentation

AllocateStmt::AllocateStmt const char *  l  )  [protected]
 

< Expression * _parameters; - Now _exprlist[ALLOC_PARAMS]

Definition at line 6972 of file Statement.cc.

References ALLOC_PARAMS, ALLOCATE_STMT, List< T >::make_static_list(), List< T >::modify(), and omega().

Referenced by clone().

AllocateStmt::AllocateStmt const char *  l,
Expression parameters_exp
 

Definition at line 6979 of file Statement.cc.

References ALLOC_PARAMS, ALLOCATE_STMT, build_refs(), COMMA_OP, List< T >::make_static_list(), List< T >::modify(), and null_to_omega().

AllocateStmt::AllocateStmt const AllocateStmt stmt  ) 
 

Definition at line 6991 of file Statement.cc.

References ALLOC_PARAMS, ALLOCATE_STMT, build_refs(), Statement::copy_base(), and List< T >::modify().

AllocateStmt::~AllocateStmt  )  [virtual]
 

... nothing to do

Definition at line 7015 of file Statement.cc.


Member Function Documentation

void AllocateStmt::build_refs  )  [virtual]
 

methods which will retrieve data from common fields

Reimplemented from Statement.

Definition at line 6950 of file Statement.cc.

References Statement::_add_act_refs(), Statement::_add_in_refs(), ARRAY_REF_OP, RefSet< T >::clear(), RefSet< T >::ins(), parameters_guarded(), and parameters_valid().

Referenced by AllocateStmt(), and operator=().

const Expression& AllocateStmt::parameters_guarded  )  const [inline, virtual]
 

Reimplemented from Statement.

Definition at line 23 of file AllocateStmt.h.

References ALLOC_PARAMS.

Referenced by DeallocateStmt::build_refs(), and build_refs().

Expression& AllocateStmt::parameters_guarded  )  [inline, virtual]
 

Reimplemented from Statement.

Definition at line 25 of file AllocateStmt.h.

References ALLOC_PARAMS.

int AllocateStmt::parameters_valid  )  const [inline, virtual]
 

Reimplemented from Statement.

Definition at line 28 of file AllocateStmt.h.

References ALLOC_PARAMS, OMEGA_OP, True, and List< T >::valid().

Referenced by DeallocateStmt::build_refs(), build_refs(), and exchange_convert().

void AllocateStmt::parameters Expression e  )  [inline, virtual]
 

Reimplemented from Statement.

Definition at line 32 of file AllocateStmt.h.

References ALLOC_PARAMS, COMMA_OP, e, List< T >::modify(), and Expression::op().

int AllocateStmt::structures_OK  )  const [virtual]
 

Implements Statement.

Definition at line 7050 of file Statement.cc.

References Statement::in_out_refs_structures_OK().

virtual void AllocateStmt::convert BinRep stmt,
ExprTable etable,
Symtab symtab,
const NamelistDict namelists,
const FormatDB formats,
Dictionary< NextEntry > *  next_table
[virtual]
 

Reimplemented from Statement.

AllocateStmt & AllocateStmt::operator= const AllocateStmt stmt  )  [virtual]
 

Definition at line 7000 of file Statement.cc.

References ALLOC_PARAMS, build_refs(), Statement::copy_base(), and List< T >::modify().

Statement * AllocateStmt::clone  )  const [virtual]
 

Implements Statement.

Definition at line 7009 of file Statement.cc.

References AllocateStmt().

void AllocateStmt::print_debug ostream &  o,
int  debug
const [virtual]
 

... comment '}'

Implements Statement.

Definition at line 7035 of file Statement.cc.

References ALLOC_PARAMS, and List< T >::valid().

virtual void AllocateStmt::fortran_write ostream &  o,
int &  indent,
char *  type = ""
const [virtual]
 

Implements Statement.

void AllocateStmt::exchange_convert VDL vdl  )  [virtual]
 

Convert the Statement into the exchange format.

Reimplemented from Statement.

Definition at line 7058 of file Statement.cc.

References Statement::exchange_convert(), BinRep::find_ref(), Set< T >::ins(), List< T >::ins_last(), parameters_valid(), Statement::tag(), BinRep::to_set(), and BinRep::to_tuple().


Friends And Related Function Documentation

Statement* make_statement const char *  name,
const BinRep binstr
[friend]
 

make_statement expects the statement name ("S10") and a binstr containing the statement set.

It returns a pointer to the correct statement object with the tag field already filled in.

The statement table contains tuples of the from ["tag", { all the statement info}]. One should call make_statement passing the "tag" for the name and a binstr which represents the set.

Definition at line 265 of file StmtList.cc.


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:06:37 2005