[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/data
Dennis Nienhüser
earthwings at gentoo.org
Fri Aug 27 14:35:53 CEST 2010
SVN commit 1168790 by nienhueser:
Add a contains(key) method.
M +6 -0 GeoDataExtendedData.cpp
M +5 -0 GeoDataExtendedData.h
--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.cpp #1168789:1168790
@@ -78,6 +78,12 @@
{
return d->hash.empty();
}
+
+bool GeoDataExtendedData::contains( const QString &key ) const
+{
+ return d->hash.contains( key );
+}
+
void GeoDataExtendedData::pack( QDataStream& stream ) const
{
GeoDataObject::pack( stream );
--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.h #1168789:1168790
@@ -77,6 +77,11 @@
bool isEmpty( ) const;
/**
+ * @brief Returns true if there exists a value for the given key
+ */
+ bool contains( const QString &key ) const;
+
+ /**
* @brief return value of GeoDataExtendedData object associated with the given @p key as a modifiable reference
*/
GeoDataData& valueRef( const QString& key ) const;
More information about the Marble-commits
mailing list