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

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

string BLOCKTYPE = 'Instantiate'
tuple KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE))
tuple OPTNAME = pp.Optional(VALIDNAME)
tuple GRAMMAR = KEYWORD+OPTNAME+pp.LineEnd()
 SENTINEL = \

Private Attributes

 _name

Detailed Description

Definition at line 2763 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::Instantiate::__init__ (   self,
  parameters 
)
An instantiate block is simply used to instantiate template symbols
listed in the block.  This can be used to separate the build cycle
into phases.  Phase I would be to have instantiate blocks build all
the templates for you and put them somewhere.  Phase II would be to
read the sources and mangle the template names.  Phase III would be to
parse the headers of all the files and build the dependencies for a
Makefile. Also, these blocks can be placed in a file directly to
trigger instantiations.  This can be useful if you place functions
within a templated module and use an `as` name to wrap them in generic
interfaces.  You can the simply use the `as` name in your code instead
of a template call.

Definition at line 2781 of file blocks.py.


Member Function Documentation

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

Definition at line 2773 of file blocks.py.

def blockit::Fortran::blocks::Instantiate::show (   self,
  mangle 
)
Show a realization of a block based on its current state.

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

Definition at line 2798 of file blocks.py.


Member Data Documentation

Reimplemented from blockit::blocks::Block.

Definition at line 2792 of file blocks.py.

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

Definition at line 2764 of file blocks.py.

Reimplemented from blockit::blocks::Block.

Definition at line 2767 of file blocks.py.

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

Definition at line 2765 of file blocks.py.

tuple blockit::Fortran::blocks::Instantiate::OPTNAME = pp.Optional(VALIDNAME) [static]

Definition at line 2766 of file blocks.py.

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

Definition at line 2768 of file blocks.py.


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