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 &list)

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

Parameters:

ListIterator&  operator= (const ListIterator &iterator)

Assignment constructor.

 ListIterator (const ListIterator &i) : node(i.node)

Copy constructor.

KJSO*  operator-> ()

[const]

Dereference the iterator.

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

KJSO  operator* ()

[const]

KJSO  operator++ ()

Postfix increment operator.

Returns: The element after the increment.

KJSO  operator++ (int)

Prefix increment operator.

KJSO  operator-- ()

Postfix decrement operator.

KJSO  operator-- (int)

Prefix decrement operator.

bool  operator== (const ListIterator &it)

[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)

[const]

Check for inequality with another iterator.

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


Generated by: baudens@ke.mandrakesoft.com on Thu Oct 26 17:36:53 2000, using kdoc 2.0a40.