An STL-conforming iterator. More...
Public Member Functions | |
iterator () | |
Construct null (end iterator) More... | |
iterator (const iteratorEnd &unused) | |
Construct end iterator. More... | |
T & | operator* () |
Return referenced hash value. More... | |
T & | operator() () |
const T & | operator* () const |
Return referenced hash value. More... | |
const T & | operator() () const |
iterator & | operator++ () |
iterator | operator++ (int) |
Public Member Functions inherited from HashTable< T, Key, Hash >::iteratorBase | |
const Key & | key () const |
Return the Key corresponding to the iterator. More... | |
bool | operator== (const iteratorBase &) const |
Compare hashedEntry element pointers. More... | |
bool | operator!= (const iteratorBase &) const |
bool | operator== (const iteratorEnd &unused) const |
Compare hashedEntry to iteratorEnd pointers. More... | |
bool | operator!= (const iteratorEnd &unused) const |
Friends | |
class | HashTable |
Additional Inherited Members | |
Protected Member Functions inherited from HashTable< T, Key, Hash >::iteratorBase | |
iteratorBase () | |
Construct null - equivalent to an 'end' position. More... | |
iteratorBase (const HashTable< T, Key, Hash > *curHashTable) | |
Construct from hash table, moving to its 'begin' position. More... | |
iteratorBase (const HashTable< T, Key, Hash > *curHashTable, const hashedEntry *elmt, const label hashIndex) | |
Construct from hash table, element and hash index. More... | |
void | increment () |
Increment to the next position. More... | |
bool | erase () |
Erase the HashTable element at the current position. More... | |
T & | object () |
Return non-const access to referenced object. More... | |
const T & | cobject () const |
Return const access to referenced object. More... | |
An STL-conforming iterator.
Definition at line 426 of file HashTable.H.
|
inline |
Construct null (end iterator)
Definition at line 319 of file HashTableI.H.
Referenced by HashTable< Pair< autoPtr< interfaceCompositionModel > >, phasePairKey, phasePairKey::hash >::begin(), and HashTable< T, Key, Hash >::iterator::iterator().
|
inline |
Construct end iterator.
Definition at line 327 of file HashTableI.H.
References HashTable< T, Key, Hash >::iterator::iterator(), HashTable< T, Key, Hash >::iteratorBase::iteratorBase(), and Foam::T().
Return referenced hash value.
Definition at line 359 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::object(), and Foam::T().
Definition at line 367 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::object(), and Foam::T().
Return referenced hash value.
Definition at line 375 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::cobject(), and Foam::T().
Definition at line 383 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::cobject().
|
inline |
Definition at line 392 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::increment().
|
inline |
Definition at line 401 of file HashTableI.H.
References HashTable< T, Key, Hash >::iteratorBase::increment().
|
friend |
Definition at line 430 of file HashTable.H.