|
Maps SDK for C++ 1.0.0
|
Immutable collection of overlay items. More...


Public Member Functions | |
| int | size () const noexcept |
| Get the number of overlay datasets in this collection. | |
| const OverlayInfoRef | getOverlayAt (int index) const noexcept |
| Get the overlay at the specified index. | |
| const OverlayInfoRef | getOverlayByUid (int overlayUid) const noexcept |
| Get the overlay having the specified UID. | |
| bool | contains (int overlayId) const noexcept |
| Check if overlay is added to the collection. | |
| bool | contains (int overlayId, int categoryId) const noexcept |
| Check if overlay category is added to the collection. | |
| template<typename TCollector> | |
| bool | iterateOverlays (TCollector collector) const |
| Iterate all overlays in the collection. | |
| template<typename TCollector> | |
| bool | iterateOverlaysAndCategories (TCollector collector) const |
| Iterate all overlays & categories in the collection. | |
Protected Types | |
| using | Base = ApiObject<IOverlayCollection, false> |
| Base. | |
Immutable collection of overlay items.
Implements share-read / write Api object over the read-only IOverlayCollection part.
Represents a fixed set of overlays, typically returned by queries on map or layer state. Allows inspection and iteration but does not support modifications.
|
inlinenoexcept |
Check if overlay is added to the collection.
| [in] | overlayId | The overlay id. The list of available overlays can be obtained by using OverlayService |
|
inlinenoexcept |
Check if overlay category is added to the collection.
| [in] | overlayId | The overlay id. The list of available overlays can be obtained by using OverlayService |
| [in] | categoryId | The overlay category id in OverlayInfo.getCategories result list |
|
inlinenoexcept |
Get the overlay at the specified index.
| index | The index of the overlay |
|
inlinenoexcept |
Get the overlay having the specified UID.
| overlayUid | The overlay UID |
|
inline |
Iterate all overlays in the collection.
Collector should return true if iteration should continue and false if iteration should stop
| collector | The collector function |
| TCollector | The collector function type |
|
inline |
Iterate all overlays & categories in the collection.
Collector should return true if iteration should continue and false if iteration should stop
| collector | The collector function |
|
inlinenoexcept |
Get the number of overlay datasets in this collection.