LDK::Hash< Key, Data, Alloc >::ConstIterator Class Reference

Allows iteration over a const Hash. More...

#include <LDK/Hash.h>

Collaboration diagram for LDK::Hash< Key, Data, Alloc >::ConstIterator:

Collaboration graph
[legend]

Public Member Functions

 ConstIterator (const Hash *ht=NULL, size_t index=0)
 ConstIterator (const ConstIterator &rhs)
 Copy constructor.
ConstIteratoroperator= (const ConstIterator &rhs)
 Assignment operator.
bool operator== (const ConstIterator &rhs) const
 Equals operator.
bool operator!= (const ConstIterator &rhs) const
 Not equals operator.
const Pairoperator * ()
 De-reference operator to make the iterator somewhat resemble a pointer.
size_t index () const
 The index this iterator refers to.
ConstIteratoroperator++ ()
 Prefix increment operator.
ConstIteratoroperator++ (int junk)
 Postfix increment operator.
ConstIteratoroperator-- ()
 Prefix decrement operator.
ConstIteratoroperator-- (int)
 Postfix decrement operator.

Friends

class Hash

Detailed Description

template<class Key, class Data, template< class > class Alloc = Allocator>
class LDK::Hash< Key, Data, Alloc >::ConstIterator

Supports both prefix and postfix forms of increment and decrement operators. Behaves much like an STL const_iterator.

Definition at line 418 of file Hash.h.


Constructor & Destructor Documentation

template<class Key, class Data, template< class > class Alloc = Allocator>
LDK::Hash< Key, Data, Alloc >::ConstIterator::ConstIterator ( const Hash ht = NULL,
size_t  index = 0 
) [inline]

Constructor.

Parameters:
ht The Hash table this iterator belongs to.
index The index of the element this iterator referes to.

Definition at line 429 of file Hash.h.


The documentation for this class was generated from the following file:
Generated on Fri Aug 17 18:32:27 2007 for LDK by  doxygen 1.5.1