![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Generic wrapper for storing user-defined callback functions returning a bool status flag (see [FUNWRP]).
More...
Inheritance diagram for CDPL.ConfGen.CallbackFunction:Public Member Functions | |
| None | __init__ () |
Contructs the CallbackFunction instance. | |
| None | __init__ (CallbackFunction func) |
Contructs a copy of the CallbackFunction instance func. More... | |
| None | __init__ (object callable) |
Contructs the CallbackFunction instance for the specified callable object. More... | |
| bool | __call__ () |
| Invokes the wrapped callable object. More... | |
| bool | __bool__ () |
| Tells whether the instance holds a callable object. More... | |
| bool | __nonzero__ () |
| Tells whether the instance holds a callable object. More... | |
Generic wrapper for storing user-defined callback functions returning a bool status flag (see [FUNWRP]).
Used by the conformer generation pipeline (Chem.ConformerGenerator, Chem.TorsionDriver, etc.) for the periodic abort and timeout-check callbacks: returning False signals the pipeline to abort.
| None CDPL.ConfGen.CallbackFunction.__init__ | ( | CallbackFunction | func | ) |
Contructs a copy of the CallbackFunction instance func.
| func | The CallbackFunction instance to copy. |
| None CDPL.ConfGen.CallbackFunction.__init__ | ( | object | callable | ) |
Contructs the CallbackFunction instance for the specified callable object.
| callable | The callable object to wrap. |
| bool CDPL.ConfGen.CallbackFunction.__call__ | ( | ) |
Invokes the wrapped callable object.
| bool CDPL.ConfGen.CallbackFunction.__bool__ | ( | ) |
Tells whether the instance holds a callable object.
True if the instance holds a callable object, and False otherwise. | bool CDPL.ConfGen.CallbackFunction.__nonzero__ | ( | ) |
Tells whether the instance holds a callable object.
True if the instance holds a callable object, and False otherwise.