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

An unary functor that retrieves the value of a given property from the Base.PropertyContainer instance provided as argument. More...

+ Inheritance diagram for CDPL.Util.PropertyValue:

Public Member Functions

None __init__ (PropertyKey key)
 Constructs a PropertyValue instance for the property specified by key. More...
 
object __call__ (Base.PropertyContainer cntnr)
 Retrievs the value of the property specified in the constructor from the Base.PropertyContainer instance cntnr. More...
 

Detailed Description

An unary functor that retrieves the value of a given property from the Base.PropertyContainer instance provided as argument.

Constructor & Destructor Documentation

◆ __init__()

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

Constructs a PropertyValue instance for the property specified by key.

Parameters
keyThe key of the property.

Member Function Documentation

◆ __call__()

object CDPL.Util.PropertyValue.__call__ ( Base.PropertyContainer  cntnr)

Retrievs the value of the property specified in the constructor from the Base.PropertyContainer instance cntnr.

Parameters
cntnrThe Base.PropertyContainer instance storing the property value.
Returns
The value of the property.