Defined in file: hzTmplList.h

Generic iterator for the hzList class template

Constructors/Detructors

hzList::Iter*Iter(void)
hzList::Iter*Iter(OBJ x)
void~Iter(void)

Public Methods:

hzEcodeDelete(void)Delete the iterator's current element from the list. This operation will fail if the iterator is not the only one using the list's internal data area. In the event the deletion is successful, as the curent element then ceases to exist the current element is set to the next element in the list. The process calling delete on the iterator, should check if the deletion took place and if so, refrain from incrementing the iterator at the top of the iteration loop.
OBJ&Element(void)Return curent element
hzEcodeInsert(OBJ obj)bool bAfter, Insert an element into the actual list. By default this will be before the current position but if bAfter is set then the element will be placed after the current position.
voidSetDefault(OBJ df)
boolValid(void)

Overloaded operators:

voidoperator++(void)Increment iterator
voidoperator++(int)Increment iterator
hzList::Iter<OBJ>&operator=(hzList<OBJ>& sup)Make an iterator equal to the beginning of the supplied list
hzList::Iter<OBJ>&operator=(hzList::Iter& i)Make an iterator equal to another

Member Variables:

OBJdfltDefault (null) element
_hz_listitem<OBJ>*m_pCurrCurrent element
hzList::_list_ca*m_pHandlePointer to the content