.. oe:namespace:: OEBio


.. _OEBio_OEIsIntermolecularHBondInteractionHint:

.. oe:class:: OEIsIntermolecularHBondInteractionHint

   .. oe:api::

      class OEIsIntermolecularHBondInteractionHint : public OESystem::OEUnaryPredicate<OEInteractionHint>

   This class represents :ref:`OEIsIntermolecularHBondInteractionHint <OEBio_OEIsIntermolecularHBondInteractionHint>` functor that
   identifies **hydrogen bonding** interactions between two atom in different molecules.

   .. seealso::

      * :ref:`OEHBondInteractionHint <OEBio_OEHBondInteractionHint>` class
      * :oe:constns:`OEBio::OEHBondInteractionHintType` namespace
      * :ref:`OEInteractionHint <OEBio_OEInteractionHint>` class

      * :ref:`OEIsHBondInteractionHint <OEBio_OEIsHBondInteractionHint>` predicate
      * :ref:`OEIsIntramolecularHBondInteractionHint <OEBio_OEIsIntramolecularHBondInteractionHint>` predicate
      * :ref:`OEIsClashingHBondInteractionHint <OEBio_OEIsClashingHBondInteractionHint>` predicate

   .. oe:method:: Constructors

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

         .. oe:api::

            OEIsIntermolecularHBondInteractionHint(bool includeNonIdeal = true)

      .. oe:language:: python

         .. oe:api:: python

            OEIsIntermolecularHBondInteractionHint(includeNonIdeal: bool = True) -> OEIsIntermolecularHBondInteractionHint
            OEIsIntermolecularHBondInteractionHint(arg2: OEIsIntermolecularHBondInteractionHint) -> OEIsIntermolecularHBondInteractionHint

      Constructor.

      :param includeNonIdeal: If ``true`` (default), non-ideal hydrogen bond
         interactions (long donor-acceptor distances or poor geometries) are
         included in the results.


   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OEIsIntermolecularHBondInteractionHint & operator=(const OEIsIntermolecularHBondInteractionHint &)

      Assignment operator.



   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEInteractionHint& c) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(c: OEInteractionHint) -> bool

      Returns ``true``, if the given interaction has a hydrogen bonding
      type *i.e.* the :oe:meth:`OEBio::OEInteractionHint::GetInteractionType`
      method returns an :ref:`OEHBondInteractionHint <OEBio_OEHBondInteractionHint>` with the following types:

      * :oe:const:`OEBio::OEHBondInteractionHintType::LigandAccepts`
      * :oe:const:`OEBio::OEHBondInteractionHintType::LigandDonates`

      When ``includeNonIdeal`` is ``true`` (default), the following types are
      also included:

      * :oe:const:`OEBio::OEHBondInteractionHintType::NonIdealLigandAccepts`
      * :oe:const:`OEBio::OEHBondInteractionHintType::NonIdealLigandDonates`

      Clashing interactions (:oe:const:`OEBio::OEHBondInteractionHintType::ClashAcceptorAcceptor`,
      :oe:const:`OEBio::OEHBondInteractionHintType::ClashDonorDonor`) are not
      included. Use :ref:`OEIsClashingHBondInteractionHint <OEBio_OEIsClashingHBondInteractionHint>`
      for those.

   .. oe:method:: CreateCopy

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

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEUnaryInteractionHintBoolFunc

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

      .. oe:language:: c++

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


