|
PyForTool
Python-fortran-tool
|
Public Member Functions | |
| __init__ (self, tree=None, descTreeFile=None, parserOptions=None, wrapH=False, verbosity=None) | |
| getFullContent (self) | |
| setFullContent (self, content) | |
| copyFromOtherTree (self, other) | |
| copyToOtherTree (self, other) | |
| signal (self, file) | |
| popSignaled (self) | |
| knownFiles (self) | |
| isValid (self) | |
| tree (self) | |
| getDirs (self) | |
| getFiles (self) | |
| update (self, file) | |
| fromJson (self, filename) | |
| toJson (self, filename) | |
| scopeToFiles (self, scopePath) | |
| fileToScopes (self, filename) | |
| needsFile (self, filename, level=1) | |
| neededByFile (self, filename, level=1) | |
| callsScopes (self, scopePath, level=1) | |
| calledByScope (self, scopePath, level=1) | |
| isUnderStopScopes (self, scopePath, stopScopes, includeInterfaces=False, includeStopScopes=False) | |
| plotTree (self, centralNodeList, output, plotMaxUpper, plotMaxLower, kind, frame=False) | |
| plotCompilTreeFromFile (self, filename, output, plotMaxUpper, plotMaxLower) | |
| plotExecTreeFromScope (self, scopePath, output, plotMaxUpper, plotMaxLower) | |
| plotCompilTreeFromScope (self, scopePath, output, plotMaxUpper, plotMaxLower) | |
| plotExecTreeFromFile (self, filename, output, plotMaxUpper, plotMaxLower) | |
| findScopeInterface (self, scopePath) | |
Protected Member Functions | |
| _build (self) | |
| _emptyCache (self) | |
| _incInScope (self) | |
| _compilationTree (self) | |
| _executionTree (self) | |
| _analyseFile (self, file) | |
Static Protected Member Functions | |
| _recurList (node, descTreePart, level, down) | |
| pyfortool.tree.Tree.__init__ | ( | self, | |
tree = None, |
|||
descTreeFile = None, |
|||
parserOptions = None, |
|||
wrapH = False, |
|||
verbosity = None |
|||
| ) |
:param tree: list of directories composing the tree or None :param descTreeFile: filename where the description of the tree will be stored :param parserOptions, wrapH: see the PYFT class :param verbosity: if not None, sets the verbosity level
Definition at line 52 of file tree.py.

|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
:param node: initial node :param descTreePart: 'compilation_tree' or 'execution_tree' part of a descTree object :param level: number of levels (0 to get only the initial node, None to get all nodes) :param down: True to get the nodes lower in the tree, False to get the upper ones :return: list of nodes lower or upper tahn initial node (recursively)
Definition at line 577 of file tree.py.

| pyfortool.tree.Tree.calledByScope | ( | self, | |
| scopePath, | |||
level = 1 |
|||
| ) |
:param scopePath: initial scope path
:param level: number of levels (0 to get only the initial scope path,
None to get all scopes)
:return: list of scopes that calls the initial scope path (recursively)
Definition at line 626 of file tree.py.


| pyfortool.tree.Tree.callsScopes | ( | self, | |
| scopePath, | |||
level = 1 |
|||
| ) |
| pyfortool.tree.Tree.copyFromOtherTree | ( | self, | |
| other | |||
| ) |
| pyfortool.tree.Tree.copyToOtherTree | ( | self, | |
| other | |||
| ) |
| pyfortool.tree.Tree.fileToScopes | ( | self, | |
| filename | |||
| ) |
| pyfortool.tree.Tree.findScopeInterface | ( | self, | |
| scopePath | |||
| ) |
| pyfortool.tree.Tree.fromJson | ( | self, | |
| filename | |||
| ) |
| pyfortool.tree.Tree.getDirs | ( | self | ) |
| pyfortool.tree.Tree.getFiles | ( | self | ) |
| pyfortool.tree.Tree.getFullContent | ( | self | ) |
| pyfortool.tree.Tree.isUnderStopScopes | ( | self, | |
| scopePath, | |||
| stopScopes, | |||
includeInterfaces = False, |
|||
includeStopScopes = False |
|||
| ) |
:param scopePath: scope path to test
:param stopScopes: list of scopes
:param includeInterfaces: if True, interfaces of positive scopes are also positive
:param includeInterfaces: if True, scopes that are in stopScopes return True
:return: True if the scope path is called directly or indirectly by one of the scope
paths listed in stopScopes
Definition at line 636 of file tree.py.


