apoCHARMM 1.0.0
High-performance molecular dynamics simulations on GPUs
 
Loading...
Searching...
No Matches
apocharmm.error._StatusFunction Class Reference

Describes a mutable ctypes status-returning function object. More...

Inherits Protocol.

Static Public Attributes

Sequence argtypes [object] | None
 Holds the declared ctypes argument conversions.
 
object restype
 Holds the declared ctypes return conversion.
 
Callable errcheck [[int, "_StatusFunction", tuple[object, ...]], int] | None
 Holds the callback that validates each converted return value.
 

Detailed Description

Describes a mutable ctypes status-returning function object.

configure_status_function() uses this structural protocol to assign the function's argument types, integer return type, and error callback without depending on a concrete private ctypes function class.