Reference Guide  2.5.0
psyclone.f2pygen.DirectiveGen Class Reference
Inheritance diagram for psyclone.f2pygen.DirectiveGen:
Collaboration diagram for psyclone.f2pygen.DirectiveGen:

Public Member Functions

def __init__ (self, parent, language, position, directive_type, content="")
 
- Public Member Functions inherited from psyclone.f2pygen.BaseGen
def __init__ (self, parent, root)
 
def parent (self)
 
def children (self)
 
def root (self)
 
def add (self, new_object, position=None)
 
def previous_loop (self)
 
def last_declaration (self)
 
def start_parent_loop (self, debug=False)
 

Detailed Description

Class for creating a Fortran directive, e.g. OpenMP or OpenACC.

:param parent: node in AST to which to add directive as a child.
:type parent: :py:class:`psyclone.f2pygen.BaseGen`
:param str language: the type of directive (e.g. OMP or ACC).
:param str position: "end" if this is the end of a directive block.
:param str directive_type: the directive itself (e.g. "PARALLEL DO").
:param str content: any additional arguments to add to the directive \
                    (e.g. "PRIVATE(ji)").

:raises RuntimeError: if an unrecognised directive language is specified.

Definition at line 637 of file f2pygen.py.


The documentation for this class was generated from the following file: