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

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

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

Public Member Functions

None __init__ (HashCodeCalculator calc, int flags=159)
 Initializes the DefAtomHashSeedFunctor instance. More...
 
int __call__ (Atom atom)
 Generates an initial hash code value (seed) for the specified atom. More...
 

Detailed Description

The default functor for the generation of atom hash seeds.

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Chem.HashCodeCalculator.DefAtomHashSeedFunctor.__init__ ( HashCodeCalculator  calc,
int   flags = 159 
)

Initializes the DefAtomHashSeedFunctor instance.

Parameters
calc
flags

Member Function Documentation

◆ __call__()

int CDPL.Chem.HashCodeCalculator.DefAtomHashSeedFunctor.__call__ ( Atom  atom)

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

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

Parameters
atomThe atom for which to generate the initial hash code.
Returns
The generated atom hash seed.