.. oe:namespace:: OEChem

.. meta::
   :keywords: OEIsAmideBond, IsAmide


.. _OEChem_OEIsAmideBond:

.. oe:class:: OEIsAmideBond

   .. oe:api::

      class OEIsAmideBond : public OESystem::OEUnaryPredicate<OEChem::OEBondBase>

   This class represents the :ref:`OEIsAmideBond <OEChem_OEIsAmideBond>` functor
   that identifies amide bonds.


   The following methods are publicly inherited from :ref:`OEUnaryPredicate <OESystem_OEUnaryPredicate>`:

   ============================================================================== ============================================================================== ===============================================================================
   :oe:meth:`operator()<OESystem::OEUnaryPredicate::operator()>`                  :oe:meth:`CreateCopy<OESystem::OEUnaryPredicate::CreateCopy>`                  :oe:meth:`CreatePredicateCopy<OESystem::OEUnaryPredicate::CreatePredicateCopy>`
   ============================================================================== ============================================================================== ===============================================================================

   The following methods are publicly inherited from :ref:`OEUnaryFunction <OESystem_OEUnaryFunction>`:

   ============================================================ ============================================================ ===========================================================
   :oe:meth:`operator()<OESystem::OEUnaryFunction::operator()>` :oe:meth:`CreateCopy<OESystem::OEUnaryFunction::CreateCopy>`
   ============================================================ ============================================================ ===========================================================

   .. oe:method:: Constructors

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

         .. oe:api::

            OEIsAmideBond(bool includeCappingGroups = true)

      .. oe:language:: python

         .. oe:api:: python

            OEIsAmideBond(includeCappingGroups: bool = True) -> OEIsAmideBond

      Default constructor.

   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEChem::OEBondBase& bond) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(bond: OEBondBase) -> bool

      Returns ``true`` if the ``bond`` is an interresidue amide bond; otherwise, it returns ``false``.

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OESystem::OEUnaryFunction<OEChem::OEBondBase , bool>* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEIsAmideBond

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :ref:`OEIsAmideBond <OEChem_OEIsAmideBond>`
      object is dynamically allocated and owned by the caller.

      .. oe:language:: c++

         The returned copy should be deallocated using a C++
         delete operator in order to prevent a memory leak.
