.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEBio

.. oe:function:: OEConstructInteractionHintContainer

   .. attention::

      |PRELIMINARY-API|
      
   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEConstructInteractionHintContainer(OEInteractionHintContainer& asite,
                                                  const OEChem::OEMolBase& protein,
                                                  const OEChem::OEMolBase& ligand)

   .. oe:language:: python

      .. oe:api:: python

         OEConstructInteractionHintContainer(asite: OEInteractionHintContainer,
                                             protein: Union[OEGraphMol,OEMol,OEQMol],
                                             ligand: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Constructs an :oe:cls:`OEBio::OEInteractionHintContainer` object that contains the 
   interaction hints between a protein and a ligand from the serialized interaction
   present in the molecules. 
   The function will return true if the interaction hints can be constructed successfully, 
   otherwise the function will return false and a given container will be cleared.

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

      .. oe:api::

         bool OEConstructInteractionHintContainer(OEInteractionHintContainer& asite,
                                                  const OEBio::OEDesignUnit& du)

   .. oe:language:: python

      .. oe:api:: python

         OEConstructInteractionHintContainer(asite: OEInteractionHintContainer,
                                             du: OEDesignUnit) -> bool

   Constructs an :oe:cls:`OEBio::OEInteractionHintContainer` from the serialized
   interaction hints stored in an :oe:cls:`OEBio::OEDesignUnit`.
   The function will return true if the interaction hints can be constructed
   successfully, otherwise the function will return false and the container will
   be cleared.

   .. seealso::

      * :oe:func:`OEBio::OESerializeInteractionsHintContainer` function
      * :oe:func:`OEBio::OEHasInteractionsHintSerializationData` function
