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

.. oe:namespace:: OEMolMMFF



.. meta::
   :keywords: OEMMFFStretchBend, MMFFStretchBend


.. _OEMolMMFF_OEMMFFStretchBend:

.. oe:class:: OEMMFFStretchBend

   .. attention::

      |TWOLANGUAGE|

   .. oe:api::


      class OEMMFFStretchBend : public OEMolPotential::OEMolFunc2

   The :ref:`OEMMFFStretchBend <OEMolMMFF_OEMMFFStretchBend>` class defines stretch-bend interaction function using the functional forms used in MMFF94 force field. The function can be initialized with parameters defined in MMFF94 (:ref:`OEMMFFParams <OEMolMMFF_OEMMFFParams>`) or MMFF94s (:ref:`OEMMFF94sParams <OEMolMMFF_OEMMFF94sParams>`) force field, or a different set of user defined parameters (:ref:`OEFFParams <OEMolPotential_OEFFParams>`) during construction.

   .. _figure_OEMMFFStretchBend_Hierarchy:

   .. figure:: ../images/OEMMFFStretchBend.*
      :align:  center
                         
   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:`Setup<OEMolPotential::OEMolFunc::Setup>`

   The :ref:`OEMMFFStretchBend <OEMolMMFF_OEMMFFStretchBend>` class defines the following public methods:
    * :oe:meth:`Set<OEMolMMFF::OEMMFFStretchBend::Set>`
   
   .. oe:method:: Constructors

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

         .. oe:api::

            OEMMFFStretchBend(const OEMMFFStretchBend &)
            OEMMFFStretchBend(const OEMolPotential::OEFFParams &)

      .. oe:language:: python

         .. oe:api:: python

            OEMMFFStretchBend(arg2: OEFFParams) -> OEMMFFStretchBend
            OEMMFFStretchBend(arg2: OEMMFFStretchBend) -> OEMMFFStretchBend

      Default and copy constructors.

      Constructs an :ref:`OEMMFFStretchBend <OEMolMMFF_OEMMFFStretchBend>` instance using the specified set of parameters.

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

      .. oe:api::

         OEMMFFStretchBend &operator=(const OEMMFFStretchBend &)

      The assignment operator. 

      Assignment operator.


   .. oe:method:: Set

      .. oe:api::

         bool Set(const OESystem::OEBinaryPredicate<OEChem::OEBondBase, OEChem::OEBondBase>&,
                  unsigned int flag = OEFuncType::StretchBend)

      This method defines the set of stretch-bending interactions that should not be included during the :oe:meth:`Setup<OEMolPotential::OEMolFunc::Setup>`. :oe:meth:`Set<OEMolMMFF::OEMMFFStretchBend::Set>` must be called before the :oe:meth:`Setup<OEMolPotential::OEMolFunc::Setup>` for it to be effective.

