py21cmfast.wrapper.structs.StructWrapper¶
- class py21cmfast.wrapper.structs.StructWrapper(*args)¶
Perform custom initializion actions.
This instantiates the memory associated with the C struct, attached to this inst.
- __getstate__()¶
Return the current state of the class without pointers.
- expose_to_c(array, name)¶
Expose the memory of a particular Array to the backend C code.
- Parameters:
array (py21cmfast.wrapper.arrays.Array)
name (str)
- cstruct¶
- property fieldnames: list[str]¶
A list of names of fields of the underlying C struct.
- Return type:
list[str]
- property fields: dict[str, Any]¶
A list of fields of the underlying C struct (a list of tuples of “name, type”).
- Return type:
dict[str, Any]
- property pointer_fields: list[str]¶
A list of names of fields which have pointer type in the C struct.
- Return type:
list[str]
- property primitive_fields: list[str]¶
The list of names of fields which have primitive type in the C struct.
- Return type:
list[str]