BlockIt
|
def blockit::Fortran::blocks::FortranBlock::__init__ | ( | self, | |
blockType, | |||
parameters, | |||
childToken = None |
|||
) |
def blockit::Fortran::blocks::FortranBlock::__addFunc | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addImport | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addIntrinsic | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addProc | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addSub | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addType | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__addUse | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__getstate__ | ( | self, | |
_dd = None |
|||
) |
Builds a dictionary tree of the block for pickling.
Reimplemented from blockit::blocks::Block.
def blockit::Fortran::blocks::FortranBlock::__mangleShow | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__propSymbols | ( | ) | [private] |
def blockit::Fortran::blocks::FortranBlock::__propTypes | ( | ) | [private] |
def blockit::Fortran::blocks::FortranBlock::__resolveSymbol | ( | self, | |
sym | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::__setstate__ | ( | self, | |
tree | |||
) |
Unpack the dictionary tree.
Reimplemented from blockit::blocks::Block.
def blockit::Fortran::blocks::FortranBlock::__spawnChildShow | ( | self, | |
s, | |||
l, | |||
t | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::_addLine | ( | self, | |
n | |||
) | [private] |
def blockit::Fortran::blocks::FortranBlock::addChild | ( | self, | |
child, | |||
token = None , |
|||
before = False , |
|||
regen = True |
|||
) |
Overrided addChild method which simply is needed to set the internal _name_length parameter to that of the parent.
Reimplemented from blockit::blocks::Block.
def blockit::Fortran::blocks::FortranBlock::addLine | ( | self, | |
line, | |||
n = None |
|||
) |
Method to add a text line to a block code listing. If the optional line number parameter is given, then the line is inserted AFTER the given line number. Input ----- line : text line to add to code listing n : line number in listing to insert after. Negative numbers insert from the end of the code listing.
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::Function, blockit::Fortran::blocks::Subroutine, blockit::Fortran::blocks::Interface, and blockit::Fortran::blocks::Specialization.
def blockit::Fortran::blocks::FortranBlock::addObjects | ( | self, | |
obj | |||
) |
Add a list of template specs to the internal objects set if this is a template block. If not, propagate up the tree to find the parent template block.
Reimplemented in blockit::Fortran::blocks::Template.
def blockit::Fortran::blocks::FortranBlock::contains | ( | self, | |
sym, | |||
skipList = None |
|||
) |
Search to see if the block has a symbol.
Reimplemented from blockit::blocks::Block.
def blockit::Fortran::blocks::FortranBlock::findSymbol | ( | self, | |
sym | |||
) |
def blockit::Fortran::blocks::FortranBlock::getNameLength | ( | self | ) |
def blockit::Fortran::blocks::FortranBlock::getSig | ( | self, | |
name | |||
) |
def blockit::Fortran::blocks::FortranBlock::getState | ( | self | ) |
Return the internal _state variable.
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::Program.
def blockit::Fortran::blocks::FortranBlock::getSymMap | ( | self, | |
table | |||
) |
def blockit::Fortran::blocks::FortranBlock::intrinsicType | ( | s | ) |
def blockit::Fortran::blocks::FortranBlock::isTemplated | ( | self | ) |
Return true if the internal _template attribute is not None. If the block has a parent, then call the parent isTemplated() method. A block is templated if it exists within a template block
Reimplemented in blockit::Fortran::blocks::Template, and blockit::Fortran::blocks::Template.
def blockit::Fortran::blocks::FortranBlock::mangle | ( | name, | |
width = 31 , |
|||
tempTokens = TEMPLATE_TOKENS |
|||
) |
def blockit::Fortran::blocks::FortranBlock::name | ( | self, | |
tempTokens = TEMPLATE_TOKENS |
|||
) |
def blockit::Fortran::blocks::FortranBlock::resolveInternal | ( | self | ) |
def blockit::Fortran::blocks::FortranBlock::resolveSymbol | ( | self, | |
sym, | |||
mangle = True |
|||
) |
Resolve a templated symbol name. This should only be used after the globalSymbolMap has been generated. Otherwise, it will be expensive if called many times with symbols that have wildcards (*) or missing template parameters. If the symbol is not already in the globalSymbolMap, then add it after resolving the symbol, i.e. cache it for future use.
def blockit::Fortran::blocks::FortranBlock::rootNotAFile | ( | self | ) |
def blockit::Fortran::blocks::FortranBlock::sentinel | ( | self, | |
line | |||
) |
Overrided sentinel method. Calls super first. If true, then looks for AutoDelete/Specialization blocks in scope and merges symbols and types found in these blocks with its own symbols and types.
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::Template, blockit::Fortran::blocks::Specialization, blockit::Fortran::blocks::Prepod, and blockit::Fortran::blocks::PyF95Directives.
def blockit::Fortran::blocks::FortranBlock::serialize | ( | self, | |
_dd = None |
|||
) |
Builds a dictionary tree of the block.
Reimplemented from blockit::blocks::Block.
def blockit::Fortran::blocks::FortranBlock::setNameLength | ( | self, | |
name_length | |||
) |
def blockit::Fortran::blocks::FortranBlock::setState | ( | self, | |
subs | |||
) |
Set the internal state variable _state. Can be used for anything.
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::Specialization.
def blockit::Fortran::blocks::FortranBlock::show | ( | self, | |
mangle = False |
|||
) |
Show a realization of a block based on its current state.
Reimplemented in blockit::Fortran::blocks::InterfaceA, blockit::Fortran::blocks::AutoInterface, blockit::Fortran::blocks::AutoPrivate, blockit::Fortran::blocks::AutoUse, blockit::Fortran::blocks::Enumeration, blockit::Fortran::blocks::Foreach, blockit::Fortran::blocks::TestRunner, blockit::Fortran::blocks::ParallelTestRunner, blockit::Fortran::blocks::AutoDelete, blockit::Fortran::blocks::GarbageCollect, blockit::Fortran::blocks::Specialization, blockit::Fortran::blocks::Instantiate, blockit::Fortran::blocks::Pod, and blockit::Fortran::blocks::PyF95Directives.
def blockit::Fortran::blocks::FortranBlock::symbolTuple | ( | self, | |
x | |||
) |
def blockit::Fortran::blocks::FortranBlock::template | ( | self | ) |
Return the _template attribute if this block has one. If it does not and has a parent, the call the parents template() method, thereby walking up the tree.
Reimplemented in blockit::Fortran::blocks::Template.
def blockit::Fortran::blocks::FortranBlock::useDeclarations | ( | self | ) |
def blockit::Fortran::blocks::FortranBlock::version | ( | self | ) |
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::AutoUse.
Reimplemented in blockit::Fortran::blocks::Template.
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::Specialization.
Reimplemented in blockit::Fortran::blocks::Template, and blockit::Fortran::blocks::Subroutine.
string blockit::Fortran::blocks::FortranBlock::BLOCKTYPE = 'FortranBlock' [static] |
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::AFile, blockit::Fortran::blocks::EmptyFile, blockit::Fortran::blocks::Template, blockit::Fortran::blocks::Program, blockit::Fortran::blocks::Module, blockit::Fortran::blocks::Function, blockit::Fortran::blocks::Subroutine, blockit::Fortran::blocks::Interface, blockit::Fortran::blocks::InterfaceA, blockit::Fortran::blocks::Type, blockit::Fortran::blocks::AutoInterface, blockit::Fortran::blocks::AutoPrivate, blockit::Fortran::blocks::AutoUse, blockit::Fortran::blocks::Enumeration, blockit::Fortran::blocks::Foreach, blockit::Fortran::blocks::TestRunner, blockit::Fortran::blocks::ParallelTestRunner, blockit::Fortran::blocks::AutoDelete, blockit::Fortran::blocks::GarbageCollect, blockit::Fortran::blocks::Specialization, blockit::Fortran::blocks::Instantiate, blockit::Fortran::blocks::Pod, blockit::Fortran::blocks::Prepod, and blockit::Fortran::blocks::PyF95Directives.
Reimplemented in blockit::Fortran::blocks::PyF95Directives.
list blockit::Fortran::blocks::FortranBlock::intrinsicList [static] |
blockit::Fortran::blocks::FortranBlock::SENTINEL = None [static] |
Reimplemented from blockit::blocks::Block.
Reimplemented in blockit::Fortran::blocks::AFile, blockit::Fortran::blocks::EmptyFile, blockit::Fortran::blocks::Template, blockit::Fortran::blocks::Interface, blockit::Fortran::blocks::InterfaceA, blockit::Fortran::blocks::AutoInterface, blockit::Fortran::blocks::AutoPrivate, blockit::Fortran::blocks::AutoUse, blockit::Fortran::blocks::Enumeration, blockit::Fortran::blocks::Foreach, blockit::Fortran::blocks::TestRunner, blockit::Fortran::blocks::ParallelTestRunner, blockit::Fortran::blocks::AutoDelete, blockit::Fortran::blocks::GarbageCollect, blockit::Fortran::blocks::Specialization, blockit::Fortran::blocks::Instantiate, and blockit::Fortran::blocks::PyF95Directives.
string blockit::Fortran::blocks::FortranBlock::VERSION = '1.3.1' [static] |
blockit::Fortran::blocks::FortranBlock::symbols = property( **__propSymbols() ) [static] |
blockit::Fortran::blocks::FortranBlock::types = property( **__propTypes() ) [static] |