.. oe:namespace:: OEMolProp


.. _OEMolProp_OEXLogPResult:

.. oe:class:: OEXLogPResult

   .. oe:api::

      class OEXLogPResult

   Used by :oe:func:`OEMolProp::OEGetXLogPResult` function to return
   the computed XLogP and result status.

   .. _OEMolProp_OEXLogPResult_Constructors:

   .. oe:method:: Constructors

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

         .. oe:api::

            OEXLogPResult(bool valid, float value)

      .. oe:language:: python

         .. oe:api:: python

            OEXLogPResult(valid: bool, value: float) -> OEXLogPResult
            OEXLogPResult(rhs: OEXLogPResult) -> OEXLogPResult

      Constructor.  Since this class is mainly used to return values and
      status from the :oe:func:`OEMolProp::OEGetXLogPResult` function, this
      is generally not used.

   .. _OEMolProp_OEXLogPResult_operator_assign:

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

      .. oe:api::

         OEXLogPResult & operator=(const OEXLogPResult &)

      Assignment operator.


   .. _OEMolProp_OEXLogPResult_IsValid:

   .. oe:method:: IsValid()

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

         .. oe:api::

            bool IsValid() const

      .. oe:language:: python

         .. oe:api:: python

            IsValid() -> bool

      Returns whether the computed value is valid for the molecule.
      The main reason that the computation fails is that the molecule
      has one or more atoms that are not parameterized.

   .. _OEMolProp_OEXLogPResult_GetValue:

   .. oe:method:: GetValue

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

         .. oe:api::

            float GetValue() const

      .. oe:language:: python

         .. oe:api:: python

            GetValue() -> float

      Returns the computed XLogP value.
