• BooleanFieldSupplier
  • class Esri::ArcGISRuntime::BooleanFieldSupplier

    A BooleanFieldFunction that returns a user-supplied BooleanField when evaluated. More...

    Header: #include <BooleanFieldSupplier.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: Esri::ArcGISRuntime::BooleanFieldFunction

    Public Functions

    BooleanFieldSupplier(QObject *parent = nullptr)
    BooleanFieldSupplier(Esri::ArcGISRuntime::BooleanField *field, QObject *parent = nullptr)
    virtual ~BooleanFieldSupplier() override
    Esri::ArcGISRuntime::BooleanField *field() const
    void setField(Esri::ArcGISRuntime::BooleanField *field)

    Detailed Description

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

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

    See also BooleanField, BooleanFieldFunction, BooleanFieldFunction::evaluateAsync, ContinuousFieldSupplier, and DiscreteFieldSupplier.

    Member Function Documentation

    [explicit] BooleanFieldSupplier::BooleanFieldSupplier(QObject *parent = nullptr)

    Creates a BooleanFieldSupplier with no field and the given parent.

    • parent - The optional parent QObject.

    BooleanFieldFunction::evaluateAsync fails until field is populated.

    [explicit] BooleanFieldSupplier::BooleanFieldSupplier(Esri::ArcGISRuntime::BooleanField *field, QObject *parent = nullptr)

    Creates a BooleanFieldSupplier.

    • field - The BooleanField returned when this function is evaluated.
    • parent - The optional parent QObject.

    BooleanFieldFunction::evaluateAsync fails if field is nullptr. However, creating a BooleanFieldSupplier with no field can be useful in time series analysis. A nullptr initial field lets you define a time series analysis before its field is available. You can then defer evaluation until a field has been populated for each time frame.

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

    Destructor.

    Esri::ArcGISRuntime::BooleanField *BooleanFieldSupplier::field() const

    Returns the BooleanField returned when this function is evaluated.

    After changing the field, evaluation returns the updated field.

    See also setField().

    void BooleanFieldSupplier::setField(Esri::ArcGISRuntime::BooleanField *field)

    Sets the field to field.

    See also field.