class ListIterator

# class ListIterator | Iterator for KJS::List objects. More...
Full name | `KJS::ListIterator`
Definition | `#include <types.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- ListIterator (const List &l)
- ListIterator& operator= (const ListIterator &iterator)
- ListIterator (const ListIterator &i)
- ~ListIterator ()
- ValueImp* operator-> () const
- Value operator* () const
- Value operator++ ()
- Value operator++ (int)
- Value operator-- ()
- Value operator-- (int)
- bool operator== (const ListIterator &it) const
- bool operator!= (const ListIterator &it) const

## Detailed Description

ListIterator (const List &l) | ### ListIterator

Construct an iterator that points to the first element of the list.

Parameters:

l | The list the iterator will operate on.

ListIterator& operator= (const ListIterator &iterator) | ### operator=

Assignment constructor.

ListIterator (const ListIterator &i) | ### ListIterator

Copy constructor.

~ListIterator () | ### ~ListIterator

ValueImp* operator-> () | ### operator->

[const]

Dereference the iterator.

Returns: A pointer to the element the iterator operates on.

Value operator* () | ### operator*

[const]

Value operator++ () | ### operator++

Postfix increment operator.

Returns: The element after the increment.

Value operator++ (int) | ### operator++

Prefix increment operator.

Value operator-- () | ### operator--

Postfix decrement operator.

Value operator-- (int) | ### operator--

Prefix decrement operator.

bool operator== (const ListIterator &it) | ### operator==

[const]

Compare the iterator with another one.

Returns: True if the two iterators operate on the same list element. False otherwise.

bool operator!= (const ListIterator &it) | ### operator!=

[const]

Check for inequality with another iterator.

Returns: True if the two iterators operate on different list elements.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:28 2003, using kdoc 2.0a54.