CrystalSpace

Public API Reference

csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::ConstIterator Class Reference

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

#include <csutil/hash.h>

List of all members.

Public Member Functions

 ConstIterator (const ConstIterator &o)
 Copy constructor.
bool HasNext () const
 Returns a boolean indicating whether or not the hash has more elements.
const T & Next ()
 Get the next element's value.
ConstIteratoroperator= (const ConstIterator &o)
 Assignment operator.
void Reset ()
 Move the iterator back to the first element.

Friends

class csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >

Detailed Description

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
class csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::ConstIterator

An const iterator class for the hash.

Definition at line 844 of file hash.h.


Constructor & Destructor Documentation

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::ConstIterator::ConstIterator ( const ConstIterator o  )  [inline]

Copy constructor.

Definition at line 871 of file hash.h.


Member Function Documentation

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

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

Definition at line 890 of file hash.h.

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

Get the next element's value.

Definition at line 896 of file hash.h.

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

Assignment operator.

Definition at line 879 of file hash.h.

template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
void csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::ConstIterator::Reset (  )  [inline]

Move the iterator back to the first element.

Definition at line 905 of file hash.h.


The documentation for this class was generated from the following file:

Generated for Crystal Space 1.4.1 by doxygen 1.7.1