.. # split from OEBioFunctions.rst:288

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEGetResidues

.. oe:function:: OEGetResidues

   .. oe:language:: c++ java csharp

      .. oe:api::

         OESystem::OEIterBase<OEChem::OEResidue>* OEGetResidues(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEGetResidues(mol: Union[OEGraphMol,OEMol,OEQMol]) -> OEResidueIter

   Returns an iterator containing all the unique :ref:`OEResidue <OEChem_OEResidue>`
   objects in the :ref:`OEMolBase <OEChem_OEMolBase>` provided. Regardless of the
   number of atoms in a peptide amino-acid, nucleic acid base, or ligand,
   only one :ref:`OEResidue <OEChem_OEResidue>` will be returned for each.

   .. seealso::

      * :ref:`section_biopolymer_residues` section

