fgen.data_models.method#
Data model of a method
Method#
- class Method(name, description, parameters, returns)[source]#
Bases:
objectData model of a Fortran method
This method is assumed to be part of a
FortranDerivedType.This function can have multiple
parametersand a single, optionalreturnsvalue.-
parameters:
dict[str,fgen.data_models.value.Value]# Collection of named parameters of the function
Currently, only
ValueDefinitionis 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: