CrystalSpace

Public API Reference

csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator Class Reference

An const iterator class for the hash. More...

#include <csutil/hash.h>

List of all members.

Public Member Functions

void Advance ()
 Advance the iterator of one step.
 ConstGlobalIterator (const ConstGlobalIterator &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.
const csTuple2< T, K > NextTuple ()
 Return a tuple of the value and key.
ConstGlobalIteratoroperator= (const ConstGlobalIterator &o)
 Assignment operator.
void Reset ()
 Move the iterator back to the first element.

Protected Member Functions

 ConstGlobalIterator (const csHash< T, K > *hash0)

Friends

class csHash< T, K >


Detailed Description

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
class csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator

An const iterator class for the hash.

Definition at line 826 of file hash.h.


Constructor & Destructor Documentation

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::ConstGlobalIterator ( const ConstGlobalIterator o  )  [inline]

Copy constructor.

Definition at line 866 of file hash.h.


Member Function Documentation

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
void csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::Advance (  )  [inline]

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
bool csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::HasNext (  )  const [inline]

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

Definition at line 883 of file hash.h.

References csHash< T, K, ArrayMemoryAlloc >::Elements, and csArray< T, ElementHandler, MemoryAllocator, CapacityHandler >::GetSize().

Referenced by csSet< T, Allocator >::GlobalIterator::HasNext().

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
const T& csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::Next ( K &  key  )  [inline]

Get the next element's value and key.

Definition at line 918 of file hash.h.

References csHash< T, K, ArrayMemoryAlloc >::Elements, and csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::Next().

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
const T& csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::Next (  )  [inline]

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
const T& csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::NextNoAdvance ( K &  key  )  [inline]

Get the next element's value and key, don't move the iterator.

Definition at line 911 of file hash.h.

References csHash< T, K, ArrayMemoryAlloc >::Elements, and csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::NextNoAdvance().

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
const T& csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::NextNoAdvance (  )  [inline]

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
const csTuple2<T, K> csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::NextTuple (  )  [inline]

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
ConstGlobalIterator& csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::operator= ( const ConstGlobalIterator o  )  [inline]

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc>
void csHash< T, K, ArrayMemoryAlloc >::ConstGlobalIterator::Reset (  )  [inline]

Move the iterator back to the first element.

Definition at line 934 of file hash.h.


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