Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | List of all members
CDPL.ConfGen.LogMessageCallbackFunction Class Reference

Generic wrapper for storing user-defined log message callback functions (see [FUNWRP]). More...

+ Inheritance diagram for CDPL.ConfGen.LogMessageCallbackFunction:

Public Member Functions

None __init__ ()
 Contructs the LogMessageCallbackFunction instance.
 
None __init__ (LogMessageCallbackFunction func)
 Contructs a copy of the LogMessageCallbackFunction instance func. More...
 
None __init__ (object callable)
 Contructs the LogMessageCallbackFunction instance for the specified callable object. More...
 
None __call__ (str arg1)
 Invokes the wrapped callable object with the given argument. More...
 
bool __bool__ ()
 Tells whether the instance holds a callable object. More...
 
bool __nonzero__ ()
 Tells whether the instance holds a callable object. More...
 

Detailed Description

Generic wrapper for storing user-defined log message callback functions (see [FUNWRP]).

Used by the conformer generation pipeline (Chem.ConformerGenerator, Chem.FragmentConformerGenerator, Chem.FragmentLibraryGenerator) to forward textual log messages to the caller.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.ConfGen.LogMessageCallbackFunction.__init__ ( LogMessageCallbackFunction  func)

Contructs a copy of the LogMessageCallbackFunction instance func.

Parameters
funcThe LogMessageCallbackFunction instance to copy.

◆ __init__() [2/2]

None CDPL.ConfGen.LogMessageCallbackFunction.__init__ ( object  callable)

Contructs the LogMessageCallbackFunction instance for the specified callable object.

Parameters
callableThe callable object to wrap.

Member Function Documentation

◆ __call__()

None CDPL.ConfGen.LogMessageCallbackFunction.__call__ ( str  arg1)

Invokes the wrapped callable object with the given argument.

Parameters
arg1The argument to forward.
Returns
The obtained return value.

◆ __bool__()

bool CDPL.ConfGen.LogMessageCallbackFunction.__bool__ ( )

Tells whether the instance holds a callable object.

Returns
True if the instance holds a callable object, and False otherwise.

◆ __nonzero__()

bool CDPL.ConfGen.LogMessageCallbackFunction.__nonzero__ ( )

Tells whether the instance holds a callable object.

Returns
True if the instance holds a callable object, and False otherwise.