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: ASCIICType.h:45
bool operator!=(const HashTableConstKeysIterator< T, U, V > &a, const HashTableConstKeysIterator< T, U, V > &b)
Definition: HashIterators.h:173
bool operator==(const HashTableConstKeysIterator< T, U, V > &a, const HashTableConstKeysIterator< T, U, V > &b)
Definition: HashIterators.h:167
Definition: HashIterators.h:37
Values values()
Definition: HashIterators.h:54
const ValueType & operator*() const
Definition: HashIterators.h:47
HashTableConstIteratorAdapter & operator++()
Definition: HashIterators.h:50
HashTableConstKeysIterator< HashTableType, KeyType, MappedType > Keys
Definition: HashIterators.h:41
HashTableConstIteratorAdapter(const typename HashTableType::const_iterator &impl)
Definition: HashIterators.h:44
HashTableType::const_iterator m_impl
Definition: HashIterators.h:56
Keys keys()
Definition: HashIterators.h:53
const ValueType * get() const
Definition: HashIterators.h:46
const ValueType * operator->() const
Definition: HashIterators.h:48
HashTableConstValuesIterator< HashTableType, KeyType, MappedType > Values
Definition: HashIterators.h:42
HashTableType::const_iterator m_impl
Definition: HashTable.h:1091
const KeyType & operator*() const
Definition: HashIterators.h:94
HashTableConstKeysIterator & operator++()
Definition: HashIterators.h:97
HashTableConstKeysIterator(const ConstIterator &impl)
Definition: HashIterators.h:91
const KeyType * operator->() const
Definition: HashIterators.h:95
HashTableConstValuesIterator(const ConstIterator &impl)
Definition: HashIterators.h:108
const MappedType & operator*() const
Definition: HashIterators.h:111
const MappedType * operator->() const
Definition: HashIterators.h:112
HashTableConstValuesIterator & operator++()
Definition: HashIterators.h:114
Definition: HashIterators.h:59
HashTableValuesIterator< HashTableType, KeyType, MappedType > Values
Definition: HashIterators.h:64
HashTableKeysIterator< HashTableType, KeyType, MappedType > Keys
Definition: HashIterators.h:63
ValueType & operator*() const
Definition: HashIterators.h:69
HashTableType::iterator m_impl
Definition: HashIterators.h:83
Keys keys()
Definition: HashIterators.h:80
ValueType * operator->() const
Definition: HashIterators.h:70
HashTableIteratorAdapter & operator++()
Definition: HashIterators.h:72
ValueType * get() const
Definition: HashIterators.h:68
Values values()
Definition: HashIterators.h:81
HashTableIteratorAdapter(const typename HashTableType::iterator &impl)
Definition: HashIterators.h:66
Definition: HashTable.h:1094
Definition: HashIterators.h:120
HashTableKeysIterator & operator++()
Definition: HashIterators.h:132
HashTableKeysIterator(const Iterator &impl)
Definition: HashIterators.h:126
Definition: HashIterators.h:143
MappedType * operator->() const
Definition: HashIterators.h:153
HashTableValuesIterator & operator++()
Definition: HashIterators.h:155
HashTableValuesIterator(const Iterator &impl)
Definition: HashIterators.h:149
MappedType & operator*() const
Definition: HashIterators.h:152
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.