ImmutablePointCollection Class

  • ImmutablePointCollection
  • class Esri::ArcGISRuntime::ImmutablePointCollection

    Represents an immutable collection of points. More...

    Header: #include <ImmutablePointCollection.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Iterable

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    ImmutablePointCollection(Esri::ArcGISRuntime::ImmutablePointCollection &&other)
    ImmutablePointCollection(const Esri::ArcGISRuntime::ImmutablePointCollection &other)
    ImmutablePointCollection()
    Esri::ArcGISRuntime::ImmutablePointCollection &operator=(Esri::ArcGISRuntime::ImmutablePointCollection &&other)
    Esri::ArcGISRuntime::ImmutablePointCollection &operator=(const Esri::ArcGISRuntime::ImmutablePointCollection &other)
    virtual ~ImmutablePointCollection() override
    int indexOf(const Esri::ArcGISRuntime::Point &point) const
    bool isEmpty() const
    Esri::ArcGISRuntime::Point point(int index) const
    Esri::ArcGISRuntime::SpatialReference spatialReference() const

    Reimplemented Public Functions

    virtual int size() const override

    Detailed Description

    This collection is used to represent the content of a Multipoint geometry. Use the Multipoint::points method to return the collection of points in a Multipoint geometry. ImmutablePointCollections can also be used as input parameters to initialize contents when constructing Parts and PartCollections.

    Because geometries themselves are immutable, the collections they are composed of are also immutable. For geometry editing or creation workflows, a mutable PointCollection is used instead.

    Member Function Documentation

    ImmutablePointCollection::ImmutablePointCollection(Esri::ArcGISRuntime::ImmutablePointCollection &&other)

    Move constructor from other ImmutablePointCollection.

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

    Copy constructor from other ImmutablePointCollection.

    ImmutablePointCollection::ImmutablePointCollection()

    Default constructor.

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

    Move operator from other ImmutablePointCollection.

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

    Assignment operator from other ImmutablePointCollection.

    [override virtual] ImmutablePointCollection::~ImmutablePointCollection()

    Destructor.

    int ImmutablePointCollection::indexOf(const Esri::ArcGISRuntime::Point &point) const

    Gets the index of point.

    Returns the index or -1 if not found.

    bool ImmutablePointCollection::isEmpty() const

    Gets whether the ImmutablePointCollection contains any points.

    Returns true if the ImmutablePointCollection contains at least one point.

    Esri::ArcGISRuntime::Point ImmutablePointCollection::point(int index) const

    Gets the Point at index.

    Returns the Point or an empty Point if the index isn't valid.

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

    Gets the number of points in the ImmutablePointCollection.

    Returns the number of points.

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

    Gets the SpatialReference of the ImmutablePointCollection.

    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.