Provides properties and instance methods for the creation, modification, execution and deletion of a workflow. This object is used to execute the various steps involved when benchmarking.
type, public :: workflow
The following example demonstrates some of the main members of the workflow class.
The steps are first loaded into the workflow using the method add .
It is then executed in the order the steps were added by invoking the function run . The function run returns a pointer to the next available step, i.e. the position of the next step in the entire workflow.
Use the workflow class for situation where one has a clear series of steps to be performed sequentially
Initializes a new instance of the workflow class
type(workflow) function workflow(procedure(work) a)
[in] | a | The action to be performed |
Examples
Remarks
Definition at line 59 of file Workflow.f90.
Variables | |
character(:), allocatable, public | header |
Header is the first node of the linked list of actions. | |
class(workflow), pointer, public | next => null() |
Next action in the linked list. | |
Static Public Attributes | |
procedure(work), pointer, nopass, public | action => null() |
Action to be performed. | |
generic, public add | ( | class(workflow), intent(inout), target | this, |
procedure(work) | a ) |
Add a step to an existing workflow, described by an action object. The action is a s procedure implementing the work interface.
[in,out] | this | The type bound to the method |
[in] | a | The action to be added |
Remarks
Definition at line 53 of file Workflow.f90.
Add a step to an existing workflow, described by a workflow object.
[in,out] | this | The type bound to the method |
[in] | w | The workflow to be added |
Remarks
Definition at line 53 of file Workflow.f90.
procedure, pass, public dispose | ( | class(workflow), intent(inout) | this | ) |
Dispose resources associated with the bound type.
[in,out] | this | The type bound to the method |
Remarks
Definition at line 55 of file Workflow.f90.
procedure, pass, public run | ( | class(workflow), intent(inout), target | this | ) |
Add a step to an existing workflow, described by an action object. The action is a s procedure implementing the work interface.
[in,out] | this | The type bound to the method |
Remarks
Definition at line 54 of file Workflow.f90.
|
final |
Definition at line 56 of file Workflow.f90.