Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KJS::ListIterator Class Reference

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

#include <types.h>

List of all members.

Public Methods

 ListIterator (const List &l)
ListIterator & operator= (const ListIterator &iterator)
 ListIterator (const ListIterator &i)
ValueImp * 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

Iterator for KJS::List objects.

Definition at line 58 of file types.h.


Constructor & Destructor Documentation

KJS::ListIterator::ListIterator (  const List &    l ) 
 

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

Parameters:
l  The list the iterator will operate on.

KJS::ListIterator::ListIterator (  const ListIterator &    i ) 
 

Copy constructor.


Member Function Documentation

bool KJS::ListIterator::operator!= (  const ListIterator &    it )  const
 

Check for inequality with another iterator.

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

Value KJS::ListIterator::operator++ (  int    ) 
 

Prefix increment operator.

Value KJS::ListIterator::operator++ (    ) 
 

Postfix increment operator.

Returns:
The element after the increment.

Value KJS::ListIterator::operator-- (  int    ) 
 

Prefix decrement operator.

Value KJS::ListIterator::operator-- (    ) 
 

Postfix decrement operator.

ValueImp* KJS::ListIterator::operator-> (    ) 
 

Dereference the iterator.

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

ListIterator& KJS::ListIterator::operator= (  const ListIterator &    iterator ) 
 

Assignment constructor.

bool KJS::ListIterator::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.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:34 2003 for kdelibs by doxygen1.2.18