fgen.wrapping_strategies#
Wrapping strategies
Different Fortran types need different strategies for wrapping. We capture these here.
Wrapping strategy for arrays of a deferred size |
|
Wrapping strategy for characters (strings in Python world) |
|
Wrapping strategy for characters with a deferred size (i.e. |
|
Wrapping strategy for everything that isn't covered elsewhere, i.e. the default. |
|
Wrapping strategy for derived types |
|
Wrapping strategy for enum types |
|
Information injection functions |
|
Interface definition for wrapping strategies |
|
Wrapping strategy for logicals (booleans in Python world) |
|
Data model for how we pass data from Python to Fortran |
|
Data model for how we receive data from Python in Fortran |
|
Helpers for type annotations |
get_wrapping_strategy#
- get_wrapping_strategy(fortran_data_type)[source]#
Get wrapping strategy for a given
FortranDataType
- Parameters:
fortran_data_type (
fgen.fortran_parsing.FortranDataType
) –FortranDataType
for which to get the wrapping strategy- Returns:
fgen.wrapping_strategies.interface.WrappingStrategyLike
– Wrapping strategy object