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:
| hzEcode | Delete | (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 |
| hzEcode | Insert | (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. |
| void | SetDefault | (OBJ df) | |
| bool | Valid | (void) |
Overloaded operators:
| void | operator++ | (void) | Increment iterator |
| void | operator++ | (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:
| OBJ | dflt | Default (null) element | |
| _hz_listitem<OBJ>* | m_pCurr | Current element | |
| hzList::_list_ca* | m_pHandle | Pointer to the content |