Marble::GeoDataStyleMap

Search for usage in LXR

Marble::GeoDataStyleMap Class Reference

#include <GeoDataStyleMap.h>

Inheritance diagram for Marble::GeoDataStyleMap:

Public Member Functions

 GeoDataStyleMap (const GeoDataStyleMap &other)
 
QString lastKey () const
 
const char * nodeType () const override
 
bool operator!= (const GeoDataStyleMap &other) const
 
GeoDataStyleMapoperator= (const GeoDataStyleMap &other)
 
bool operator== (const GeoDataStyleMap &other) const
 
void pack (QDataStream &stream) const override
 
void setLastKey (const QString &key)
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataStyleSelector
bool operator!= (const GeoDataStyleSelector &other) const
 
GeoDataStyleSelectoroperator= (const GeoDataStyleSelector &other)
 
bool operator== (const GeoDataStyleSelector &other) const
 
void pack (QDataStream &stream) const override
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject (const GeoDataObject &)
 
QString id () const
 
GeoDataObjectoperator= (const GeoDataObject &)
 
void pack (QDataStream &stream) const override
 
GeoDataObjectparent ()
 
const GeoDataObjectparent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (const QString &value)
 
void setParent (GeoDataObject *parent)
 
void setTargetId (const QString &value)
 
QString targetId () const
 
void unpack (QDataStream &steam) override
 
- Public Member Functions inherited from Marble::GeoNode
- Public Member Functions inherited from QMap< QString, QString >
 QMap (const QMap< Key, T > &other)
 
 QMap (const std::map< Key, T > &other)
 
 QMap (QMap< Key, T > &&other)
 
 QMap (std::initializer_list< std::pair< Key, T > > list)
 
 QMap (std::map< Key, T > &&other)
 
auto asKeyValueRange () &
 
auto asKeyValueRange () &&
 
auto asKeyValueRange () const &&const
 
auto asKeyValueRange () const &const
 
iterator begin ()
 
const_iterator begin () const const
 
const_iterator cbegin () const const
 
const_iterator cend () const const
 
void clear ()
 
const_iterator constBegin () const const
 
const_iterator constEnd () const const
 
const_iterator constFind (const Key &key) const const
 
const_key_value_iterator constKeyValueBegin () const const
 
const_key_value_iterator constKeyValueEnd () const const
 
bool contains (const Key &key) const const
 
size_type count () const const
 
size_type count (const Key &key) const const
 
bool empty () const const
 
iterator end ()
 
const_iterator end () const const
 
QPair< iterator, iterator > equal_range (const Key &key)
 
QPair< const_iterator, const_iterator > equal_range (const Key &key) const const
 
iterator erase (const_iterator first, const_iterator last)
 
iterator erase (const_iterator pos)
 
qsizetype erase_if (QMap< Key, T > &map, Predicate pred)
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const const
 
T & first ()
 
const T & first () const const
 
const Key & firstKey () const const
 
iterator insert (const Key &key, const T &value)
 
void insert (const QMap< Key, T > &map)
 
iterator insert (const_iterator pos, const Key &key, const T &value)
 
void insert (QMap< Key, T > &&map)
 
bool isEmpty () const const
 
Key key (const T &value, const Key &defaultKey) const const
 
key_iterator keyBegin () const const
 
key_iterator keyEnd () const const
 
QList< Key > keys () const const
 
QList< Key > keys (const T &value) const const
 
key_value_iterator keyValueBegin ()
 
const_key_value_iterator keyValueBegin () const const
 
key_value_iterator keyValueEnd ()
 
const_key_value_iterator keyValueEnd () const const
 
T & last ()
 
const T & last () const const
 
const Key & lastKey () const const
 
iterator lowerBound (const Key &key)
 
const_iterator lowerBound (const Key &key) const const
 
bool operator!= (const QMap< Key, T > &lhs, const QMap< Key, T > &rhs)
 
QDataStreamoperator<< (QDataStream &out, const QMap< Key, T > &map)
 
QMap< Key, T > & operator= (const QMap< Key, T > &other)
 
