ImmutablePartCollection Class

  • ImmutablePartCollection
  • class Esri::ArcGISRuntime::ImmutablePartCollection

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

    Header: #include <ImmutablePartCollection.h>
    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.

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

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close