OESameResidue

bool OESameResidue(const OEAtomBase &atom1, const OEResidue &atom2)
bool OESameResidue(const OEResidue &res1, const OEResidue &res2)

Determines whether atoms or their respective OEResidue s represent the same residue. This returns true when both residues are in the same chain (see OESameChain, have the same residue number, OEResidue.GetResidueNumber, the same sequence insertion code, OEResidue.GetInsertCode, and the same name, OEResidue.GetName.