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