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

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

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

Private Attributes

 _name

Detailed Description

Definition at line 1651 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::AutoInterface::__init__ (   self,
  parameters 
)
An autointerface block:

autointerface
end autointerface

This block automatically generates interfaces for
functions/subroutines with 'as' clauses.

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

Definition at line 1672 of file blocks.py.


Member Function Documentation

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

Definition at line 1665 of file blocks.py.

def blockit::Fortran::blocks::AutoInterface::show (   self,
  mangle = False 
)
Overloaded show() method.  Finds all functions/subroutines that
have 'as' naming within its parent block and generates a generic
interface for it using the as name.  For example:

function foo(x,y,z)  result(x)  as  bar
function foo2(x)     result(y)  as  bar

would generate

interface bar
   module procedure foo
   module procedure foo2
end interface

This is also very useful for templated functions so a consistent
generic interface can be generated.

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

Definition at line 1690 of file blocks.py.


Member Data Documentation

Reimplemented from blockit::blocks::Block.

Definition at line 1684 of file blocks.py.

Reimplemented from blockit::blocks::Block.

Definition at line 1657 of file blocks.py.

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

Definition at line 1656 of file blocks.py.


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