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

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

string BLOCKTYPE = 'Enumeration'
tuple KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE))
tuple GRAMMAR = pp.StringStart()
 SENTINEL = \

Private Attributes

 _starttoken
 _increment
 _multiple

Detailed Description

Definition at line 1931 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::Enumeration::__init__ (   self,
  parameters 
)
An enumeration block:

enumeration(start,incr,mult)  |  enumeration start
  INT1 INT2 INT3
end enumeration

Results in:

integer, parameter :: INT1=1*incr+start
integer, parameter :: INT2=2*incr+start
integer, parameter :: INT3=3*incr+start

This block automatically generates integer parameter statements for
functionals.

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

Definition at line 1961 of file blocks.py.


Member Function Documentation

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

Definition at line 1945 of file blocks.py.

def blockit::Fortran::blocks::Enumeration::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 1989 of file blocks.py.


Member Data Documentation

Definition at line 1980 of file blocks.py.

Definition at line 1980 of file blocks.py.

Definition at line 1980 of file blocks.py.

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

Definition at line 1935 of file blocks.py.

tuple blockit::Fortran::blocks::Enumeration::GRAMMAR = pp.StringStart() [static]

Reimplemented from blockit::blocks::Block.

Definition at line 1937 of file blocks.py.

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

Definition at line 1936 of file blocks.py.

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

Definition at line 1938 of file blocks.py.


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