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

A wrapper class for various types of callable objects. More...

+ Inheritance diagram for CDPL.Pharm.BoolFeature4Functor:

Public Member Functions

None __init__ ()
 Contructs the BoolFeature4Functor instance.
 
None __init__ (BoolFeature4Functor func)
 Contructs a copy of the BoolFeature4Functor instance func. More...
 
None __init__ (object callable)
 Contructs the BoolFeature4Functor instance for the specified callable object. More...
 
bool __call__ (Feature arg1, Feature arg2, Feature arg3, Feature arg4)
 Invokes the wrapped callable object with the given arguments. 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

A wrapper class for various types of callable objects.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.Pharm.BoolFeature4Functor.__init__ ( BoolFeature4Functor  func)

Contructs a copy of the BoolFeature4Functor instance func.

Parameters
funcThe BoolFeature4Functor instance to copy.

◆ __init__() [2/2]

None CDPL.Pharm.BoolFeature4Functor.__init__ ( object  callable)

Contructs the BoolFeature4Functor instance for the specified callable object.

Parameters
callableThe callable object to wrap.

Member Function Documentation

◆ __call__()

bool CDPL.Pharm.BoolFeature4Functor.__call__ ( Feature  arg1,
Feature  arg2,
Feature  arg3,
Feature  arg4 
)

Invokes the wrapped callable object with the given arguments.

Parameters
arg1The first argument to forward.
arg2The second argument to forward.
arg3The third argument to forward.
arg4The fourth argument to forward.
Returns
The obtained return value.

◆ __bool__()

bool CDPL.Pharm.BoolFeature4Functor.__bool__ ( )

Tells whether the instance holds a callable object.

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

◆ __nonzero__()

bool CDPL.Pharm.BoolFeature4Functor.__nonzero__ ( )

Tells whether the instance holds a callable object.

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