4.70 OEGetResidueIndex

unsigned int OEGetResidueIndex(const OEResidue &res)
unsigned int OEGetResidueIndex(const OEAtomBase *atm)

The OEGetResidueIndex function returns the OEChem PDB residue name index for the given OEResidue or OEAtomBase. The resulting value is specified by the OEResidueIndex namespace. If the residue name is not recognized internally by OEChem this function returns the value zero. For OEAtomBase arguments, this function simply use the OEResidue returned by the OEAtomGetResidue function.