Polaris: DirectiveStmt Class Reference

DirectiveStmt Class Reference

#include <DirectiveStmt.h>

Inheritance diagram for DirectiveStmt:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void build_refs ()
 methods which will retrieve data from common fields
virtual int structures_OK () const
virtual void convert (BinRep &stmt, ExprTable &etable, Symtab &symtab, const NamelistDict &namelists, const FormatDB &formats, Dictionary< NextEntry > *next_table)
 DirectiveStmt (const char *l, AssertionList *a_list)
 DirectiveStmt (const DirectiveStmt &stmt)
AssertionListassertion_ref () const
 return a list of assertions or 0.
void assertion (AssertionList *a_list)
 set the assertion list.
virtual ~DirectiveStmt ()
virtual DirectiveStmtoperator= (const DirectiveStmt &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

 DirectiveStmt (const char *l)

Protected Attributes

AssertionList_a_list

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

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

Definition at line 7474 of file Statement.cc.

References _a_list, and DIRECTIVE_STMT.

Referenced by clone().

DirectiveStmt::DirectiveStmt const char *  l,
AssertionList a_list
 

Definition at line 7490 of file Statement.cc.

References _a_list, build_refs(), and DIRECTIVE_STMT.

DirectiveStmt::DirectiveStmt const DirectiveStmt stmt  ) 
 

Definition at line 7480 of file Statement.cc.

References _a_list, build_refs(), Statement::copy_base(), and DIRECTIVE_STMT.

DirectiveStmt::~DirectiveStmt  )  [virtual]
 

Definition at line 7517 of file Statement.cc.

References _a_list.


Member Function Documentation

void DirectiveStmt::build_refs  )  [virtual]
 

methods which will retrieve data from common fields

Reimplemented from Statement.

Definition at line 7466 of file Statement.cc.

References RefSet< T >::clear().

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

int DirectiveStmt::structures_OK  )  const [virtual]
 

Implements Statement.

Definition at line 7551 of file Statement.cc.

References Statement::in_out_refs_structures_OK().

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

Reimplemented from Statement.

AssertionList * DirectiveStmt::assertion_ref  )  const
 

return a list of assertions or 0.

Definition at line 7586 of file Statement.cc.

References _a_list.

Referenced by print_debug().

void DirectiveStmt::assertion AssertionList a_list  ) 
 

set the assertion list.

Definition at line 7592 of file Statement.cc.

References _a_list.

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

Definition at line 7499 of file Statement.cc.

References _a_list, build_refs(), and Statement::copy_base().

Statement * DirectiveStmt::clone  )  const [virtual]
 

Implements Statement.

Definition at line 7512 of file Statement.cc.

References DirectiveStmt().

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

... comment '}'

Implements Statement.

Definition at line 7538 of file Statement.cc.

References assertion_ref(), and AssertionList::print().

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

Implements Statement.

void DirectiveStmt::exchange_convert VDL vdl  )  [virtual]
 

Convert the Statement into the exchange format.

Reimplemented from Statement.

Definition at line 7559 of file Statement.cc.

References Statement::exchange_convert(), BinRep::find_ref(), Set< T >::ins(), List< T >::ins_last(), 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.


Member Data Documentation

AssertionList* DirectiveStmt::_a_list [protected]
 

Definition at line 19 of file DirectiveStmt.h.

Referenced by assertion(), assertion_ref(), DirectiveStmt(), operator=(), and ~DirectiveStmt().


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:07:13 2005