Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, parent, clause) |
def | add (self, content, position=None) |
Public Member Functions inherited from psyclone.f2pygen.BaseGen | |
def | parent (self) |
def | children (self) |
def | root (self) |
def | previous_loop (self) |
def | last_declaration (self) |
def | start_parent_loop (self, debug=False) |
Generate a fortran if, then, end if statement.
Definition at line 1402 of file f2pygen.py.
def psyclone.f2pygen.IfThenGen.__init__ | ( | self, | |
parent, | |||
clause | |||
) |
:param parent: Node to which to add this IfThen as a child :type parent: :py:class:`psyclone.f2pygen.BaseGen` :param str clause: the condition, xx, to evaluate in the if(xx)then
Reimplemented from psyclone.f2pygen.BaseGen.
Definition at line 1405 of file f2pygen.py.
def psyclone.f2pygen.IfThenGen.add | ( | self, | |
new_object, | |||
position = None |
|||
) |
Adds a new object to the tree. The actual position is determined by the position argument. Note, there are two trees, the first is the f2pygen object tree, the other is the f2py generated code tree. These are similar but different. At the moment we specify where to add things in terms of the f2pygen tree (which is a higher level api) but we also insert into the f2py tree at exactly the same location which needs to be sorted out at some point.
Reimplemented from psyclone.f2pygen.BaseGen.
Definition at line 1423 of file f2pygen.py.
References psyclone.f2pygen.BaseGen.parent(), psyclone.psyir.nodes.node.Node.parent(), psyclone.f2pygen.BaseGen.root(), psyclone.f2pygen.BaseDeclGen.root(), and psyclone.psyir.nodes.node.Node.root().