Skip To Content ArcGIS for Developers Sign In Dashboard

UtilityTraceFunctionBarrierListModel Class

(Esri::ArcGISRuntime::UtilityTraceFunctionBarrierListModel)

A container class storing a list of UtilityTraceFunctionBarrier objects. More...

Header: #include <UtilityTraceFunctionBarrierListModel>
Since: Esri::ArcGISRuntime 100.7
Inherits: QAbstractListModel and Iterable<UtilityTraceFunctionBarrier *>

Public Types

enum UtilityTraceFunctionBarrierRoles { UtilityTraceFunctionBarrierComparisonOperator, UtilityTraceFunctionBarrierValue }

Public Functions

~UtilityTraceFunctionBarrierListModel()
void append(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)
UtilityTraceFunctionBarrier *at(int index) const
void clear()
bool contains(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier) const
UtilityTraceFunctionBarrier *first() const
int indexOf(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier) const
void insert(int index, UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)
bool isEmpty() const
UtilityTraceFunctionBarrier *last() const
void move(int from, int to)
void removeAt(int index)
void removeOne(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)
int size() const

Reimplemented Public Functions

virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const

Signals

void errorOccurred(Esri::ArcGISRuntime::Error error)
void utilityTraceFunctionBarrierAdded(int index)
void utilityTraceFunctionBarrierRemoved(int index)

Additional Inherited Members

Detailed Description

A container class storing a list of UtilityTraceFunctionBarrier objects.

The model returns data for the following roles:

RoleTypeDescriptionUtilityTraceFunctionBarrierRoles
comparisonOperatorUtilityAttributeComparisonOperatorThe operator used for the comparison.UtilityAttributeComparisonOperator
valueQVariantThe value to compare againstUtilityTraceFunctionBarrierValue

See also UtilityTraceFunctionBarrier.

Member Type Documentation

enum UtilityTraceFunctionBarrierListModel::UtilityTraceFunctionBarrierRoles

This enum specifies the custom roles which can be used with UtilityTraceFunctionBarrierListModel::data.

ConstantValueDescription
Esri::ArcGISRuntime::UtilityTraceFunctionBarrierListModel::UtilityTraceFunctionBarrierComparisonOperatorQt::UserRole + 1The operator used for the comparison.
Esri::ArcGISRuntime::UtilityTraceFunctionBarrierListModel::UtilityTraceFunctionBarrierValueQt::UserRole + 2The value to compare against.

Member Function Documentation

UtilityTraceFunctionBarrierListModel::~UtilityTraceFunctionBarrierListModel()

Destructor.

void UtilityTraceFunctionBarrierListModel::append(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)

Appends the utilityTraceFunctionBarrier to the list model.

UtilityTraceFunctionBarrier *UtilityTraceFunctionBarrierListModel::at(int index) const

Returns the UtilityTraceFunctionBarrier at the specified index.

void UtilityTraceFunctionBarrierListModel::clear()

Removes all UtilityTraceFunctionBarrier instances from the list model.

bool UtilityTraceFunctionBarrierListModel::contains(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier) const

Returns whether the provided utilityTraceFunctionBarrier is in the list model.

[virtual] QVariant UtilityTraceFunctionBarrierListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const

Reimplemented from QAbstractItemModel::data().

Returns the data stored under the given role for the UtilityTraceFunctionBarrier referred to by the index.

  • index - The index in the model for which to return data.
  • role - The role for which to return data.

[signal] void UtilityTraceFunctionBarrierListModel::errorOccurred(Esri::ArcGISRuntime::Error error)

Signal emitted when an error occurs.

  • error - Details about the error.

UtilityTraceFunctionBarrier *UtilityTraceFunctionBarrierListModel::first() const

Returns the first UtilityTraceFunctionBarrier in the list model.

int UtilityTraceFunctionBarrierListModel::indexOf(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier) const

Returns the index of the provided utilityTraceFunctionBarrier in the list model.

void UtilityTraceFunctionBarrierListModel::insert(int index, UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)

Inserts a utilityTraceFunctionBarrier at a specified index in the list model.

bool UtilityTraceFunctionBarrierListModel::isEmpty() const

Returns true if this list model is empty.

UtilityTraceFunctionBarrier *UtilityTraceFunctionBarrierListModel::last() const

Returns the last UtilityTraceFunctionBarrier in the list model.

void UtilityTraceFunctionBarrierListModel::move(int from, int to)

Moves one UtilityTraceFunctionBarrier from an index in the list model to a different index.

void UtilityTraceFunctionBarrierListModel::removeAt(int index)

Removes a UtilityTraceFunctionBarrier at the specified index in the list model.

void UtilityTraceFunctionBarrierListModel::removeOne(UtilityTraceFunctionBarrier *utilityTraceFunctionBarrier)

Removes the specified utilityTraceFunctionBarrier from the list model.

int UtilityTraceFunctionBarrierListModel::size() const

Returns the number of trace function barriers in the model.

[signal] void UtilityTraceFunctionBarrierListModel::utilityTraceFunctionBarrierAdded(int index)

Signal emitted when a UtilityTraceFunctionBarrier is added to the list.

index is the index of the added UtilityTraceFunctionBarrier.

[signal] void UtilityTraceFunctionBarrierListModel::utilityTraceFunctionBarrierRemoved(int index)

Signal emitted when a UtilityTraceFunctionBarrier is removed from the list.

index is the index of the removed UtilityTraceFunctionBarrier.


Feedback on this topic?