Chemical Data Processing Library Python API - Version 1.1.1
Public Member Functions | List of all members
CDPL.Util.PropertyValueProduct Class Reference

A binary functor that calculates the product of two property values retrieved from a pair of Base.PropertyContainer instances passed as argument. More...

+ Inheritance diagram for CDPL.Util.PropertyValueProduct:

Public Member Functions

None __init__ (PropertyKey key)
 Constructs a PropertyValueProduct instance for the property specified by key. More...
 
object __call__ (Base.PropertyContainer cntnr1, Base.PropertyContainer cntnr2)
 Calculates the product of the property values stored in the Base.PropertyContainer instances cntnr1 and cntnr2. More...
 

Detailed Description

A binary functor that calculates the product of two property values retrieved from a pair of Base.PropertyContainer instances passed as argument.

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Util.PropertyValueProduct.__init__ ( PropertyKey  key)

Constructs a PropertyValueProduct instance for the property specified by key.

Parameters
keyThe key of the property.

Member Function Documentation

◆ __call__()

object CDPL.Util.PropertyValueProduct.__call__ ( Base.PropertyContainer  cntnr1,
Base.PropertyContainer  cntnr2 
)

Calculates the product of the property values stored in the Base.PropertyContainer instances cntnr1 and cntnr2.

Parameters
cntnr1The Base.PropertyContainer instance storing the first property value.
cntnr2The Base.PropertyContainer instance storing the second property value.
Returns
The product of the property values.