QMap< Key, T > & operator= (QMap< Key, T > &&other)
 
bool operator== (const QMap< Key, T > &lhs, const QMap< Key, T > &rhs)
 
QDataStreamoperator>> (QDataStream &in, QMap< Key, T > &map)
 
T & operator[] (const Key &key)
 
operator[] (const Key &key) const const
 
size_type remove (const Key &key)
 
size_type removeIf (Predicate pred)
 
size_type size () const const
 
void swap (QMap< Key, T > &other)
 
take (const Key &key)
 
std::map< Key, T > toStdMap () &&
 
std::map< Key, T > toStdMap () const &const
 
iterator upperBound (const Key &key)
 
const_iterator upperBound (const Key &key) const const
 
value (const Key &key, const T &defaultValue) const const
 
QList< T > values () const const
 

Additional Inherited Members

- Public Types inherited from QMap< QString, QString >
typedef  const_key_value_iterator
 
typedef  ConstIterator
 
typedef  difference_type
 
typedef  Iterator
 
typedef  key_type
 
typedef  key_value_iterator
 
typedef  mapped_type
 
typedef  size_type
 
- Protected Member Functions inherited from Marble::GeoDataStyleSelector
 GeoDataStyleSelector (const GeoDataStyleSelector &other)
 
- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

Detailed Description

a class to map different styles to one style

A GeoDataStyleMap connects styles for highlighted and normal context. Besides GeoDataStyleSelector it derives from QMap<QString, QString>.

See also
GeoDataStyle
GeoDataStyleSelector

Definition at line 30 of file GeoDataStyleMap.h.

Constructor & Destructor Documentation

◆ GeoDataStyleMap() [1/2]

Marble::GeoDataStyleMap::GeoDataStyleMap ( )

Definition at line 20 of file GeoDataStyleMap.cpp.

◆ GeoDataStyleMap() [2/2]

Marble::GeoDataStyleMap::GeoDataStyleMap ( const GeoDataStyleMap & other)

Definition at line 25 of file GeoDataStyleMap.cpp.

◆ ~GeoDataStyleMap()

Marble::GeoDataStyleMap::~GeoDataStyleMap ( )
override

Definition at line 33 of file GeoDataStyleMap.cpp.

Member Function Documentation

◆ lastKey()

QString Marble::GeoDataStyleMap::lastKey ( ) const

return the last key

Definition at line 43 of file GeoDataStyleMap.cpp.

◆ nodeType()

const char * Marble::GeoDataStyleMap::nodeType ( ) const
overridevirtual

Provides type information for downcasting a GeoNode.

Implements Marble::GeoNode.

Definition at line 38 of file GeoDataStyleMap.cpp.

◆ operator!=()

bool Marble::GeoDataStyleMap::operator!= ( const GeoDataStyleMap & other) const

Definition at line 70 of file GeoDataStyleMap.cpp.

◆ operator=()

GeoDataStyleMap & Marble::GeoDataStyleMap::operator= ( const GeoDataStyleMap & other)

assignment operator

Parameters
otherthe styleMap which gets duplicated.

Definition at line 53 of file GeoDataStyleMap.cpp.

◆ operator==()

bool Marble::GeoDataStyleMap::operator== ( const GeoDataStyleMap & other) const

Definition at line 61 of file GeoDataStyleMap.cpp.

◆ pack()

void Marble::GeoDataStyleMap::pack ( QDataStream & stream) const
override

Serialize the stylemap to a stream.

Parameters
streamthe stream

Definition at line 75 of file GeoDataStyleMap.cpp.

◆ setLastKey()

void Marble::GeoDataStyleMap::setLastKey ( const QString & key)

Set the last key this property is needed to set an entry in the kml parser after the parser has set the last key, it will read the value and add both to this map.

Parameters
keythe last key

Definition at line 48 of file GeoDataStyleMap.cpp.

◆ unpack()

void Marble::GeoDataStyleMap::unpack ( QDataStream & stream)
override

Unserialize the stylemap from a stream.

Parameters
streamthe stream

Definition at line 82 of file GeoDataStyleMap.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.