WTF
HashIterators.h
Go to the documentation of this file.
32 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableConstKeysIterator;
33 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableConstValuesIterator;
34 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableKeysIterator;
35 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableValuesIterator;
37 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableConstIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > {
44 HashTableConstIteratorAdapter(const typename HashTableType::const_iterator& impl) : m_impl(impl) {}
59 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > {
86 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableConstKeysIterator {
88 typedef HashTableConstIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > ConstIterator;
103 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableConstValuesIterator {
105 typedef HashTableConstIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > ConstIterator;
120 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableKeysIterator {
123 typedef HashTableConstIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > ConstIterator;
143 template<typename HashTableType, typename KeyType, typename MappedType> struct HashTableValuesIterator {
146 typedef HashTableConstIteratorAdapter<HashTableType, std::pair<KeyType, MappedType> > ConstIterator;
167 inline bool operator==(const HashTableConstKeysIterator<T, U, V>& a, const HashTableConstKeysIterator<T, U, V>& b)
173 inline bool operator!=(const HashTableConstKeysIterator<T, U, V>& a, const HashTableConstKeysIterator<T, U, V>& b)
179 inline bool operator==(const HashTableConstValuesIterator<T, U, V>& a, const HashTableConstValuesIterator<T, U, V>& b)
185 inline bool operator!=(const HashTableConstValuesIterator<T, U, V>& a, const HashTableConstValuesIterator<T, U, V>& b)
191 inline bool operator==(const HashTableKeysIterator<T, U, V>& a, const HashTableKeysIterator<T, U, V>& b)
197 inline bool operator!=(const HashTableKeysIterator<T, U, V>& a, const HashTableKeysIterator<T, U, V>& b)
203 inline bool operator==(const HashTableValuesIterator<T, U, V>& a, const HashTableValuesIterator<T, U, V>& b)
209 inline bool operator!=(const HashTableValuesIterator<T, U, V>& a, const HashTableValuesIterator<T, U, V>& b)
Definition: HashIterators.h:35
HashTableKeysIterator(const Iterator &impl)
Definition: HashIterators.h:126
const MappedType & operator*() const
Definition: HashIterators.h:111
HashTableIteratorAdapter & operator++()
Definition: HashIterators.h:72
HashTableKeysIterator & operator++()
Definition: HashIterators.h:132
Keys keys()
Definition: HashIterators.h:53
HashTableConstValuesIterator & operator++()
Definition: HashIterators.h:114
Keys keys()
Definition: HashIterators.h:80
HashTableConstValuesIterator< HashTableType, KeyType, MappedType > Values
Definition: HashIterators.h:42
const ValueType * operator->() const
Definition: HashIterators.h:48
Values values()
Definition: HashIterators.h:81
HashTableType::const_iterator m_impl
Definition: HashIterators.h:56
HashTableValuesIterator & operator++()
Definition: HashIterators.h:155
HashTableIteratorAdapter(const typename HashTableType::iterator &impl)
Definition: HashIterators.h:66
const KeyType & operator*() const
Definition: HashIterators.h:94
MappedType & operator*() const
Definition: HashIterators.h:152
HashTableConstValuesIterator(const ConstIterator &impl)
Definition: HashIterators.h:108
HashTableValuesIterator< HashTableType, KeyType, MappedType > Values
Definition: HashIterators.h:64
HashTableType::const_iterator m_impl
Definition: HashTable.h:1091
MappedType * operator->() const
Definition: HashIterators.h:153
ValueType & operator*() const
Definition: HashIterators.h:69
HashTableConstIteratorAdapter & operator++()
Definition: HashIterators.h:50
const ValueType * get() const
Definition: HashIterators.h:46
const MappedType * operator->() const
Definition: HashIterators.h:112
HashTableConstKeysIterator< HashTableType, KeyType, MappedType > Keys
Definition: HashIterators.h:41
Definition: HashIterators.h:59
bool operator==(const HashTableConstKeysIterator< T, U, V > &a, const HashTableConstKeysIterator< T, U, V > &b)
Definition: HashIterators.h:167
const ValueType & operator*() const
Definition: HashIterators.h:47
HashTableKeysIterator< HashTableType, KeyType, MappedType > Keys
Definition: HashIterators.h:63
Definition: HashIterators.h:37
ValueType * get() const
Definition: HashIterators.h:68
HashTableValuesIterator(const Iterator &impl)
Definition: HashIterators.h:149
const KeyType * operator->() const
Definition: HashIterators.h:95
Definition: HashTable.h:1094
bool operator!=(const HashTableConstKeysIterator< T, U, V > &a, const HashTableConstKeysIterator< T, U, V > &b)
Definition: HashIterators.h:173
HashTableConstKeysIterator & operator++()
Definition: HashIterators.h:97
HashTableConstIteratorAdapter(const typename HashTableType::const_iterator &impl)
Definition: HashIterators.h:44
ValueType * operator->() const
Definition: HashIterators.h:70
HashTableConstKeysIterator(const ConstIterator &impl)
Definition: HashIterators.h:91
HashTableType::iterator m_impl
Definition: HashIterators.h:83
Values values()
Definition: HashIterators.h:54
Definition: HashIterators.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.