ArcadeEvaluationResult Class

  • ArcadeEvaluationResult
  • class Esri::ArcGISRuntime::ArcadeEvaluationResult

    The result from the successful evaluation of an Arcade expression. More...

    Header: #include <ArcadeEvaluationResult>
    Since: Esri::ArcGISRuntime 100.14
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~ArcadeEvaluationResult() override
    QVariant castTo(Esri::ArcGISRuntime::ArcadeExpressionReturnType toType) const
    QVariant result() const
    (since Esri::ArcGISRuntime 200.7) bool operator!=(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const
    (since Esri::ArcGISRuntime 200.7) bool operator==(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const

    Detailed Description

    Relevant samples:

    Member Function Documentation

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

    Destructor.

    QVariant ArcadeEvaluationResult::castTo(Esri::ArcGISRuntime::ArcadeExpressionReturnType toType) const

    Returns the result of an evaluation to another type using the Arcade casting rules.

    • toType - The type to cast to.

    Use to ensure that the final return value from a script is cast to an expected type in an Arcade-consistent manner. For more information on the casting behavior for each type, see ArcadeExpressionReturnType. Only types to which a value can be cast are available in ArcadeExpressionReturnType. Other types, such as GeoElement, should be accessed via the result property. An error is not emitted when casting fails. Instead, an error is returned whose value depends on the type of cast attempted.

    QVariant ArcadeEvaluationResult::result() const

    Returns the result of a successful evaluation.

    May contain one of the following types:

    Note: in the case of a null pointer (nullptr), the QVariant will report isNull == true.

    [since Esri::ArcGISRuntime 200.7] bool ArcadeEvaluationResult::operator!=(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const

    Tests and returns true if this object is not equal to a second ArcadeEvaluationResult object.

    • other - The second object.

    This is a deep comparison so two separate dictionaries with the same keys and values will compare equal.

    This function was introduced in Esri::ArcGISRuntime 200.7.

    [since Esri::ArcGISRuntime 200.7] bool ArcadeEvaluationResult::operator==(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const

    Tests and returns true if this object is equal to a second ArcadeEvaluationResult object.

    • other - The second object.

    This is a deep comparison so two separate dictionaries with the same keys and values will compare equal.

    This function was introduced in Esri::ArcGISRuntime 200.7.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.