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

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

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

Private Attributes

 _autoDelName
 _err

Detailed Description

Definition at line 2523 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::GarbageCollect::__init__ (   self,
  parameters 
)
An GarbageCollect that works in concert with the AutoDelete block.
It autogenerates calls to the delete(...) function for symbols found
in the AutoDelete block.  For instance, if you have the following auto
delete block:

AutoDelete(locals)
  type (DLList<integer>) :: a,b,c
end AutoDelete

Then, a GarbageCollect block like this:

GarbageCollect(locals, lerr)
end GarbageCollect

will generate:

lerr = catch(delete(a), .true.)
lerr = catch(delete(b), .true.)
lerr = catch(delete(c), .true.)


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

Definition at line 2548 of file blocks.py.


Member Function Documentation

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

Definition at line 2539 of file blocks.py.

def blockit::Fortran::blocks::GarbageCollect::show (   self,
  mangle = False 
)
Work with the AutoDelete block to auto create delete calls.

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

Definition at line 2579 of file blocks.py.


Member Data Documentation

Definition at line 2573 of file blocks.py.

Reimplemented from blockit::blocks::Block.

Definition at line 2529 of file blocks.py.

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

Definition at line 2528 of file blocks.py.


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