• FloatSupplier
  • class Esri::ArcGISRuntime::FloatSupplier

    A FloatFunction that returns a user-supplied optional float value when evaluated. More...

    Header: #include <FloatSupplier.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: Esri::ArcGISRuntime::FloatFunction

    Public Functions

    FloatSupplier(std::optional<float> value, QObject *parent = nullptr)
    virtual ~FloatSupplier() override
    void setValue(std::optional<float> value)
    std::optional<float> value() const

    Detailed Description

    Allows the supplied value to be changed and the analysis reevaluated. Analysis reevaluation may produce an updated result after changing the supplied value.

    Changing the values supplied to an analysis and reevaluating is more performant than creating and evaluating a new analysis with the new values.

    Relevant samples:

    See also FloatFunction, FloatFunction::evaluateAsync, BoolSupplier, and Int32Supplier.

    Member Function Documentation

    [explicit] FloatSupplier::FloatSupplier(std::optional<float> value, QObject *parent = nullptr)

    Creates a FloatSupplier.

    • value - The optional float value supplied to an analysis.
    • parent - The optional parent QObject.

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

    Destructor.

    void FloatSupplier::setValue(std::optional<float> value)

    Sets the value to value.

    See also value.

    std::optional<float> FloatSupplier::value() const

    Returns the optional float value supplied to an analysis.

    After changing the value, evaluation returns the updated value.

    See also setValue().