StatisticDefinition Class

  • StatisticDefinition
  • class Esri::ArcGISRuntime::StatisticDefinition

    Represents a type used for defining a statistic to be queried for in the table. More...

    Header: #include <StatisticDefinition.h>
    Since: Esri::ArcGISRuntime 100.2

    This class was introduced in Esri::ArcGISRuntime 100.2.

    Public Functions

    StatisticDefinition(Esri::ArcGISRuntime::StatisticDefinition &&other)
    StatisticDefinition(const Esri::ArcGISRuntime::StatisticDefinition &other)
    StatisticDefinition(const QString &onFieldName, Esri::ArcGISRuntime::StatisticType statisticType, const QString &outputAlias)
    StatisticDefinition()
    Esri::ArcGISRuntime::StatisticDefinition &operator=(Esri::ArcGISRuntime::StatisticDefinition &&other)
    Esri::ArcGISRuntime::StatisticDefinition &operator=(const Esri::ArcGISRuntime::StatisticDefinition &other)
    ~StatisticDefinition()
    void clear()
    bool isEmpty() const
    QString onFieldName() const
    QString outputAlias() const
    void setOnFieldName(const QString &onFieldName)
    void setOutputAlias(const QString &outputAlias)
    void setStatisticType(Esri::ArcGISRuntime::StatisticType statisticType)
    Esri::ArcGISRuntime::StatisticType statisticType() const

    Detailed Description

    A statistic definition must specify a field name and statistic type. Optionally, you can provide a name for the output statistic result.

    Member Function Documentation

    StatisticDefinition::StatisticDefinition(Esri::ArcGISRuntime::StatisticDefinition &&other)

    Move constructor from other StatisticDefinition.

    StatisticDefinition::StatisticDefinition(const Esri::ArcGISRuntime::StatisticDefinition &other)

    Copy constructor from other StatisticDefinition.

    StatisticDefinition::StatisticDefinition(const QString &onFieldName, Esri::ArcGISRuntime::StatisticType statisticType, const QString &outputAlias)

    Creates a statistic definition, with a field name (onFieldName), a statistic type (statisticType), and a name for the output statistic result (outputAlias).

    StatisticDefinition::StatisticDefinition()

    Default Constructor. Create an empty StatisticDefinition instance.

    Esri::ArcGISRuntime::StatisticDefinition &StatisticDefinition::operator=(Esri::ArcGISRuntime::StatisticDefinition &&other)

    Move operator from other StatisticDefinition.

    Esri::ArcGISRuntime::StatisticDefinition &StatisticDefinition::operator=(const Esri::ArcGISRuntime::StatisticDefinition &other)

    Assignment operator from other StatisticDefinition.

    StatisticDefinition::~StatisticDefinition()

    Destructor

    void StatisticDefinition::clear()

    Clears this StatisticDefinition and sets back to empty.

    bool StatisticDefinition::isEmpty() const

    Returns whether this StatisticDefinition is empty.

    QString StatisticDefinition::onFieldName() const

    Returns the name of the field in the table containing values to be used for the statistic.

    See also setOnFieldName().

    QString StatisticDefinition::outputAlias() const

    Returns the optional name for this statistic in the results.

    See also setOutputAlias().

    void StatisticDefinition::setOnFieldName(const QString &onFieldName)

    Sets the name of the field (onFieldName) in the table containing values to be used for the statistic.

    See also onFieldName().

    void StatisticDefinition::setOutputAlias(const QString &outputAlias)

    Sets the optional name (outputAlias) for this statistic in the results.

    See also outputAlias().

    void StatisticDefinition::setStatisticType(Esri::ArcGISRuntime::StatisticType statisticType)

    Sets the statistic (statisticType) to calculate.

    See also statisticType() and StatisticType.

    Esri::ArcGISRuntime::StatisticType StatisticDefinition::statisticType() const

    Returns the statistic to calculate.

    See also setStatisticType() and StatisticType.

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