BlockIt
|
def blockit::blocks::Block::__init__ | ( | self, | |
blockType, | |||
name, | |||
parent = None , |
|||
childToken = None |
|||
) |
def blockit::blocks::Block::__getstate__ | ( | self, | |
_dd = None |
|||
) |
Builds a dictionary tree of the block for pickling.
Reimplemented in blockit::Fortran::blocks::FortranBlock.
def blockit::blocks::Block::__setstate__ | ( | self, | |
tree | |||
) |
Unpack the dictionary tree.
Reimplemented in blockit::Fortran::blocks::FortranBlock.
def blockit::blocks::Block::addChild | ( | self, | |
blk, | |||
token = None , |
|||
before = False , |
|||
regen = True |
|||
) |
Add a block as a child of this block. If a token string is given, then add this child as a token before/after this string in the code, else, just append it to the code at the end. Inputs ------ blk : child block to add token : token string to use for adding line after/before before : boolean. If true, add child line before given token; else after.
Reimplemented in blockit::Fortran::blocks::FortranBlock.
def blockit::blocks::Block::addChildDeps | ( | self, | |
sym, | |||
propagate = True , |
|||
skipList = None |
|||
) |
def blockit::blocks::Block::addDeps | ( | self, | |
sym, | |||
propagate = True |
|||
) |
Add an internal dependency and propagate up the tree. Do not add dependencies that are resolved by any of your children. This is checked by consulting the child nodes to see if they contain the dependency. Call the addChildDeps() on the parent. The dependency is given as a symbol name, not a set.
def blockit::blocks::Block::addLine | ( | self, | |
line, | |||
n = None |
|||
) |
Rudimentary method to add a line to the code listing of the block.
Reimplemented in blockit::Fortran::blocks::FortranBlock, blockit::Fortran::blocks::Function, blockit::Fortran::blocks::Subroutine, blockit::Fortran::blocks::Interface, and blockit::Fortran::blocks::Specialization.
def blockit::blocks::Block::baseName | ( | self | ) |
def blockit::blocks::Block::childString | ( | name | ) |
def blockit::blocks::Block::clearChildDependencies | ( | self | ) |
def blockit::blocks::Block::code | ( | self, | |
lineNumbers = False |
|||
) |
def blockit::blocks::Block::contains | ( | self, | |
sym, | |||
skipList = None |
|||
) |
Search to see if block has symbol.
Reimplemented in blockit::Fortran::blocks::FortranBlock.
def blockit::blocks::Block::findAll | ( | self, | |
blks, | |||
depth = -1 |
|||
) |
def blockit::blocks::Block::getState | ( | self | ) |
Reimplemented in blockit::Fortran::blocks::FortranBlock, and blockit::Fortran::blocks::Program.
def blockit::blocks::Block::getTimeStamp | ( | self | ) |
def blockit::blocks::Block::hash | ( | self | ) |
Return a hashed value of this block if it does not already have a _hash internal value. Uses the mangled version for the hash.
Reimplemented in blockit::Fortran::blocks::Template.
def blockit::blocks::Block::ignoreDependencies | ( | self, | |
depList | |||
) |
def blockit::blocks::Block::lineArtGraph | ( | self, | |
tree = None |
|||
) |
def blockit::blocks::Block::mergeChildren | ( | self, | |
tbl | |||
) |
def blockit::blocks::Block::name | ( | self | ) |
Return the name of the block.
Reimplemented in blockit::Fortran::blocks::Template, blockit::Fortran::blocks::Function, blockit::Fortran::blocks::Subroutine, blockit::Fortran::blocks::Interface, blockit::Fortran::blocks::InterfaceA, blockit::Fortran::blocks::Pod, and blockit::Fortran::blocks::Prepod.
def blockit::blocks::Block::popChild | ( | self, | |
name, | |||
regen = True |
|||
) |
def blockit::blocks::Block::regenChildDeps | ( | self | ) |
def blockit::blocks::Block::removeDependencies | ( | self, | |
depList | |||
) |
def blockit::blocks::Block::renameDependencies | ( | self, | |
nameMap | |||
) |
def blockit::blocks::Block::root | ( | self | ) |
def blockit::blocks::Block::sentinel | ( | self, | |
line | |||
) |
def blockit::blocks::Block::serialize | ( | self, | |
_dd = None |
|||
) |
Builds a dictionary tree of the block.
Reimplemented in blockit::Fortran::blocks::FortranBlock.
def blockit::blocks::Block::setParent | ( | self, | |
blk, | |||
regen = True |
|||
) |
def blockit::blocks::Block::setState | ( | self, | |
subs | |||
) |
Reimplemented in blockit::Fortran::blocks::FortranBlock, and blockit::Fortran::blocks::Specialization.
def blockit::blocks::Block::shareDeps | ( | self, | |
propagate = True |
|||
) |
def blockit::blocks::Block::show | ( | self | ) |
def blockit::blocks::Block::toFile | ( | self, | |
name | |||
) |
def blockit::blocks::Block::upTo | ( | self, | |
blkType | |||
) |
blockit::blocks::Block::_blockType [private] |
blockit::blocks::Block::_childDeps [private] |
blockit::blocks::Block::_children [private] |
Reimplemented in blockit::Fortran::blocks::FortranBlock.
blockit::blocks::Block::_childToken [private] |
blockit::blocks::Block::_code [private] |
Reimplemented in blockit::Fortran::blocks::Specialization, and blockit::Fortran::blocks::Prepod.
blockit::blocks::Block::_depIgnore [private] |
blockit::blocks::Block::_depList [private] |
blockit::blocks::Block::_fromCache [private] |
blockit::blocks::Block::_hash [private] |
Reimplemented in blockit::Fortran::blocks::AFile, and blockit::Fortran::blocks::Template.
blockit::blocks::Block::_name [private] |
Reimplemented in blockit::Fortran::blocks::Interface, blockit::Fortran::blocks::InterfaceA, blockit::Fortran::blocks::AutoInterface, blockit::Fortran::blocks::AutoPrivate, blockit::Fortran::blocks::AutoUse, blockit::Fortran::blocks::Specialization, blockit::Fortran::blocks::Instantiate, blockit::Fortran::blocks::Pod, blockit::Fortran::blocks::Prepod, and blockit::Fortran::blocks::PyF95Directives.
blockit::blocks::Block::_ownDeps [private] |
blockit::blocks::Block::_parent [private] |
blockit::blocks::Block::_state [private] |
Reimplemented in blockit::Fortran::blocks::FortranBlock, and blockit::Fortran::blocks::Specialization.
blockit::blocks::Block::_timeStamp [private] |
string blockit::blocks::Block::BLOCKTYPE = 'Block' [static] |
Reimplemented in blockit::Fortran::blocks::FortranBlock, 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.
blockit::blocks::Block::CHILDTOKEN = None [static] |
blockit::blocks::Block::GRAMMAR = None [static] |
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.
blockit::blocks::Block::SENTINEL = None [static] |
Reimplemented in blockit::Fortran::blocks::FortranBlock, 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.
blockit::blocks::Block::fromCache = property(getFromCache, setFromCache) [static] |