.. oe:namespace:: OEBio


.. _OEBio_OEIsIntramolecularHalogenBondInteractionHint:

.. oe:class:: OEIsIntramolecularHalogenBondInteractionHint

   .. oe:api::

      class OEIsIntramolecularHalogenBondInteractionHint : public OESystem::OEUnaryPredicate<OEInteractionHint>

   This class represents :ref:`OEIsIntramolecularHalogenBondInteractionHint <OEBio_OEIsIntramolecularHalogenBondInteractionHint>` functor that
   identifies **intramolecular halogen bond** interactions between a halogen
   and an acceptor within the same molecule (ligand or protein).

   .. seealso::

      * :ref:`OEHalogenBondInteractionHint <OEBio_OEHalogenBondInteractionHint>` class
      * :oe:constns:`OEBio::OEHalogenBondInteractionHintType` namespace
      * :ref:`OEInteractionHint <OEBio_OEInteractionHint>` class

      * :ref:`OEIsHalogenBondInteractionHint <OEBio_OEIsHalogenBondInteractionHint>` predicate
      * :ref:`OEIsIntermolecularHalogenBondInteractionHint <OEBio_OEIsIntermolecularHalogenBondInteractionHint>` predicate

   .. oe:method:: Constructors

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

         .. oe:api::

            OEIsIntramolecularHalogenBondInteractionHint()

      .. oe:language:: python

         .. oe:api:: python

            OEIsIntramolecularHalogenBondInteractionHint() -> OEIsIntramolecularHalogenBondInteractionHint
            OEIsIntramolecularHalogenBondInteractionHint(arg2: OEIsIntramolecularHalogenBondInteractionHint) -> OEIsIntramolecularHalogenBondInteractionHint

      Default constructor.


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

      .. oe:api::

         OEIsIntramolecularHalogenBondInteractionHint & operator=(const OEIsIntramolecularHalogenBondInteractionHint &)

      Assignment operator.



   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEInteractionHint& i) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(i: OEInteractionHint) -> bool

      Returns ``true``, if the given interaction has an intramolecular
      halogen bond type *i.e.* the
      :oe:meth:`OEBio::OEInteractionHint::GetInteractionType` method returns an
      :ref:`OEHalogenBondInteractionHint <OEBio_OEHalogenBondInteractionHint>` with
      one of the following types:

      * :oe:const:`OEBio::OEHalogenBondInteractionHintType::IntramolecularLigand`
      * :oe:const:`OEBio::OEHalogenBondInteractionHintType::IntramolecularProtein`


   .. 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:`OEIsIntramolecularHalogenBondInteractionHint <OEBio_OEIsIntramolecularHalogenBondInteractionHint>`
      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.
