GeoList
#include <bb/platform/geo/GeoList>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps
A container of Geographic elements.
Each element's ID must be unique. The element's ID is used as a handle for the element. You can retrieve each element's ID using Geographic.getId().
Object Ownership
The Geographic elements in this list are not owned by this list. When this GeoList is deleted, the elements contained in it still exist. Geographic elements are usually owned by the client application, or by the MapData or DataProvider objects used with MapView.
Reference Type
GeoList is expected to be used as a value type. However, GeoList is a collection of raw pointers to instances of reference type. As such, care needs to be made when referencing this object's contents in multithreaded environments. For example, deletion in one thread can cause a dangling pointer in another thread.
BlackBerry 10.0.0
Public Functions Index
| GeoList () | |
| GeoList (GeoList const &src) | |
| ~GeoList () | |
| GeoList & | operator= (const GeoList &src) |
| BoundingBox | boundingBox () const |
| bool | add (Geographic *element) |
| void | add (const GeoList &list) |
| GeoList | find (const BoundingBox &boundingBox) const |
| Geographic * | geographic (const QString &id) const |
| GeoList | find (const QStringList &ids) const |
| bool | remove (const QString &id) |
| bool | clear () |
| QStringList | ids () const |
| QList< Geographic * > | toQList () const |
| bool | isEmpty () const |
| int | count () const |
Public Functions
Constructor.
BlackBerry 10.0.0
Copy Constructor.
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
BoundingBox
Gets the bounding box that contains all the elements in this list.
The bounding box surrounding this list of geographic elements.
BlackBerry 10.0.0
void
Copies all Geographic elements in the GeoList given as the parameter to this list.
| Parameters | |
|---|---|
| list |
The list to copy from. |
BlackBerry 10.0.0
GeoList
Gets all the Geographic elements within the given bounding box from this list.
BlackBerry 10.0.0
Geographic *
Gets the Geographic element with the given ID from this list.
NULL if the element was not found.
BlackBerry 10.0.0
GeoList
Gets all the Geographic elements with the given IDs from this list.
BlackBerry 10.0.0
bool
Removes the Geographic element with the given ID from this list.
Note: This does not free the memory pointed to by this pointer.
true if the element existed and was removed; otherwise, returns false.
BlackBerry 10.0.0
bool
Removes all Geographic elements from this list.
true if any changes occurred.
BlackBerry 10.0.0
QStringList
Retrieves a list of all the IDs within this list.
A collection of QString ids.
BlackBerry 10.0.0
QList< Geographic * >
Retrieves a list of all the Geographic elements within this list.
A collection of Geographic objects.
BlackBerry 10.0.0
bool
Determines if this list has any Geographic elements in it.
true if the number of Geographic elements in this list is zero, false otherwise.
BlackBerry 10.0.0
int
Retrieves the number of Geographic elements in this list.
The number of Geographic elements in this list.
BlackBerry 10.0.0