An iterator class for the csHash class.
More...
#include <csutil/hash.h>
List of all members.
Public Member Functions |
void | Advance () |
| Advance the iterator of one step.
|
| GlobalIterator () |
| Empty constructor.
|
| GlobalIterator (const GlobalIterator &o) |
| Copy constructor.
|
bool | HasNext () const |
| Returns a boolean indicating whether or not the hash has more elements.
|
T & | Next () |
| Get the next element's value.
|
T & | Next (K &key) |
| Get the next element's value and key.
|
T & | NextNoAdvance () |
| Get the next element's value, don't move the iterator.
|
T & | NextNoAdvance (K &key) |
| Get the next element's value and key, 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] |
Empty constructor.
Definition at line 617 of file hash.h.
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] |
Copy constructor.
Definition at line 620 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> >>
Advance the iterator of one step.
Definition at line 644 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Returns a boolean indicating whether or not the hash has more elements.
Definition at line 637 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Get the next element's value.
Definition at line 657 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Get the next element's value and key.
Definition at line 672 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Get the next element's value, don't move the iterator.
Definition at line 651 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Get the next element's value and key, don't move the iterator.
Definition at line 665 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Return a tuple of the value and key.
Definition at line 679 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Assignment operator.
Definition at line 627 of file hash.h.
template<class T, class K = unsigned int, class ArrayMemoryAlloc = CS::Memory::AllocatorMalloc, class ArrayElementHandler = csArrayElementHandler< CS::Container::HashElement<T, K> >>
Move the iterator back to the first element.
Definition at line 688 of file hash.h.
The documentation for this class was generated from the following file: