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

.. oe:namespace:: OEMolPotential

.. meta::
   :keywords: OEInterMolFunc2, MolFunc2


.. _OEMolPotential_OEInterMolFunc2:

.. oe:class:: OEInterMolFunc2

   .. attention::

      |TWOLANGUAGE|

   .. oe:api::


      class OEInterMolFunc2 : public InterMolFunc1, public OEMolFunc2

   The :ref:`OEInterMolFunc2 <OEMolPotential_OEInterMolFunc2>` is an abstract base class. This
   class defines the interface for stateful functions which operate on
   molecules and conformers, compute a function value, gradients, and
   second derivatives. :ref:`OEInterMolFunc2 <OEMolPotential_OEInterMolFunc2>`
   combines :ref:`OEInterMolFunc1 <OEMolPotential_OEInterMolFunc1>` with :ref:`OEMolFunc2 <OEMolPotential_OEMolFunc2>`
   interface.  Classes derived from :ref:`OEInterMolFunc2 <OEMolPotential_OEInterMolFunc2>`
   can be used with any optimizers.


   The following methods are publicly inherited from :ref:`OEFunc0 <OEOpt_OEFunc0>`:
    * :oe:meth:`operator()<OEOpt::OEFunc0::operator()>`
    * :oe:meth:`GetFComponents<OEOpt::OEFunc0::GetFComponents>`
    * :oe:meth:`NumVar<OEOpt::OEFunc0::NumVar>`

   The following methods are publicly inherited from :ref:`OEFunc1 <OEOpt_OEFunc1>`:
    * :oe:meth:`operator()<OEOpt::OEFunc1::operator()>`

   The following methods are publicly inherited from :ref:`OEFunc2 <OEOpt_OEFunc2>`:
    * :oe:meth:`operator()<OEOpt::OEFunc2::operator()>`

   The following methods are publicly inherited from :ref:`OEMolFunc <OEMolPotential_OEMolFunc>`:
    * :oe:meth:`Clear<OEMolPotential::OEMolFunc::Clear>`
    * :oe:meth:`ClearPredicates<OEMolPotential::OEMolFunc::ClearPredicates>`
    * :oe:meth:`GetInteractions<OEMolPotential::OEMolFunc::GetInteractions>`
    * :oe:meth:`Set<OEMolPotential::OEMolFunc::Set>`
    * :oe:meth:`Setup<OEMolPotential::OEMolFunc::Setup>`

   The following methods are publicly inherited from :ref:`OEInterMolFunc1 <OEMolPotential_OEInterMolFunc1>`:
    * :oe:meth:`AdaptHostCoords<OEMolPotential::OEInterMolFunc1::AdaptHostCoords>`
    * :oe:meth:`GetVar<OEMolPotential::OEInterMolFunc1::GetVar>`
    * :oe:meth:`SetHostFlex<OEMolPotential::OEInterMolFunc1::SetHostFlex>`
    * :oe:meth:`SetupHost<OEMolPotential::OEInterMolFunc1::SetupHost>`

   The following classes derive from this class:
    * :ref:`OEInterNonBondPotBase <OEMolPotential_OEInterNonBondPotBase>`

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

      .. oe:api::

         OEInterMolFunc2 & operator=(const OEInterMolFunc2 &)

      Assignment operator.

