Skip To Content ArcGIS for Developers Sign In Dashboard

ImmutablePartCollection Class

class Esri::ArcGISRuntime::ImmutablePartCollection

Represents an immutable collection of Parts that compose a Multipart geometry (Polygon or Polyline). More...

Header: #include <ImmutablePartCollection>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::Iterable

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

ImmutablePartCollection(Esri::ArcGISRuntime::ImmutablePartCollection &&other)
ImmutablePartCollection(const Esri::ArcGISRuntime::ImmutablePartCollection &other)
ImmutablePartCollection()
Esri::ArcGISRuntime::ImmutablePartCollection &operator=(Esri::ArcGISRuntime::ImmutablePartCollection &&other)
Esri::ArcGISRuntime::ImmutablePartCollection &operator=(const Esri::ArcGISRuntime::ImmutablePartCollection &other)
virtual ~ImmutablePartCollection() override
int indexOf(const Esri::ArcGISRuntime::ImmutablePart &part) const
bool isEmpty() const
Esri::ArcGISRuntime::ImmutablePart part(int index) const
Esri::ArcGISRuntime::SpatialReference spatialReference() const

Reimplemented Public Functions

virtual int size() const override

Detailed Description

Use the ImmutablePartCollection returned from the Multipart getParts method to iterate through all of the parts in a Multipart.

Because geometries themselves are immutable, the collections they are composed of are also immutable. For geometry editing or creation workflows, a mutable PartCollection is used instead. PartCollection has constructors that take an ImmutablePartCollection, allowing creation of new geometries from parts of existing ones.

Member Function Documentation

ImmutablePartCollection::ImmutablePartCollection(Esri::ArcGISRuntime::ImmutablePartCollection &&other)

Move constructor from other ImmutablePartCollection.

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

Copy constructor from other ImmutablePartCollection.

ImmutablePartCollection::ImmutablePartCollection()

Default constructor.

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

Move operator from other ImmutablePartCollection.

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

Assignment operator from other ImmutablePartCollection.

[override virtual] ImmutablePartCollection::~ImmutablePartCollection()

Destructor.

int ImmutablePartCollection::indexOf(const Esri::ArcGISRuntime::ImmutablePart &part) const

Gets the index of part in the collection.

Returns the index or -1 if not found.

bool ImmutablePartCollection::isEmpty() const

Gets whether the ImmutablePartCollection contains any parts.

Returns true if the ImmutablePartCollection contains parts.

Esri::ArcGISRuntime::ImmutablePart ImmutablePartCollection::part(int index) const

Gets the ImmutablePart at index.

Returns the ImmutablePart or an empty ImmutablePart on error.

[override virtual] int ImmutablePartCollection::size() const

Gets the number of parts in the ImmutablePartCollection.

Returns the number of parts.

Esri::ArcGISRuntime::SpatialReference ImmutablePartCollection::spatialReference() const

Gets the SpatialReference of the ImmutablePartCollection.

Returns the SpatialReference.


Feedback on this topic?