Skip To Content ArcGIS for Developers Sign In Dashboard

OrderBy Class

(Esri::ArcGISRuntime::OrderBy)

Contains a field name and sort order for use in a query where the results are sorted. More...

Header: #include <OrderBy>
Since: Esri::ArcGISRuntime 100.0

Public Functions

OrderBy()
OrderBy(const QString &fieldName, SortOrder sortOrder)
OrderBy(const OrderBy &other)
OrderBy(OrderBy &&other)
~OrderBy()
void clear()
QString fieldName() const
bool isEmpty() const
void setFieldName(const QString &fieldName)
void setSortOrder(SortOrder sortOrder)
SortOrder sortOrder() const
OrderBy &operator=(const OrderBy &other)
OrderBy &operator=(OrderBy &&other)

Detailed Description

Contains a field name and sort order for use in a query where the results are sorted.

Member Function Documentation

OrderBy::OrderBy()

Default Constructor. Create an empty OrderBy instance.

OrderBy::OrderBy(const QString &fieldName, SortOrder sortOrder)

Creates an instance of OrderBy providing fieldName to order by and sortOrder to be applied on the field.

OrderBy::OrderBy(const OrderBy &other)

Copy constructor from other OrderBy.

OrderBy::OrderBy(OrderBy &&other)

Move constructor from other OrderBy.

OrderBy::~OrderBy()

Destructor

void OrderBy::clear()

Clears this OrderBy and sets back to empty.

QString OrderBy::fieldName() const

Returns the field name to order by.

See also setFieldName().

bool OrderBy::isEmpty() const

Returns true if this OrderBy is empty.

void OrderBy::setFieldName(const QString &fieldName)

Sets the fieldName to order by.

See also fieldName().

void OrderBy::setSortOrder(SortOrder sortOrder)

Sets the sortOrder to be applied to the field.

See also sortOrder().

SortOrder OrderBy::sortOrder() const

Returns the sort order applied to the field.

See also setSortOrder().

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

Assignment operator from other OrderBy.

OrderBy &OrderBy::operator=(OrderBy &&other)

Move operator from other OrderBy.


Feedback on this topic?