csHash< T, K, KeyHandler >::GlobalIterator Class Reference
An iterator class for the hash. More...
#include <hash.h>
Inheritance diagram for csHash< T, K, KeyHandler >::GlobalIterator:

Public Methods | |
GlobalIterator (const Iterator &o) | |
Copy constructor. | |
GlobalIterator & | operator= (const GlobalIterator &o) |
Assignment operator. | |
bool | HasNext () const |
Returns a boolean indicating whether or not the hash has more elements. | |
const T & | Next () |
Get the next element's value. | |
const T & | Next (K &key) |
Get the next element's value and key. | |
void | DeleteNext () |
Delete the next element. | |
void | Reset () |
Move the iterator back to the first element. |
Detailed Description
template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
class csHash< T, K, KeyHandler >::GlobalIterator
An iterator class for the hash.
Definition at line 348 of file hash.h.
Constructor & Destructor Documentation
|
Copy constructor.
|
Member Function Documentation
|
Delete the next element.
Definition at line 424 of file hash.h. References csHash< T, K, KeyHandler >::Elements. |
|
Returns a boolean indicating whether or not the hash has more elements.
Definition at line 401 of file hash.h. References csHash< T, K, KeyHandler >::Elements, and csArray< csArray< Element > >::Length(). |
|
Get the next element's value and key.
Definition at line 417 of file hash.h. References csHash< T, K, KeyHandler >::Elements, and csHash< T, K, KeyHandler >::GlobalIterator::Next(). |
|
Get the next element's value.
Definition at line 408 of file hash.h. References csHash< T, K, KeyHandler >::Elements. Referenced by csHash< T, K, KeyHandler >::GlobalIterator::Next(). |
|
Assignment operator.
Definition at line 391 of file hash.h. References csHash< T, K, KeyHandler >::GlobalIterator::bucket, csHash< T, K, KeyHandler >::GlobalIterator::element, csHash< T, K, KeyHandler >::GlobalIterator::hash, and csHash< T, K, KeyHandler >::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.2.18