• Int32Supplier
  • class Esri::ArcGISRuntime::Int32Supplier

    A Int32Function that returns a user-supplied optional integer value when evaluated. More...

    Header: #include <Int32Supplier.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: Esri::ArcGISRuntime::Int32Function

    Public Functions

    Int32Supplier(std::optional<int> value, QObject *parent = nullptr)
    virtual ~Int32Supplier() override
    void setValue(std::optional<int> value)
    std::optional<int> 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.

    See also Int32Function, Int32Function::evaluateAsync, BoolSupplier, and FloatSupplier.

    Member Function Documentation

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

    Creates a Int32Supplier.

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

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

    Destructor.

    void Int32Supplier::setValue(std::optional<int> value)

    Sets the value to value.

    See also value.

    std::optional<int> Int32Supplier::value() const

    Returns the optional integer value supplied to an analysis.

    After changing the value, evaluation returns the updated value.

    See also setValue().