marble
#include <GeoDataContainer.h>
Protected Member Functions | |
GeoDataContainer (GeoDataContainerPrivate *priv) | |
bool | equals (const GeoDataContainer &other) const |
Protected Member Functions inherited from Marble::GeoDataFeature | |
GeoDataFeature (GeoDataFeaturePrivate *priv) | |
bool | equals (const GeoDataFeature &other) const |
Protected Member Functions inherited from Marble::GeoDataObject | |
virtual bool | equals (const GeoDataObject &other) const |
Detailed Description
A base class that can hold GeoDataFeatures.
GeoDataContainer is the base class for the GeoData container classes GeoDataFolder and GeoDataDocument. It is never instantiated by itself, but is always used as part of a derived class.
It is based on GeoDataFeature, and it only adds a QVector<GeodataFeature *> to it, making it a Feature that can hold other Features.
- See also
- GeoDataFolder
- GeoDataDocument
Definition at line 47 of file GeoDataContainer.h.
Constructor & Destructor Documentation
Marble::GeoDataContainer::GeoDataContainer | ( | ) |
Default constructor.
Definition at line 37 of file GeoDataContainer.cpp.
Marble::GeoDataContainer::GeoDataContainer | ( | const GeoDataContainer & | other | ) |
Definition at line 47 of file GeoDataContainer.cpp.
|
virtual |
Destruct the GeoDataContainer.
Definition at line 52 of file GeoDataContainer.cpp.
|
explicitprotected |
Definition at line 42 of file GeoDataContainer.cpp.
Member Function Documentation
void Marble::GeoDataContainer::append | ( | GeoDataFeature * | other | ) |
add an element
Definition at line 272 of file GeoDataContainer.cpp.
GeoDataFeature & Marble::GeoDataContainer::at | ( | int | pos | ) |
return the reference of the element at a specific position
Definition at line 291 of file GeoDataContainer.cpp.
const GeoDataFeature & Marble::GeoDataContainer::at | ( | int | pos | ) | const |
Definition at line 297 of file GeoDataContainer.cpp.
QVector< GeoDataFeature * >::Iterator Marble::GeoDataContainer::begin | ( | ) |
Definition at line 331 of file GeoDataContainer.cpp.
GeoDataFeature * Marble::GeoDataContainer::child | ( | int | i | ) |
returns the requested child item
Definition at line 239 of file GeoDataContainer.cpp.
const GeoDataFeature * Marble::GeoDataContainer::child | ( | int | i | ) | const |
returns the requested child item
Definition at line 244 of file GeoDataContainer.cpp.
int Marble::GeoDataContainer::childPosition | ( | const GeoDataFeature * | child | ) | const |
returns the position of an item in the list
Definition at line 252 of file GeoDataContainer.cpp.
void Marble::GeoDataContainer::clear | ( | ) |
Definition at line 324 of file GeoDataContainer.cpp.
QVector< GeoDataFeature * >::ConstIterator Marble::GeoDataContainer::constBegin | ( | ) | const |
Definition at line 341 of file GeoDataContainer.cpp.
QVector< GeoDataFeature * >::ConstIterator Marble::GeoDataContainer::constEnd | ( | ) | const |
Definition at line 346 of file GeoDataContainer.cpp.
QVector< GeoDataFeature * >::Iterator Marble::GeoDataContainer::end | ( | ) |
Definition at line 336 of file GeoDataContainer.cpp.
|
protected |
Definition at line 66 of file GeoDataContainer.cpp.
QVector< GeoDataFeature * > Marble::GeoDataContainer::featureList | ( | ) | const |
A convenience function that returns all features in this container.
- Returns
- A QVector of GeoDataFeature
- See also
- GeoDataFeature
Definition at line 231 of file GeoDataContainer.cpp.
GeoDataFeature & Marble::GeoDataContainer::first | ( | ) |
return the reference of the last element for convenience
Definition at line 313 of file GeoDataContainer.cpp.
const GeoDataFeature & Marble::GeoDataContainer::first | ( | ) | const |
Definition at line 319 of file GeoDataContainer.cpp.
QVector< GeoDataFolder * > Marble::GeoDataContainer::folderList | ( | ) | const |
A convenience function that returns all folders in this container.
- Returns
- A QVector of GeoDataFolder
- See also
- GeoDataFolder
Definition at line 197 of file GeoDataContainer.cpp.
void Marble::GeoDataContainer::insert | ( | GeoDataFeature * | other, |
int | index | ||
) |
Definition at line 265 of file GeoDataContainer.cpp.
GeoDataFeature & Marble::GeoDataContainer::last | ( | ) |
return the reference of the last element for convenience
Definition at line 302 of file GeoDataContainer.cpp.
const GeoDataFeature & Marble::GeoDataContainer::last | ( | ) | const |
Definition at line 308 of file GeoDataContainer.cpp.
GeoDataLatLonAltBox Marble::GeoDataContainer::latLonAltBox | ( | ) | const |
A convenience function that returns the LatLonAltBox of all placemarks in this container.
- Returns
- The GeoDataLatLonAltBox
- See also
- GeoDataLatLonAltBox
Definition at line 160 of file GeoDataContainer.cpp.
|
virtual |
Serialize the container to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataFeature.
Reimplemented in Marble::GeoDataDocument.
Definition at line 351 of file GeoDataContainer.cpp.
QVector< GeoDataPlacemark * > Marble::GeoDataContainer::placemarkList | ( | ) | const |
A convenience function that returns all placemarks in this container.
- Returns
- A QVector of GeoDataPlacemark
- See also
- GeoDataPlacemark
Definition at line 214 of file GeoDataContainer.cpp.
void Marble::GeoDataContainer::remove | ( | int | index | ) |
Definition at line 280 of file GeoDataContainer.cpp.
int Marble::GeoDataContainer::size | ( | ) | const |
size of the container
Definition at line 286 of file GeoDataContainer.cpp.
|
virtual |
Unserialize the container from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataFeature.
Reimplemented in Marble::GeoDataDocument.
Definition at line 367 of file GeoDataContainer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.