|
Maps SDK for C++ 1.0.0
|


Public Member Functions | |
| MarkerCollection (EMarkerType type, const String &name) | |
| Default constructor. | |
| MarkerCollection (const MarkerCollection &v) | |
| Default copy constructor. | |
| MarkerCollection (MarkerCollection &&v)=default | |
| Default move constructor noexcept is deduced. | |
| MarkerCollection & | operator= (const MarkerCollection &v) |
| Default copy assignment. | |
| MarkerCollection & | operator= (MarkerCollection &&v)=default |
| Default move assignment noexcept is deduced. | |
| bool | operator== (const MarkerCollection &markerCollection) const |
| Comparison operator equal. | |
| bool | operator!= (const MarkerCollection &coll) const |
| Comparison operator not equal. | |
| LargeInteger | getId () const noexcept |
| Get collection id. | |
| EMarkerType | getType () const noexcept |
| Get collection type. | |
| const StringRef | getName () const noexcept |
| Get collection name. | |
| void | setName (const String &name) noexcept |
| Set collection name. | |
| int | size () const noexcept |
| Get marker count. | |
| MarkerRef | getMarkerAt (int index) const noexcept |
| Get the marker at the given index. | |
| Marker | getMarkerById (LargeInteger id) const noexcept |
| Get the marker with the given id. | |
| int | indexOf (const Marker &marker) const noexcept |
| Get the index of the given marker. | |
| int | indexOf (LargeInteger id) const noexcept |
| Get the index of the given marker id. | |
| MarkerRef | getPointsGroupHead (LargeInteger markerId) const |
| Gets the points group head for the given marker id. | |
| MarkerList | getPointsGroupComponents (LargeInteger groupId) const |
| Gets the points group components. | |
| MarkerCollection & | add (const Marker &marker=Marker(), int index=-1) noexcept |
| Add a new marker to collection. | |
| MarkerCollection & | del (int index) noexcept |
| Delete a marker by index. | |
| void | clear () noexcept |
| Delete all markers. | |
| void | hitTest (const RectangleGeographicArea &area, MarkerMatchList &list, const Marker *ignore=nullptr) const noexcept |
| Hit test in collection markers. | |
| RectangleGeographicArea | getArea () const noexcept |
| Get whole collection enclosing area. | |
| template<typename TCollector> | |
| bool | iterateMarkers (TCollector collector) const noexcept |
| Iterate marker collection markers and call collector for each. | |
| int | save (DataBuffer &buffer) const noexcept |
| Serialize to buffer. | |
Static Public Member Functions | |
| static std::pair< MarkerCollection, int > | load (const DataBuffer &buffer) noexcept |
| Create & load from buffer. | |
Marker collection.
Implements share-read / share-write Api object over IMarkerCollection
|
inline |
|
inline |
Default copy constructor.
| [in] | v | MarkerCollection |
|
default |
Default move constructor noexcept is deduced.
| v | MarkerCollection |
|
inlinenoexcept |
Add a new marker to collection.
| [in] | marker | The marker added to the collection |
| [in] | index | The new marker position in collection. -1 means at the collection end ( topmost ) |
|
inlinenoexcept |
Delete a marker by index.
| [in] | index | The marker index to be deleted |
|
inlinenoexcept |
Get whole collection enclosing area.
|
inlinenoexcept |
Get collection id.
|
inlinenoexcept |
Get the marker at the given index.
Return empty if index is not valid
| [in] | index | The marker index |
|
inlinenoexcept |
|
inlinenoexcept |
Get collection name.
|
inline |
Gets the points group components.
| [in] | groupId | The group id |
This requires the collection to be added to a map view collection with MarkerCollectionRenderSettings::buildPointsGroupConfig set to true
If points group head info is not available the function will return a default list and will set the API error accordingly
|
inline |
Gets the points group head for the given marker id.
| [in] | markerId | The marker id belonging to the points group |
This requires the collection to be added to a map view collection with MarkerCollectionRenderSettings::buildPointsGroupConfig set to true
If points group head info is not available the function will return a reference to the queried marker and will set the API error accordingly
If markerId is already a points group head the function will return a reference to the queried marker and will set the API error accordingly
|
inlinenoexcept |
Get collection type.
|
noexcept |
Hit test in collection markers.
| [in] | area | The geographic area to be tested |
| [out] | list | The list of markers that intersect the area |
| [in] | ignore | The marker to be ignored in the test |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Iterate marker collection markers and call collector for each.
Collector should return true if iteration should continue and false if iteration should stop
| TCollector | The collector function type |
| [in] | collector | The collector function |
|
inlinestaticnoexcept |
Create & load from buffer.
| [in] | buffer | The buffer to load from |
|
inline |
|
inline |
|
default |
Default move assignment noexcept is deduced.
| v | MarkerCollection |
|
inline |
|
inlinenoexcept |
Serialize to buffer.
| [out] | buffer | The buffer to serialize to |
|
inlinenoexcept |
Set collection name.
| [in] | name | Collection name |
|
inlinenoexcept |
Get marker count.