bool OESuppressHydrogens(OEMolBase &mol, bool retainPolar=false, bool retainStereo=false, bool retainIsotope=true) bool OESuppressHydrogens(OEAtomBase *atom, bool retainPolar=false, bool retainStereo=false, bool retainIsotope=true)
Transforms the explicit hydrogens in a molecule into implicit hydrogens on their parent heavy atom. The overloaded function provides the same capability at a specific heavy atom.
Any explicit hydrogen atoms, those with atomic number OEElemNo::H, are deleted and any information associated with them, coordinates, isotopes, generic data etc... are lost. In their place, the implicit hydrogen count field of the heavy atom to which they are bonded is appropriately incremented.
The functions return the value true if any hydrogens were deleted, and return false if the molecule was left unchanged.