3.12.3 operator()

bool operator()(OEMolBase &mol) const

This method applies the set of transformations stored in the OELibraryGen instance to the molecule passed as the only argument to the method. The passed molecule must be composed of one reactant molecule per reactant specified in the reaction with which the OELibraryGen instance was initialized. The passed molecule should be constructed by taking molecules retrieved using the GetReactants method and concatenating them together using either the OEAddMols function or the OEMolBase::operator+= method. Although this interface may be useful, it is not intended to be the primary interface for molecule construction using the OELibraryGen method. The GetProducts method provides a more natural means for iterating or randomly accessing product molecules.