KJS::ListIterator

KJS::ListIterator Class Reference

#include <list.h>

Public Member Functions

 ListIterator (const List &l)
 
 ListIterator (const List &l, int index)
 
bool operator!= (const ListIterator &it) const
 
JSValueoperator* () const
 
JSValueoperator++ ()
 
JSValueoperator++ (int)
 
JSValueoperator-- ()
 
JSValueoperator-- (int)
 
JSValueoperator-> () const
 
bool operator== (const ListIterator &it) const
 

Detailed Description

Iterator for KJS::List objects.

Definition at line 202 of file list.h.

Constructor & Destructor Documentation

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

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

Parameters
lThe list the iterator will operate on.

Definition at line 209 of file list.h.

Member Function Documentation

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

Check for inequality with another iterator.

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

Definition at line 265 of file list.h.

JSValue* KJS::ListIterator::operator++ ( )
inline

Prefix increment operator.

Returns
The element after the increment.

Definition at line 227 of file list.h.

JSValue* KJS::ListIterator::operator++ ( int  )
inline

Postfix increment operator.

Definition at line 234 of file list.h.

JSValue* KJS::ListIterator::operator-- ( )
inline

Prefix decrement operator.

Definition at line 241 of file list.h.

JSValue* KJS::ListIterator::operator-- ( int  )
inline

Postfix decrement operator.

Definition at line 248 of file list.h.

JSValue* KJS::ListIterator::operator-> ( ) const
inline

Dereference the iterator.

Returns
A pointer to the element the iterator operates on.

Definition at line 215 of file list.h.

bool KJS::ListIterator::operator== ( const ListIterator it) const
inline

Compare the iterator with another one.

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

Definition at line 257 of file list.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:04:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.