csHash< T, K >::GlobalIterator Class Reference
An iterator class for the hash. More...
#include <csutil/hash.h>
Public Member Functions | |
| void | Advance () |
| Advance the iterator of one step. | |
| GlobalIterator (const Iterator &o) | |
| Copy constructor. | |
| bool | HasNext () const |
| Returns a boolean indicating whether or not the hash has more elements. | |
| const T & | Next (K &key) |
| Get the next element's value and key. | |
| const T & | Next () |
| Get the next element's value. | |
| const T & | NextNoAdvance (K &key) |
| Get the next element's value and key, don't move the iterator. | |
| const T & | NextNoAdvance () |
| Get the next element's value, don't move the iterator. | |
| GlobalIterator & | operator= (const GlobalIterator &o) |
| Assignment operator. | |
| void | Reset () |
| Move the iterator back to the first element. | |
Protected Member Functions | |
| GlobalIterator (const csHash< T, K > *hash0) | |
Friends | |
| class | csHash< T, K > |
Detailed Description
template<class T, class K = unsigned int>
class csHash< T, K >::GlobalIterator
An iterator class for the hash.
Definition at line 629 of file hash.h.
Constructor & Destructor Documentation
|
||||||||||
|
Copy constructor.
|
Member Function Documentation
|
|||||||||
|
Advance the iterator of one step.
|
|
|||||||||
|
Returns a boolean indicating whether or not the hash has more elements.
|
|
||||||||||
|
Get the next element's value and key.
Definition at line 717 of file hash.h. References csHash< T, K >::Elements. |
|
|||||||||
|
Get the next element's value.
|
|
||||||||||
|
Get the next element's value and key, don't move the iterator.
Definition at line 710 of file hash.h. References csHash< T, K >::Elements. |
|
|||||||||
|
Get the next element's value, don't move the iterator.
Definition at line 696 of file hash.h. References csHash< T, K >::Elements. |
|
||||||||||
|
Assignment operator.
Definition at line 672 of file hash.h. References csHash< T, K >::GlobalIterator::bucket, csHash< T, K >::GlobalIterator::element, csHash< T, K >::GlobalIterator::hash, and csHash< T, K >::GlobalIterator::size. |
|
|||||||||
|
Move the iterator back to the first element.
|
The documentation for this class was generated from the following file:
- csutil/hash.h
Generated for Crystal Space by doxygen 1.4.6
