CrystalSpace

Public API Reference

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

csHash::GlobalIterator Class Template Reference

An iterator class for the hash. More...

#include <hash.h>

List of all members.

Public Methods

bool HasNext () const
 Returns a boolean indicating whether or not the hash has more elements. More...

const T & Next ()
 Get the next element's value. More...

const T & Next (K &key)
 Get the next element's value and key. More...

void DeleteNext ()
 Delete the next element. More...

void Return ()
 Move the iterator back to the first element. More...


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 307 of file hash.h.


Member Function Documentation

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
void csHash< T, K, KeyHandler >::GlobalIterator::DeleteNext   [inline]
 

Delete the next element.

Definition at line 369 of file hash.h.

References csArray< csArray< Element > >::DeleteIndex, and csHash::Elements.

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
bool csHash< T, K, KeyHandler >::GlobalIterator::HasNext   const [inline]
 

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

Definition at line 346 of file hash.h.

References csHash::Elements, and csArray< csArray< Element > >::Length.

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
const T& csHash< T, K, KeyHandler >::GlobalIterator::Next K &    key [inline]
 

Get the next element's value and key.

Definition at line 362 of file hash.h.

References csHash::Elements.

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
const T& csHash< T, K, KeyHandler >::GlobalIterator::Next   [inline]
 

Get the next element's value.

Definition at line 353 of file hash.h.

References csHash::Elements.

template<class T, class K = uint32, class KeyHandler = csIntegralHashKeyHandler<K>>
void csHash< T, K, KeyHandler >::GlobalIterator::Return   [inline]
 

Move the iterator back to the first element.

Definition at line 375 of file hash.h.


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