.. oe:namespace:: OEBio


.. _OEBio_OEIsStackingInteractionHint:

.. oe:class:: OEIsStackingInteractionHint

   .. oe:api::

      class OEIsStackingInteractionHint : public OESystem::OEUnaryPredicate<OEInteractionHint>

   This class represents :ref:`OEIsStackingInteractionHint <OEBio_OEIsStackingInteractionHint>` functor that
   identifies **stacking** interactions.

   .. seealso::

      * :ref:`OEStackingInteractionHint <OEBio_OEStackingInteractionHint>` class
      * :oe:constns:`OEBio::OEStackingInteractionHintType` namespace
      * :ref:`OEInteractionHint <OEBio_OEInteractionHint>` class

      * :ref:`OEIsIntermolecularStackingInteractionHint <OEBio_OEIsIntermolecularStackingInteractionHint>` predicate
      * :ref:`OEIsIntramolecularStackingInteractionHint <OEBio_OEIsIntramolecularStackingInteractionHint>` predicate

   .. oe:method:: Constructors

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

         .. oe:api::

            OEIsStackingInteractionHint(bool includeIntra = true)

      .. oe:language:: python

         .. oe:api:: python

            OEIsStackingInteractionHint(includeIntra: bool = True) -> OEIsStackingInteractionHint
            OEIsStackingInteractionHint(arg2: OEIsStackingInteractionHint) -> OEIsStackingInteractionHint

      Constructor.

      :param includeIntra: If ``true`` (default), intramolecular stacking
         interactions are included in the results.


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

      .. oe:api::

         OEIsStackingInteractionHint & operator=(const OEIsStackingInteractionHint &)

      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 a stacking
      type *i.e.* the :oe:meth:`OEBio::OEInteractionHint::GetInteractionType`
      method returns an :ref:`OEStackingInteractionHint <OEBio_OEStackingInteractionHint>`
      type.


   .. 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:`OEIsStackingInteractionHint <OEBio_OEIsStackingInteractionHint>`
      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.
