fgen.wrapping_strategies.derived_type#

Wrapping strategy for derived types

These are tricky because f2py doesn’t support derived types. As a result, we pass pointers to the derived type instances across the Python-Fortran boundary. This requires careful, custom handling on both sides.

WrappingStrategyDerivedType#

class WrappingStrategyDerivedType(no_setters_class_suffix='NoSetters', instance_index_suffix='_instance_index')[source]#

Bases: object

Wrapping strategy for derived types

instance_index_suffix: str#

Suffix to add to a variable name when using its instance index

Often, this is needed to distinguish from using the variable itself.

no_setters_class_suffix: str#

Suffix to add to the standard class when returning the no setters version