| pyfortool.tree.Tree.isValid | ( | self | ) |
| pyfortool.tree.Tree.knownFiles | ( | self | ) |
| pyfortool.tree.Tree.neededByFile | ( | self, | |
| filename, | |||
level = 1 |
|||
| ) |
| pyfortool.tree.Tree.needsFile | ( | self, | |
| filename, | |||
level = 1 |
|||
| ) |
| pyfortool.tree.Tree.plotCompilTreeFromFile | ( | self, | |
| filename, | |||
| output, | |||
| plotMaxUpper, | |||
| plotMaxLower | |||
| ) |
Compute the compilation dependency graph :param filename: central file :param output: output file name (.dot or .png extension) :param plotMaxUpper: Maximum number of elements to plot, upper than the central element :param plotMaxLower: Maximum number of elements to plot, lower than the central element
Definition at line 771 of file tree.py.

| pyfortool.tree.Tree.plotCompilTreeFromScope | ( | self, | |
| scopePath, | |||
| output, | |||
| plotMaxUpper, | |||
| plotMaxLower | |||
| ) |
Compute the compilation dependency graph :param scopePath: central scope path :param output: output file name (.dot or .png extension) :param plotMaxUpper: Maximum number of elements to plot, upper than the central element :param plotMaxLower: Maximum number of elements to plot, lower than the central element
Definition at line 793 of file tree.py.

| pyfortool.tree.Tree.plotExecTreeFromFile | ( | self, | |
| filename, | |||
| output, | |||
| plotMaxUpper, | |||
| plotMaxLower | |||
| ) |
Compute the execution dependency graph :param filename: central filename :param output: output file name (.dot or .png extension) :param plotMaxUpper: Maximum number of elements to plot, upper than the central element :param plotMaxLower: Maximum number of elements to plot, lower than the central element
Definition at line 805 of file tree.py.

| pyfortool.tree.Tree.plotExecTreeFromScope | ( | self, | |
| scopePath, | |||
| output, | |||
| plotMaxUpper, | |||
| plotMaxLower | |||
| ) |
Compute the execution dependency graph :param scopePath: central scope path :param output: output file name (.dot or .png extension) :param plotMaxUpper: Maximum number of elements to plot, upper than the central element :param plotMaxLower: Maximum number of elements to plot, lower than the central element
Definition at line 782 of file tree.py.

| pyfortool.tree.Tree.plotTree | ( | self, | |
| centralNodeList, | |||
| output, | |||
| plotMaxUpper, | |||
| plotMaxLower, | |||
| kind, | |||
frame = False |
|||
| ) |
Compute a dependency graph :param centralNodeList: file, scope path, list of files or list of scope paths :param output: output file name (.dot or .png extension) :param plotMaxUpper: Maximum number of elements to plot, upper than the central element :param plotMaxLower: Maximum number of elements to plot, lower than the central element :param kind: must be 'compilation_tree' or 'execution_tree' :param frame: True to plot a frame grouping the central nodes
Definition at line 662 of file tree.py.


| pyfortool.tree.Tree.popSignaled | ( | self | ) |
| pyfortool.tree.Tree.scopeToFiles | ( | self, | |
| scopePath | |||
| ) |
| pyfortool.tree.Tree.setFullContent | ( | self, | |
| content | |||
| ) |
| pyfortool.tree.Tree.signal | ( | self, | |
| file | |||
| ) |
| pyfortool.tree.Tree.toJson | ( | self, | |
| filename | |||
| ) |
| pyfortool.tree.Tree.tree | ( | self | ) |
| pyfortool.tree.Tree.update | ( | self, | |
| file | |||
| ) |