fgen.data_models.method#
Data model of a method
Method#
- class Method(name, description, parameters, returns)[source]#
Bases:
object
Data model of a Fortran method
This method is assumed to be part of a
FortranDerivedType
.This function can have multiple
parameters
and a single, optionalreturns
value.-
parameters:
dict
[str
,fgen.data_models.value.Value
]# Collection of named parameters of the function
Currently, only
ValueDefinition
is supported because we assume that each parameter only refers to one value. If you think this assumption should be relaxed, please raise an issue illustrating your use case.
-
returns:
typing.Union
[fgen.data_models.value.Value
,fgen.data_models.multi_return.MultiReturn
]# Return value of the function
-
parameters: