version 1.24, 2006/11/08 22:24:00
|
version 1.25, 2008/11/12 21:27:05
|
|
|
// | // |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
| |
_HashTableIteratorBase _HashTableIteratorBase::operator++(int) |
void _HashTableIteratorBase::operator++() |
{ |
|
_HashTableIteratorBase tmp = *this; |
|
operator++(); |
|
return tmp; |
|
} |
|
|
|
_HashTableIteratorBase& _HashTableIteratorBase::operator++() |
|
{ | { |
// At the end? | // At the end? |
| |
if (!_bucket) | if (!_bucket) |
return *this; |
return; |
| |
// More buckets this chain? | // More buckets this chain? |
| |
if ((_bucket = _bucket->next)) | if ((_bucket = _bucket->next)) |
return *this; |
return; |
| |
// Find the next non-empty chain: | // Find the next non-empty chain: |
| |
|
|
_first++; | _first++; |
} | } |
| |
return *this; |
return; |
} | } |
| |
_HashTableIteratorBase::_HashTableIteratorBase( | _HashTableIteratorBase::_HashTableIteratorBase( |