.. oe:namespace:: OEChem

.. meta::
   :keywords: OEIsDisulfideBridgeBond, IsDisulfide


.. _OEChem_OEIsDisulfideBridgeBond:

.. oe:class:: OEIsDisulfideBridgeBond

   .. oe:api::

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

   This class represents the :ref:`OEIsDisulfideBridgeBond <OEChem_OEIsDisulfideBridgeBond>` functor
   that identifies the disulfide 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::

            OEIsDisulfideBridgeBond()

      .. oe:language:: python

         .. oe:api:: python

            OEIsDisulfideBridgeBond() -> OEIsDisulfideBridgeBond

      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 disulfide; 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() -> OEIsDisulfideBridgeBond

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :ref:`OEIsDisulfideBridgeBond <OEChem_OEIsDisulfideBridgeBond>`
      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.
