BlockIt
blockit::Fortran::blocks::Foreach Class Reference
Inheritance diagram for blockit::Fortran::blocks::Foreach:
Collaboration diagram for blockit::Fortran::blocks::Foreach:

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

string BLOCKTYPE = 'Foreach'
tuple KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE))
 GRAMMAR = KEYWORD+\
 SENTINEL = \

Private Attributes

 _replacestring
 _argumentlists

Detailed Description

Definition at line 2022 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::Foreach::__init__ (   self,
  parameters 
)
A foreach construct:

foreach(f) in(INT1, INT2, INT3)
  $f$ = $f$ + 1
end foreach

Results in:

INT1 = INT1 + 1
INT2 = INT2 + 1
INT3 = INT3 + 1

Input
-----
parameters : the groups from the factory static method

Definition at line 2046 of file blocks.py.


Member Function Documentation

def blockit::Fortran::blocks::Foreach::factory (   s,
  lineNo,
  tokens 
)
Factory method called by the BlockParser to produce an
instance of the class.

Definition at line 2037 of file blocks.py.

def blockit::Fortran::blocks::Foreach::show (   self,
  mangle = False 
)
Overloaded show method.  Look for templated dependencies and put
proper name mangled use statements.

Reimplemented from blockit::Fortran::blocks::FortranBlock.

Definition at line 2070 of file blocks.py.


Member Data Documentation

Definition at line 2062 of file blocks.py.

Definition at line 2062 of file blocks.py.

Reimplemented from blockit::Fortran::blocks::FortranBlock.

Definition at line 2026 of file blocks.py.

Reimplemented from blockit::blocks::Block.

Definition at line 2028 of file blocks.py.

tuple blockit::Fortran::blocks::Foreach::KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE)) [static]

Definition at line 2027 of file blocks.py.

Reimplemented from blockit::Fortran::blocks::FortranBlock.

Definition at line 2030 of file blocks.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties