ug4
|
this iterator is used by the hash class to provide access to the elements of a given key More...
#include <hash_iterator.h>
Public Types | |
typedef size_t | difference_type |
typedef TEntry | entry_t |
typedef std::forward_iterator_tag | iterator_category |
typedef TKey | key_t |
typedef TValue * | pointer |
typedef TValue & | reference |
typedef hash_iterator | this_type |
typedef TValue | value_t |
typedef TValue | value_type |
Public Member Functions | |
hash_iterator () | |
hash_iterator (const key_t &key, const entry_t *entries, size_t entryInd) | |
bool | operator!= (const this_type &iter) const |
value_type & | operator* () |
this_type | operator++ () |
this_type | operator++ (int unused) |
bool | operator== (const this_type &iter) const |
Private Member Functions | |
bool | equal (const this_type &other) const |
void | increment () |
Private Attributes | |
const entry_t * | m_entries |
size_t | m_entryInd |
key_t | m_key |
Static Private Attributes | |
static const size_t | s_invalidIndex = -1 |
marks an index as invalid More... | |
this iterator is used by the hash class to provide access to the elements of a given key
typedef size_t ug::hash_iterator< TKey, TValue, TEntry >::difference_type |
typedef TEntry ug::hash_iterator< TKey, TValue, TEntry >::entry_t |
typedef std::forward_iterator_tag ug::hash_iterator< TKey, TValue, TEntry >::iterator_category |
typedef TKey ug::hash_iterator< TKey, TValue, TEntry >::key_t |
typedef TValue* ug::hash_iterator< TKey, TValue, TEntry >::pointer |
typedef TValue& ug::hash_iterator< TKey, TValue, TEntry >::reference |
typedef hash_iterator ug::hash_iterator< TKey, TValue, TEntry >::this_type |
typedef TValue ug::hash_iterator< TKey, TValue, TEntry >::value_t |
typedef TValue ug::hash_iterator< TKey, TValue, TEntry >::value_type |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
References ug::hash_iterator< TKey, TValue, TEntry >::m_entries, ug::hash_iterator< TKey, TValue, TEntry >::m_entryInd, ug::hash_iterator< TKey, TValue, TEntry >::m_key, and ug::hash_iterator< TKey, TValue, TEntry >::s_invalidIndex.
Referenced by ug::hash_iterator< TKey, TValue, TEntry >::operator++().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
Referenced by ug::hash_iterator< TKey, TValue, TEntry >::increment().
|
staticprivate |
marks an index as invalid
Referenced by ug::hash_iterator< TKey, TValue, TEntry >::increment(), and ug::hash_iterator< TKey, TValue, TEntry >::operator*().