csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator Class Reference
An iterator class for the csHash class. More...
#include <csutil/hash.h>
Public Member Functions | |
void | Advance () |
Advance the iterator of one step. | |
GlobalIterator (const GlobalIterator &o) | |
Copy constructor. | |
GlobalIterator () | |
Empty constructor. | |
bool | HasNext () const |
Returns a boolean indicating whether or not the hash has more elements. | |
T & | Next (K &key) |
Get the next element's value and key. | |
T & | Next () |
Get the next element's value. | |
T & | NextNoAdvance (K &key) |
Get the next element's value and key, don't move the iterator. | |
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. | |
GlobalIterator & | operator= (const GlobalIterator &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 >::GlobalIterator
An iterator class for the csHash class.
Definition at line 576 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 >::GlobalIterator::GlobalIterator | ( | ) | [inline] |
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 >::GlobalIterator::GlobalIterator | ( | const GlobalIterator & | o | ) | [inline] |
Member Function Documentation
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 >::GlobalIterator::Advance | ( | ) | [inline] |
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 >::GlobalIterator::HasNext | ( | ) | const [inline] |
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
T& csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator::Next | ( | K & | key | ) | [inline] |
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
T& csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator::Next | ( | ) | [inline] |
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
T& csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator::NextNoAdvance | ( | K & | key | ) | [inline] |
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
T& csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator::NextNoAdvance | ( | ) | [inline] |
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
GlobalIterator& csHash< T, K, ArrayMemoryAlloc, ArrayElementHandler >::GlobalIterator::operator= | ( | const GlobalIterator & | o | ) | [inline] |
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 >::GlobalIterator::Reset | ( | ) | [inline] |
The documentation for this class was generated from the following file:
- csutil/hash.h
Generated for Crystal Space 2.0 by doxygen 1.6.1