43 template <
class Key,
class T>
class Map 46 #ifndef DO_NOT_DOCUMENT 47 #ifdef WANT_CLASS_INSTANTIATION_OF_MAP 56 typedef typename std::map<class Key, class T>::iterator
Iterator;
57 typedef typename std::map<class Key, class T>::const_iterator
ConstIterator;
59 typedef typename std::map<Key, T>::iterator
Iterator;
91 ConstIterator
begin()
const;
103 ConstIterator
end()
const;
122 unsigned int size()
const;
134 Iterator
find(
const Key &key);
139 ConstIterator
find(
const Key &key)
const;
144 bool contains(
const Key &key)
const;
186 #ifndef DO_NOT_DOCUMENT 187 template <
class KeyP,
class TP>
class MapPrivate;
188 MapPrivate<Key, T> *d;
Iterator begin()
Returns an STL style iterator to the beginning of the map.
std::map< Key, T >::const_iterator ConstIterator
Definition: tmap.h:60
Map< Key, T > & insert(const Key &key, const T &value)
Inserts value under key in the map.
bool contains(const Key &key) const
Returns true if the map contains an instance of key.
virtual ~Map()
Destroys this instance of the Map.
Map()
Constructs an empty Map.
A generic, implicitly shared map.
Definition: tmap.h:43
Map< Key, T > & erase(Iterator it)
Erase the item at it from the list.
Iterator end()
Returns an STL style iterator to the end of the map.
const T & operator[](const Key &key) const
Returns a reference to the value associated with key.
bool isEmpty() const
Returns true if the map is empty.
Map< Key, T > & clear()
Removes all of the elements from elements from the map.
A namespace for all TagLib related classes and functions.
Definition: aifffile.h:33
Iterator find(const Key &key)
Find the first occurrence of key.
unsigned int size() const
The number of elements in the map.
Map< Key, T > & operator=(const Map< Key, T > &m)
Make a shallow, implicitly shared, copy of m.
std::map< Key, T >::iterator Iterator
Definition: tmap.h:59