CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csHash< T, K, KeyHandler >::Iterator Class Reference

An iterator class for the hash. More...

#include <csutil/hash.h>

Inheritance diagram for csHash< T, K, KeyHandler >::Iterator:

csSet< T, KeyHandler >::Iterator List of all members.

Public Member Functions

 Iterator (const Iterator &o)
 Copy constructor.
Iteratoroperator= (const Iterator &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.
void Reset ()
 Move the iterator back to the first element.

Detailed Description

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
class csHash< T, K, KeyHandler >::Iterator

An iterator class for the hash.

Definition at line 378 of file hash.h.


Constructor & Destructor Documentation

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
csHash< T, K, KeyHandler >::Iterator::Iterator const Iterator o  )  [inline]
 

Copy constructor.

Definition at line 403 of file hash.h.


Member Function Documentation

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
bool csHash< T, K, KeyHandler >::Iterator::HasNext  )  const [inline]
 

Returns a boolean indicating whether or not the hash has more elements.

Definition at line 422 of file hash.h.

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
const T& csHash< T, K, KeyHandler >::Iterator::Next  )  [inline]
 

Get the next element's value.

Definition at line 428 of file hash.h.

References csHash< T, K, KeyHandler >::Elements.

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
Iterator& csHash< T, K, KeyHandler >::Iterator::operator= const Iterator o  )  [inline]
 

Assignment operator.

Definition at line 411 of file hash.h.

References csHash< T, K, KeyHandler >::Iterator::bucket, csHash< T, K, KeyHandler >::Iterator::element, csHash< T, K, KeyHandler >::Iterator::hash, csHash< T, K, KeyHandler >::Iterator::key, and csHash< T, K, KeyHandler >::Iterator::size.

template<class T, class K = unsigned int, class KeyHandler = csIntegralHashKeyHandler<K>>
void csHash< T, K, KeyHandler >::Iterator::Reset  )  [inline]
 

Move the iterator back to the first element.

Definition at line 437 of file hash.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1