.. oe:namespace:: OEProton


.. meta::
   :keywords: OECombineChargeEngines, CombineChargeEngines, ChargeEngine


.. _OEProton_OECombineChargeEngines:

.. oe:class:: OECombineChargeEngines

   .. oe:api::


      class OECombineChargeEngines : public OEChargeEngineBase

   Charge engine input to :oe:func:`OEAssignCharges<OEProton::OEAssignCharges>`
   that combines two user-specified charge engines into one. This is useful
   when the first charge engine is used to pre-charge a molecule and the second
   to adjust the charges. This allows more complicated charging schemes
   to be easily constructed.

   The input molecule must conform to the requirements of the specified
   charge engines.

   The following methods are publicly inherited from :ref:`OEChargeEngineBase <OEProton_OEChargeEngineBase>`:

   ======================================================================================= ======================================================================================= =======================================================================================
   :oe:meth:`operator!=<OEProton::OEChargeEngineBase::operator!=>`                         :oe:meth:`GetName<OEProton::OEChargeEngineBase::GetName>`                               :oe:meth:`SetRepairRequestedHint<OEProton::OEChargeEngineBase::SetRepairRequestedHint>`
   :oe:meth:`operator==<OEProton::OEChargeEngineBase::operator==>`                         :oe:meth:`GetRepairRequestedHint<OEProton::OEChargeEngineBase::GetRepairRequestedHint>` :oe:meth:`TransferCharge<OEProton::OEChargeEngineBase::TransferCharge>`
   :oe:meth:`CheckCharges<OEProton::OEChargeEngineBase::CheckCharges>`                     :oe:meth:`GetRequirements<OEProton::OEChargeEngineBase::GetRequirements>`
   :oe:meth:`CreateCopy<OEProton::OEChargeEngineBase::CreateCopy>`                         :oe:meth:`IsValid<OEProton::OEChargeEngineBase::IsValid>`
   :oe:meth:`GetExpectValidMol<OEProton::OEChargeEngineBase::GetExpectValidMol>`           :oe:meth:`SetExpectValidMol<OEProton::OEChargeEngineBase::SetExpectValidMol>`
   ======================================================================================= ======================================================================================= =======================================================================================

   .. oe:method:: Constructors

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

         .. oe:api::

            OECombineChargeEngines(const OECombineChargeEngines& rhs)
            OECombineChargeEngines(const OEChargeEngineBase& preChargeEngine,
                                   const OEChargeEngineBase& adjustmentEngine)

      .. oe:language:: python

         .. oe:api:: python

            OECombineChargeEngines(preChargeEngine: OEChargeEngineBase,
                                   adjustmentEngine: OEChargeEngineBase) -> OECombineChargeEngines
            OECombineChargeEngines(rhs: OECombineChargeEngines) -> OECombineChargeEngines

      Constructors. The ``preChargeEngine`` is expected to set initial charges
      while the ``adjustmentEngine`` is expected to modify those charges.

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

      .. oe:api::

         OECombineChargeEngines & operator=(const OECombineChargeEngines & rhs)

      Assignment operator.


