.. oe:namespace:: OEBio


.. _OEBio_OECovalentInteractionHint:

.. oe:class:: OECovalentInteractionHint

   .. oe:api::

      class  OECovalentInteractionHint : public OEInteractionHintTypeBase

   The :ref:`OECovalentInteractionHint <OEBio_OECovalentInteractionHint>` class represents
   a built-in type that identifies interactions stored in an
   :ref:`OEInteractionHintContainer <OEBio_OEInteractionHintContainer>` object as intermolecular
   **covalent** interactions.

   .. seealso::

      * :ref:`OEIsCovalentInteractionHint <OEBio_OEIsCovalentInteractionHint>` predicate
      * :ref:`OEInteractionHint <OEBio_OEInteractionHint>` class
      * :ref:`OEInteractionHintContainer <OEBio_OEInteractionHintContainer>` class

      To perceive **covalent** interactions:

      * :oe:func:`OEBio::OEPerceiveInteractionHints` function
      * :ref:`OEPerceiveInteractionOptions <OEBio_OEPerceiveInteractionOptions>` class and its methods:

        * :oe:meth:`OEBio::OEPerceiveInteractionOptions::SetMaxCovalentFraction`
        * :oe:meth:`OEBio::OEPerceiveInteractionOptions::SetMinCovalentFraction`


   The following methods are publicly inherited from :ref:`OEInteractionHintTypeBase <OEBio_OEInteractionHintTypeBase>`:
   
   =================================================================== =================================================================== =================================================================== 
   :oe:meth:`operator=<OEBio::OEInteractionHintTypeBase::operator=>`   :oe:meth:`operator==<OEBio::OEInteractionHintTypeBase::operator==>` :oe:meth:`GetName<OEBio::OEInteractionHintTypeBase::GetName>`
   :oe:meth:`operator!=<OEBio::OEInteractionHintTypeBase::operator!=>` :oe:meth:`CreateCopy<OEBio::OEInteractionHintTypeBase::CreateCopy>` :oe:meth:`IsValid<OEBio::OEInteractionHintTypeBase::IsValid>`
   =================================================================== =================================================================== =================================================================== 

   .. oe:method:: Constructors

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

         .. oe:api::

            OECovalentInteractionHint()

      .. oe:language:: python

         .. oe:api:: python

            OECovalentInteractionHint() -> OECovalentInteractionHint

      Default constructor.

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

         .. oe:api::

            OECovalentInteractionHint(const OECovalentInteractionHint& rhs)

      .. oe:language:: python

         .. oe:api:: python

            OECovalentInteractionHint(rhs: OECovalentInteractionHint) -> OECovalentInteractionHint

      Copy constructor.


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

      .. oe:api::

         OECovalentInteractionHint &operator=(const OECovalentInteractionHint &rhs)

      Assignment operator.


   .. oe:method:: CreateCopy

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

         .. oe:api::

            OEInteractionHintTypeBase* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEInteractionHintTypeBase

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


   .. oe:method:: IsValid

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

         .. oe:api::

            bool IsValid(const OEInteractionHintFragment *,
                         const OEInteractionHintFragment *) const

      .. oe:language:: python

         .. oe:api:: python

            IsValid(arg2: OEInteractionHintFragment,
                    arg3: OEInteractionHintFragment) -> bool

      Evaluates whether the two given fragments would form a valid
      **covalent** interaction when added to an
      :ref:`OEInteractionHintContainer <OEBio_OEInteractionHintContainer>` object.

      It checks that each fragment contains exactly one atom,
      and the fragments belong to different molecules *i.e.*
      it is an **intermolecular** interaction.
