Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

DcmHashDictIterator Class Reference

iterator class for traversing a DcmHashDict More...

List of all members.

Public Member Functions

 DcmHashDictIterator ()
 default constructor
 DcmHashDictIterator (const DcmHashDict *d, OFBool atEnd=OFFalse)
 constructor, creates iterator to existing hash dictionary
 DcmHashDictIterator (const DcmHashDictIterator &i)
 copy constructor
DcmHashDictIteratoroperator= (const DcmHashDictIterator &i)
 copy assignment operator
OFBool operator== (const DcmHashDictIterator &x) const
 comparison equality
OFBool operator!= (const DcmHashDictIterator &x) const
 comparison non-equality
const DcmDictEntryoperator * () const
 dereferencing of iterator
DcmHashDictIteratoroperator++ ()
 pre-increment operator
DcmHashDictIterator operator++ (int)
 post-increment operator
 DcmHashDictIterator ()
 default constructor
 DcmHashDictIterator (const DcmHashDict *d, OFBool atEnd=OFFalse)
 constructor, creates iterator to existing hash dictionary
 DcmHashDictIterator (const DcmHashDictIterator &i)
 copy constructor
DcmHashDictIteratoroperator= (const DcmHashDictIterator &i)
 copy assignment operator
OFBool operator== (const DcmHashDictIterator &x) const
 comparison equality
OFBool operator!= (const DcmHashDictIterator &x) const
 comparison non-equality
const DcmDictEntryoperator * () const
 dereferencing of iterator
DcmHashDictIteratoroperator++ ()
 pre-increment operator
DcmHashDictIterator operator++ (int)
 post-increment operator

Private Member Functions

void init (const DcmHashDict *d, OFBool atEnd=OFFalse)
 initializes the iterator
void stepUp ()
 implements increment operator on hash dictionary
void init (const DcmHashDict *d, OFBool atEnd=OFFalse)
 initializes the iterator
void stepUp ()
 implements increment operator on hash dictionary

Private Attributes

const DcmHashDictdict
 pointer to the hash dictionary this iterator traverses
int hindex
 index of current bucket
OFBool iterating
 flag indicating if iter is currently valid
DcmDictEntryListIterator iter
 iterator for traversing a bucket in the hash table
const DcmHashDictdict
 pointer to the hash dictionary this iterator traverses


Detailed Description

iterator class for traversing a DcmHashDict

Definition at line 133 of file dchashdi.h.


Constructor & Destructor Documentation

DcmHashDictIterator::DcmHashDictIterator const DcmHashDict d,
OFBool  atEnd = OFFalse
[inline]
 

constructor, creates iterator to existing hash dictionary

Parameters:
d pointer to dictionary
atEnd if true, iterator points after last element of hash dictionary, otherwise iterator points to first element.

Definition at line 146 of file dchashdi.h.

DcmHashDictIterator::DcmHashDictIterator const DcmHashDict d,
OFBool  atEnd = OFFalse
[inline]
 

constructor, creates iterator to existing hash dictionary

Parameters:
d pointer to dictionary
atEnd if true, iterator points after last element of hash dictionary, otherwise iterator points to first element.

Definition at line 146 of file dchashdi.h.


Member Function Documentation

void DcmHashDictIterator::init const DcmHashDict d,
OFBool  atEnd = OFFalse
[private]
 

initializes the iterator

Parameters:
d pointer to hash dictionary, may be NULL
atEnd if true, iterator points after last element of hash dictionary, otherwise iterator points to first element.

void DcmHashDictIterator::init const DcmHashDict d,
OFBool  atEnd = OFFalse
[private]
 

initializes the iterator

Parameters:
d pointer to hash dictionary, may be NULL
atEnd if true, iterator points after last element of hash dictionary, otherwise iterator points to first element.


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


Generated on 8 Dec 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.9.1