• Docs »
  • OEScaledMolFunc

OEScaledMolFunc

Attention

This API is currently available in C++ and Python.

class OEScaledMolFunc : public OEMolFunc2

The OEScaledMolFunc class allows scaling energies, gradients and hessians of a molecule function, with a specified constant.

../../_images/OEScaledMolFunc.png
The following methods are publicly inherited from OEFunc0:
The following methods are publicly inherited from OEFunc1:
The following methods are publicly inherited from OEFunc2:
The following methods are publicly inherited from OEMolFunc:
The OEScaledMolFunc class defines the following public methods:

Constructors

OEScaledMolFunc(OEMolFunc1 &, const double factor, bool own=false)
OEScaledMolFunc(OEMolFunc2 &, const double factor, bool own=false)

Default and copy constructors.

The molecule function used for function evaluation and to be scaled must be provided as the first argument to the constructor. The second argument specifies the scaling factor. The third argument specifies whether the OEScaledMolFunc object takes ownership of the memory of the molecule function instance. By default that does not happen, so the OEScaledMolFunc destructor does not delete the molecule function instance. If ownership of the molecule function is transferred to the OEScaledMolFunc instance, the molecule function’s delete operator will be called in the OEScaledMolFunc destructor.

Set

bool Set(const OESystem::OEUnaryPredicate<OEChem::OEBondBase> &pred,
         unsigned int functype)
bool Set(const OESystem::OEUnaryPredicate<OEChem::OEAtomBase> &pred,
         unsigned int functype)
bool Set(const OESystem::OEBinaryPredicate<OEChem::OEAtomBase,
         OEChem::OEAtomBase> &pred, unsigned int functype)
bool Set(const OESystem::OEBinaryPredicate<OEChem::OEBondBase,
         OEChem::OEBondBase> &pred, unsigned int functype)

Predicates are passed directly to the molecule function that is to be scaled.