• FloatFunction
  • class Esri::ArcGISRuntime::FloatFunction

    A function that returns an optional float value when evaluated. More...

    Header: #include <FloatFunction.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: Esri::ArcGISRuntime::Object
    Inherited By:

    Esri::ArcGISRuntime::FloatSupplier

    Public Functions

    virtual ~FloatFunction() override
    QFuture<std::optional<float>> evaluateAsync()
    Esri::ArcGISRuntime::FloatFunctionType floatFunctionType() const

    Detailed Description

    Use evaluateAsync to compute the result of this function.

    After updating parameters of this function, or of functions from which it is composed, evaluation uses the updated parameter values and may produce an updated result.

    See also FloatSupplier, BoolFunction, and Int32Function.

    Member Function Documentation

    [override virtual noexcept] FloatFunction::~FloatFunction()

    Destructor.

    QFuture<std::optional<float>> FloatFunction::evaluateAsync()

    Evaluates the function.

    This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.

    See Working with QFuture for further details.

    Esri::ArcGISRuntime::FloatFunctionType FloatFunction::floatFunctionType() const

    Returns the FloatFunction type.