Skip To Content ArcGIS for Developers Sign In Dashboard

StatisticDefinition Class

(Esri::ArcGISRuntime::StatisticDefinition)

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

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

Public Functions

StatisticDefinition()
StatisticDefinition(const QString &onFieldName, StatisticType statisticType, const QString &outputAlias)
StatisticDefinition(const StatisticDefinition &other)
StatisticDefinition(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(StatisticType statisticType)
StatisticType statisticType() const
StatisticDefinition &operator=(const StatisticDefinition &other)
StatisticDefinition &operator=(StatisticDefinition &&other)

Detailed Description

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

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()

Default Constructor. Create an empty StatisticDefinition instance.

StatisticDefinition::StatisticDefinition(const QString &onFieldName, 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(const StatisticDefinition &other)

Copy constructor from other StatisticDefinition.

StatisticDefinition::StatisticDefinition(StatisticDefinition &&other)

Move constructor 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(StatisticType statisticType)

Sets the statistic (statisticType) to calculate.

See also statisticType() and StatisticType.

StatisticType StatisticDefinition::statisticType() const

Returns the statistic to calculate.

See also setStatisticType() and StatisticType.

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

Assignment operator from other StatisticDefinition.

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

Move operator from other StatisticDefinition.


Feedback on this topic?