OEGetMolDBIdx

unsigned int OEGetMolDBIdx(const OESystem::OEBase &mol)

Returns the index used to retrieve the molecule from a OEMolDatabase. Returns (unsigned int)-1 if mol did not actually originate from a OEMolDatabase.