class ListIterator

Iterator for KJS::List objects. More...

Full nameKJS::ListIterator
Definition#include <types.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

 ListIterator (const List &l)

ListIterator

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

Parameters:
lThe 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: dfaure on faure on Tue Apr 16 08:50:27 2002, using kdoc 2.0a53.