• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KJS

KJS::ListIterator

KJS::ListIterator Class Reference

#include <list.h>

List of all members.


Detailed Description

Iterator for KJS::List objects.

Definition at line 143 of file list.h.


Public Member Functions

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

Constructor & Destructor Documentation

KJS::ListIterator::ListIterator ( const List &  l  )  [inline]

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

Parameters:
l The list the iterator will operate on.

Definition at line 149 of file list.h.

KJS::ListIterator::ListIterator ( const List &  l,
int  index 
) [inline]

Definition at line 150 of file list.h.


Member Function Documentation

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

Dereference the iterator.

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

Definition at line 155 of file list.h.

JSValue* KJS::ListIterator::operator * (  )  const [inline]

Definition at line 156 of file list.h.

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

Prefix increment operator.

Returns:
The element after the increment.

Definition at line 161 of file list.h.

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

Postfix increment operator.

Definition at line 165 of file list.h.

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

Prefix decrement operator.

Definition at line 169 of file list.h.

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

Postfix decrement operator.

Definition at line 173 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 179 of file list.h.

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 184 of file list.h.


The documentation for this class was generated from the following file:
  • list.h

KJS

Skip menu "KJS"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal