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

The default functor for the generation of bond hash seeds. More...

+ Inheritance diagram for CDPL.Chem.HashCodeCalculator.DefBondHashSeedFunctor:

Public Member Functions

None __init__ (int flags=15)
 Constructs the bond hash seed functor object for the specified set of bond properties. More...
 
int __call__ (Bond bond)
 Generates an initial hash code value (seed) for the specified bond. More...
 

Detailed Description

The default functor for the generation of bond hash seeds.

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Chem.HashCodeCalculator.DefBondHashSeedFunctor.__init__ ( int   flags = 15)

Constructs the bond hash seed functor object for the specified set of bond properties.

The flags argument is an OR combination of the constants defined in namespace Chem.BondPropertyFlag. Supported property flags are:

Parameters
flagsSpecifies the set of considered bond properties.

Member Function Documentation

◆ __call__()

int CDPL.Chem.HashCodeCalculator.DefBondHashSeedFunctor.__call__ ( Bond  bond)

Generates an initial hash code value (seed) for the specified bond.

The generated hash seed depends on the set of considered bond properties that has been specified in the constructor.

Parameters
bondThe bond for which to generate the initial hash code.
Returns
The generated bond hash seed.